JRules/mergeAction
From Joomla! Documentation
< API16:JRulesRevision as of 17:34, 22 March 2010 by Doxiki (talk | contribs) (New page:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JRules/mergeAction}}
...)
Revision as of 17:34, 22 March 2010 by Doxiki (talk | contribs) (New page:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JRules/mergeAction}}
...)
The "API16" 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.
Template:Description:JRules/mergeAction
Syntax[edit]
mergeAction($action, $identities)
Parameter Name | Default Value | Description |
---|---|---|
$action | The name of the action. | |
$identities |
Defined in[edit]
libraries/joomla/access/rules.php
Importing[edit]
jimport( 'joomla.access.rules' );
Source Body[edit]
public function mergeAction($action, $identities)
{
if (isset($this->_data[$action]))
{
// If exists, merge the action.
$this->_data[$action]->mergeIdentities($identities);
}
else
{
// If new, add the action.
$this->_data[$action] = new JRule($identities);
}
}
[Edit See Also] Template:SeeAlso:JRules/mergeAction
Examples[edit]
<CodeExamplesForm />