API16

JAccess

From Joomla! Documentation

Revision as of 04:56, 30 March 2010 by Doxiki (talk | contribs)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.

[Edit Descripton] Template:Description:JAccess

Defined in[edit]

libraries/joomla/access/access.php

Methods[edit]

Method name Description
check Method to check if a user is authorised to perform an action, optionally on an asset.
getAssetRules Method to return the JRules object for an asset. The returned object can optionally hold only the rules explicitly set for the asset or the summation of all inherited rules from parent assets and explicit rules.
getGroupsByUser Method to return a list of user groups mapped to a user. The returned list can optionally hold only the groups explicitly mapped to the user or all groups both explicitly mapped and inherited by the user.
getAuthorisedViewLevels Method to return a list of view levels for which the user is authorised.
getActions Method to return a list of actions for which permissions can be set given a component and section.
getUsersByGroup Method to return a list of user Ids contained in a Group

Importing[edit]

jimport( 'joomla.access.access' );

[Edit See Also] Template:SeeAlso:JAccess

Examples[edit]

<CodeExamplesForm />