JRules: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/access/rules.php | libraries/joomla/access/rules.php | ||
| Line 38: | Line 36: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JRules | category=JRules | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:02, 25 March 2017
Defined in
libraries/joomla/access/rules.php
Methods
| Method name | Description |
|---|---|
| __construct | Constructor. |
| getData | Get the data for the action. |
| mergeCollection | Method to merge a collection of JRules. |
| merge | Method to merge actions with this object. |
| mergeAction | |
| allow | Checks that an action can be performed by an identity. |
| getAllowed | Get the allowed actions for an identity. |
| __toString | Magic method to convert the object to JSON string representation. |
Importing
jimport( 'joomla.access.rules' );
Examples
Code Examples