API17

Difference between revisions of "JAccess"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Layout updates)
Line 6: Line 6:
 
===Defined in===
 
===Defined in===
 
libraries/joomla/access/access.php
 
libraries/joomla/access/access.php
 +
* see source code in [[jplatform:access/access.php|BitBucket]]
 
===Subpackage===
 
===Subpackage===
 
[[Subpackage Access/11.1|Access]]
 
[[Subpackage Access/11.1|Access]]
Line 44: Line 45:
 
<source lang="php">jimport( 'joomla.access.access' );</source>
 
<source lang="php">jimport( 'joomla.access.access' );</source>
 
===See also===
 
===See also===
 +
* JAccess source code in [[jplatform:access/access.php|BitBucket]]
 
* [[JAccess|Other versions of this class]]
 
* [[JAccess|Other versions of this class]]
 
{{SeeAlso:JAccess}}
 
{{SeeAlso:JAccess}}

Revision as of 16:48, 23 April 2011

The "API17" 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

Subpackage[edit]

Access

Extends[edit]

Extended by[edit]

Methods[edit]

Method name Description
check Method to check if a user is authorised to perform an action, optionally on an asset.
checkGroup Method to check if a group is authorised to perform an action, optionally on an asset.
getActions Method to return a list of actions for which permissions can be set given a component and section.
getAssetRules Method to return the object for an asset.
getAuthorisedViewLevels Method to return a list of view levels for which the user is authorised.
getGroupsByUser Method to return a list of user groups mapped to a user.
getUsersByGroup Method to return a list of user Ids contained in a Group.
getGroupPath Gets the parent groups that a leaf group belongs to in its branch back to the root of the tree (including the leaf group id).

Importing[edit]

jimport( 'joomla.access.access' );

See also[edit]

Template:SeeAlso:JAccess [Edit See Also]

Examples[edit]

<CodeExamplesForm />