API16

JUser/authorisedLevels

From Joomla! Documentation

< API16:JUser

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Gets an array of the authorised access levels for the user



Syntax[edit]

authorisedLevels()


Returns[edit]

array

Defined in[edit]

libraries/joomla/user/user.php

Importing[edit]

jimport( 'joomla.user.user' );

Source Body[edit]

public function authorisedLevels()
{
        if ($this->_authLevels === null) {
                $this->_authLevels = array();
        }

        if (empty($this->_authLevels)) {
                $this->_authLevels = JAccess::getAuthorisedViewLevels($this->id);
        }

        return $this->_authLevels;
}



Examples[edit]

Code Examples[edit]