Back to User class

Method getAuthorisedGroups

public array
getAuthorisedGroups
()
Gets an array of the authorised user groups
Returns
  • array
Since
  • 1.7.0
Class: User
Project: Joomla

Method getAuthorisedGroups - Source code

/**
 * Gets an array of the authorised user groups
 *
 * @return  array
 *
 * @since   1.7.0
 */
public function getAuthorisedGroups()
{
    if ($this->_authGroups === null) {
        $this->_authGroups = array();
    }
    if (empty($this->_authGroups)) {
        $this->_authGroups = Access::getGroupsByUser($this->id);
    }
    return $this->_authGroups;
}