Difference between revisions of "JRules"
From Joomla! Documentation
(Updated to r1448:247ba8d88526) |
m (preparing for archive only) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
=={{JVer|11.1}} JRules== | =={{JVer|11.1}} JRules== | ||
===Description=== | ===Description=== | ||
− | + | ||
− | + | ||
− | |||
− | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
Line 14: | Line 12: | ||
|- | |- | ||
|public | |public | ||
− | |[[JRules::__construct | + | |[[API17:JRules::__construct|__construct]] |
|Constructor. | |Constructor. | ||
|- | |- | ||
|public | |public | ||
− | |[[JRules::__toString | + | |[[API17:JRules::__toString|__toString]] |
|Magic method to convert the object to JSON string representation. | |Magic method to convert the object to JSON string representation. | ||
|- | |- | ||
|public | |public | ||
− | |[[JRules::allow | + | |[[API17:JRules::allow|allow]] |
|Checks that an action can be performed by an identity. | |Checks that an action can be performed by an identity. | ||
|- | |- | ||
|public | |public | ||
− | |[[JRules::getAllowed | + | |[[API17:JRules::getAllowed|getAllowed]] |
|Get the allowed actions for an identity. | |Get the allowed actions for an identity. | ||
|- | |- | ||
|public | |public | ||
− | |[[JRules::getData | + | |[[API17:JRules::getData|getData]] |
|Get the data for the action. | |Get the data for the action. | ||
|- | |- | ||
|public | |public | ||
− | |[[JRules::merge | + | |[[API17:JRules::merge|merge]] |
|Method to merge actions with this object. | |Method to merge actions with this object. | ||
|- | |- | ||
|public | |public | ||
− | |[[JRules::mergeAction | + | |[[API17:JRules::mergeAction|mergeAction]] |
| | | | ||
|- | |- | ||
|public | |public | ||
− | |[[JRules::mergeCollection | + | |[[API17:JRules::mergeCollection|mergeCollection]] |
|Method to merge a collection of . | |Method to merge a collection of . | ||
|- | |- | ||
Line 51: | Line 49: | ||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JRules source code''' on [[jplatform:access/rules.php|BitBucket]] | * {{JVer|11.1}} '''JRules source code''' on [[jplatform:access/rules.php|BitBucket]] | ||
− | * {{JVer|11.1}} Subpackage [[Subpackage Access | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage Access|Access]] |
− | * [[JRules|Other versions of JRules]] | + | * [[API17:JRules|Other versions of JRules]] |
− | + | ||
− | + | ||
− | |||
− | |||
===User contributed notes=== | ===User contributed notes=== | ||
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JRules | category=JRules | ||
− | + | namespace=CodeExample | |
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
Line 68: | Line 64: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude> | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 22:37, 24 March 2017
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JRules[edit]
Description[edit]
Methods[edit]
Visibility | Method name | Description |
---|---|---|
public | __construct | Constructor. |
public | __toString | Magic method to convert the object to JSON string representation. |
public | allow | Checks that an action can be performed by an identity. |
public | getAllowed | Get the allowed actions for an identity. |
public | getData | Get the data for the action. |
public | merge | Method to merge actions with this object. |
public | mergeAction | |
public | mergeCollection | Method to merge a collection of . |
- Defined in libraries/joomla/access/rules.php
Importing[edit]
jimport( 'joomla.access.rules' );
See also[edit]
- JRules source code on BitBucket
- Subpackage Access
- Other versions of JRules
User contributed notes[edit]
Code Examples[edit]