Difference between revisions of "JRule"
From Joomla! Documentation
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | =={{JVer|11.1}} JRule== | ||
+ | ===Description=== | ||
+ | {{Description:JRule}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JRule|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JRule|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
+ | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
+ | |public | ||
|[[JRule::__construct/11.1|__construct]] | |[[JRule::__construct/11.1|__construct]] | ||
|Constructor. | |Constructor. | ||
|- | |- | ||
+ | |public | ||
|[[JRule::__toString/11.1|__toString]] | |[[JRule::__toString/11.1|__toString]] | ||
|Convert this object into a JSON encoded string. | |Convert this object into a JSON encoded string. | ||
|- | |- | ||
+ | |public | ||
|[[JRule::allow/11.1|allow]] | |[[JRule::allow/11.1|allow]] | ||
|Checks that this action can be performed by an identity. | |Checks that this action can be performed by an identity. | ||
|- | |- | ||
+ | |public | ||
|[[JRule::getData/11.1|getData]] | |[[JRule::getData/11.1|getData]] | ||
|Get the data for the action. | |Get the data for the action. | ||
|- | |- | ||
+ | |public | ||
|[[JRule::mergeIdentities/11.1|mergeIdentities]] | |[[JRule::mergeIdentities/11.1|mergeIdentities]] | ||
|Merges the identities. | |Merges the identities. | ||
|- | |- | ||
+ | |public | ||
|[[JRule::mergeIdentity/11.1|mergeIdentity]] | |[[JRule::mergeIdentity/11.1|mergeIdentity]] | ||
|Merges the value for an identity. | |Merges the value for an identity. | ||
|- | |- | ||
|} | |} | ||
+ | * '''Defined in''' libraries/joomla/access/rule.php | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.access.rule' );</source> | <source lang="php">jimport( 'joomla.access.rule' );</source> | ||
===See also=== | ===See also=== | ||
− | * JRule source code | + | * {{JVer|11.1}} '''JRule source code''' on [[jplatform:access/rule.php|BitBucket]] |
− | * [[JRule|Other versions of | + | * {{JVer|11.1}} Subpackage [[Subpackage Access/11.1|Access]] |
+ | * [[JRule|Other versions of JRule]] | ||
{{SeeAlso:JRule}} | {{SeeAlso:JRule}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JRule|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JRule|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | === | + | ===User contributed notes=== |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 53: | Line 57: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JRule]]</noinclude> | <noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JRule]]</noinclude> |
Revision as of 18:08, 27 April 2011
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.
JRule[edit]
Description[edit]
Template:Description:JRule [Edit Descripton]
Methods[edit]
Visibility | Method name | Description |
---|---|---|
public | __construct | Constructor. |
public | __toString | Convert this object into a JSON encoded string. |
public | allow | Checks that this action can be performed by an identity. |
public | getData | Get the data for the action. |
public | mergeIdentities | Merges the identities. |
public | mergeIdentity | Merges the value for an identity. |
- Defined in libraries/joomla/access/rule.php
Importing[edit]
jimport( 'joomla.access.rule' );
See also[edit]
- JRule source code on BitBucket
- Subpackage Access
- Other versions of JRule
Template:SeeAlso:JRule [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />