Joomla Platform
13.1
Documentation des API du framework Joomla Platform
|
Fonctions membres publiques statiques | |
static | clearStatics () |
static | check ($userId, $action, $asset=null) |
static | checkGroup ($groupId, $action, $asset=null) |
static | getAssetRules ($asset, $recursive=false) |
static | getGroupsByUser ($userId, $recursive=true) |
static | getUsersByGroup ($groupId, $recursive=false) |
static | getAuthorisedViewLevels ($userId) |
static | getActions ($component, $section= 'component') |
static | getActionsFromFile ($file, $xpath="/access/section[@name='component']/") |
static | getActionsFromData ($data, $xpath="/access/section[@name='component']/") |
Fonctions membres protégées statiques | |
static | getGroupPath ($groupId) |
Attributs protégés statiques | |
static | $viewLevels = array() |
static | $assetRules = array() |
static | $userGroups = array() |
static | $userGroupPaths = array() |
static | $groupsByUser = array() |
Définition à la ligne 21 du fichier access.php.
|
static |
Method to check if a user is authorised to perform an action, optionally on an asset.
integer | $userId | Id of the user for which to check authorisation. |
string | $action | The name of the action to authorise. |
mixed | $asset | Integer asset id or the name of the asset as a string. Defaults to the global asset node. |
Définition à la ligne 90 du fichier access.php.
Références JFactory\getDbo(), et JTable\getInstance().
Référencé par JUser\authorise(), et JUser\save().
|
static |
Method to check if a group is authorised to perform an action, optionally on an asset.
integer | $groupId | The path to the group for which to check authorisation. |
string | $action | The name of the action to authorise. |
mixed | $asset | Integer asset id or the name of the asset as a string. Defaults to the global asset node. |
Définition à la ligne 131 du fichier access.php.
Références JFactory\getDbo(), et JTable\getInstance().
Référencé par JFormFieldRules\getInput(), et JUser\save().
|
static |
Method for clearing static caches.
Définition à la ligne 70 du fichier access.php.
|
static |
Method to return a list of actions for which permissions can be set given a component and section.
string | $component | The component from which to retrieve the actions. |
string | $section | The name of the section within the component from which to retrieve the actions. |
Définition à la ligne 465 du fichier access.php.
Références JLog\add(), et JLog\WARNING.
Référencé par JFormRuleRules\getFieldActions(), et JFormFieldRules\getInput().
|
static |
Method to return a list of actions from a string or from an xml for which permissions can be set.
string | SimpleXMLElement | $data | The XML string or an XML element. |
string | $xpath | An optional xpath to search for the fields. |
Définition à la ligne 520 du fichier access.php.
|
static |
Method to return a list of actions from a file for which permissions can be set.
string | $file | The path to the XML file. |
string | $xpath | An optional xpath to search for the fields. |
Définition à la ligne 494 du fichier access.php.
|
static |
Method to return the JAccessRules 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.
mixed | $asset | Integer asset id or the name of the asset as a string. |
boolean | $recursive | True to return the rules object with inherited rules. |
Définition à la ligne 218 du fichier access.php.
Références JFactory\getDbo(), JTable\getInstance(), et JAccessRules\mergeCollection().
Référencé par JUser\authorise(), et JFormFieldRules\getInput().
|
static |
Method to return a list of view levels for which the user is authorised.
integer | $userId | Id of the user for which to get the list of authorised view levels. |
Définition à la ligne 402 du fichier access.php.
Références JFactory\getDbo().
Référencé par JUser\getAuthorisedViewLevels().
|
staticprotected |
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).
mixed | $groupId | An integer or array of integers representing the identities to check. |
Définition à la ligne 169 du fichier access.php.
Références JFactory\getDbo().
|
static |
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.
integer | $userId | Id of the user for which to get the list of groups. |
boolean | $recursive | True to include inherited user groups. |
Définition à la ligne 285 du fichier access.php.
Références JFactory\getDbo(), et JArrayHelper\toInteger().
Référencé par JUser\getAuthorisedGroups().
|
static |
Method to return a list of user Ids contained in a Group
integer | $groupId | The group Id |
boolean | $recursive | Recursively include all child groups (optional) |
Définition à la ligne 368 du fichier access.php.
Références JFactory\getDbo(), et JArrayHelper\toInteger().
|
staticprotected |
Définition à la ligne 37 du fichier access.php.
|
staticprotected |
Définition à la ligne 61 du fichier access.php.
|
staticprotected |
Définition à la ligne 53 du fichier access.php.
|
staticprotected |
Définition à la ligne 45 du fichier access.php.
|
staticprotected |
Définition à la ligne 29 du fichier access.php.