Actions

API16

JUser/authorisedLevels

From Joomla! Documentation

< API16:JUser
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Gets an array of the authorised access levels for the user

[Edit Descripton]

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] SeeAlso:JUser/authorisedLevels

Examples

<CodeExamplesForm />