API16

API16:JUser/authorisedLevels

From Joomla! Documentation

Revision as of 22:43, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Gets an array of the authorised access levels for the user <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JUser/authorisedLevels|E...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Gets an array of the authorised access levels for the user

[Edit Descripton]

Template:Description:JUser/authorisedLevels

Syntax

authorisedLevels()


Returns

array

Defined in

libraries/joomla/user/user.php

Importing

jimport( 'joomla.user.user' );

Source Body

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

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

        return $this->_authLevels;
}

[Edit See Also] Template:SeeAlso:JUser/authorisedLevels

Examples

<CodeExamplesForm />