JRules/mergeAction
From Joomla! Documentation
< JRules
Contents |
Syntax
JRules::mergeAction($action, $identities)
| Parameter Name | Default Value | Description |
|---|---|---|
| $action | The name of the action. | |
| $identities |
Defined in
libraries/joomla/access/rules.php
Importing
jimport( 'joomla.access.rules' );
Source Body
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);
}
}