Actions

API16

Difference between revisions of "JAccess"

From Joomla! Documentation

(New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JAccess}} ===Defined in=== libra...)
 
m (removing red link to edit, no existant pages)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JAccess|Edit Descripton]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
{{Description:JAccess}}
+
<! removed transcluded page call, red link never existed >
  
 
===Defined in===
 
===Defined in===
Line 30: Line 30:
 
|Method to return a list of user Ids contained in a Group
 
|Method to return a list of user Ids contained in a Group
 
|}
 
|}
 +
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.access.access' );</source>
 
<source lang="php">jimport( 'joomla.access.access' );</source>
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JAccess|Edit See Also]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JAccess}}
+
<! removed transcluded page call, red link never existed >
  
 
===Examples===
 
===Examples===
Line 48: Line 49:
 
  format= ,,,
 
  format= ,,,
 
</dpl>
 
</dpl>
 +
[[Category:Archived pages API16]]

Latest revision as of 19:53, 12 May 2013

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.

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Contents

Defined in

libraries/joomla/access/access.php

Methods

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

jimport( 'joomla.access.access' );

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />