JRule/mergeIdentities
From Joomla! Documentation
< API16:JRule
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.
Description[edit]
Merges the identities
Syntax[edit]
mergeIdentities($identities)
Parameter Name | Default Value | Description |
---|---|---|
$identities |
Defined in[edit]
libraries/joomla/access/rule.php
Importing[edit]
jimport( 'joomla.access.rule' );
Source Body[edit]
public function mergeIdentities($identities)
{
if ($identities instanceof JRule) {
$identities = $identities->getData();
}
if (is_array($identities))
{
foreach ($identities as $identity => $allow) {
$this->mergeIdentity($identity, $allow);
}
}
}
Examples[edit]
Code Examples[edit]