CFile::getGroup PHP Method

getGroup() public method

Returned value depends upon $getName parameter value. If $_group property is set, returned value is read from that property.
public getGroup ( boolean $get_name = True ) : integer | string | boolean
$get_name boolean Defaults to 'True', meaning that group name instead of ID should be returned.
return integer | string | boolean Group name, or ID if $getName set to 'False'
    public function getGroup($get_name = True)
    {
        if (!isset($this->_group)) {
            $this->_group = $this->getExists() ? filegroup($this->_realpath) : null;
        }
        if (is_int($this->_group) && function_exists('posix_getgrgid') && $get_name == True) {
            $this->_group = posix_getgrgid($this->_group);
            $this->_group = $this->_group['name'];
        }
        return $this->_group;
    }