API16:JRules/getAllowed
From Joomla! Documentation
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
Get the allowed actions for an identity.
Syntax
getAllowed($identity)
| Parameter Name | Default Value | Description |
|---|---|---|
| $identity | An integer representing the identity, or an array of identities |
Defined in
libraries/joomla/access/rules.php
Importing
jimport( 'joomla.access.rules' );
Source Body
function getAllowed($identity) { // Sweep for the allowed actions. $allowed = new JObject; foreach ($this->_data as $name => &$action) { if ($action->allow($identity)) { $allowed->set($name, true); } } return $allowed; }
[Edit See Also] SeeAlso:JRules/getAllowed
Examples
<CodeExamplesForm />
