JRules: Difference between revisions
From Joomla! Documentation
New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JRules}}
===Defined in===
librari... |
m preparing for archive only |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/access/rules.php | libraries/joomla/access/rules.php | ||
| Line 36: | Line 31: | ||
|Magic method to convert the object to JSON string representation. | |Magic method to convert the object to JSON string representation. | ||
|} | |} | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.access.rules' );</source> | <source lang="php">jimport( 'joomla.access.rules' );</source> | ||
===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