API16

JRules: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
No edit summary
m clean up
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
{{subst:Description:JRules}}
<nowiki>[</nowiki>[[Description:JRules|Edit Descripton]]<nowiki>]</nowiki>
</span>
{{Description:JRules}}


===Defined in===
===Defined in===
Line 40: Line 37:
<source lang="php">jimport( 'joomla.access.rules' );</source>
<source lang="php">jimport( 'joomla.access.rules' );</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JRules|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:JRules}}
</span>
{{SeeAlso:JRules}}


===Examples===
===Examples===

Revision as of 14:22, 24 March 2017

{{subst:Description:JRules}}

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' );


{{subst:SeeAlso:JRules}}

Examples

<CodeExamplesForm />