Actions

API17

Difference between revisions of "JRules"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
m (User contributed notes: bad link repair)
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
=={{JVer|11.1}} JRules==
 +
===Description===
 +
{{Description:JRules}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JRules|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JRules|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
{{Description:JRules}}
 
===Defined in===
 
libraries/joomla/access/rules.php
 
===Subpackage===
 
[[Subpackage Access/11.1|Access]]
 
===Extends===
 
===Extended by===
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
 +
|public
 
|[[JRules::__construct/11.1|__construct]]
 
|[[JRules::__construct/11.1|__construct]]
 
|Constructor.  
 
|Constructor.  
 
|-
 
|-
 +
|public
 
|[[JRules::__toString/11.1|__toString]]
 
|[[JRules::__toString/11.1|__toString]]
 
|Magic method to convert the object to JSON string representation.  
 
|Magic method to convert the object to JSON string representation.  
 
|-
 
|-
 +
|public
 
|[[JRules::allow/11.1|allow]]
 
|[[JRules::allow/11.1|allow]]
 
|Checks that an action can be performed by an identity.  
 
|Checks that an action can be performed by an identity.  
 
|-
 
|-
 +
|public
 
|[[JRules::getAllowed/11.1|getAllowed]]
 
|[[JRules::getAllowed/11.1|getAllowed]]
 
|Get the allowed actions for an identity.  
 
|Get the allowed actions for an identity.  
 
|-
 
|-
 +
|public
 
|[[JRules::getData/11.1|getData]]
 
|[[JRules::getData/11.1|getData]]
 
|Get the data for the action.  
 
|Get the data for the action.  
 
|-
 
|-
 +
|public
 
|[[JRules::merge/11.1|merge]]
 
|[[JRules::merge/11.1|merge]]
 
|Method to merge actions with this object.  
 
|Method to merge actions with this object.  
 
|-
 
|-
 +
|public
 
|[[JRules::mergeAction/11.1|mergeAction]]
 
|[[JRules::mergeAction/11.1|mergeAction]]
 
|
 
|
 
|-
 
|-
 +
|public
 
|[[JRules::mergeCollection/11.1|mergeCollection]]
 
|[[JRules::mergeCollection/11.1|mergeCollection]]
 
|Method to merge a collection of .  
 
|Method to merge a collection of .  
 
|-
 
|-
 
|}
 
|}
 +
* '''Defined in''' libraries/joomla/access/rules.php
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.access.rules' );</source>
 
<source lang="php">jimport( 'joomla.access.rules' );</source>
 
===See also===
 
===See also===
* [[JRules|Other versions of this class]]
+
* {{JVer|11.1}} '''JRules source code''' on [[jplatform:access/rules.php|BitBucket]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage Access/11.1|Access]]
 +
* [[JRules|Other versions of JRules]]
 
{{SeeAlso:JRules}}
 
{{SeeAlso:JRules}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JRules|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JRules|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Examples===
+
===User contributed notes===
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 57: Line 65:
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JRules]]</noinclude>
+
<noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JRules]]</noinclude>

Revision as of 14:01, 29 August 2012

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JRules

Description

Description:JRules [Edit Descripton]

Methods

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

jimport( 'joomla.access.rules' );

See also

SeeAlso:JRules [Edit See Also]

User contributed notes

<CodeExamplesForm />