API16

JRule/mergeIdentities

From Joomla! Documentation

< API16:JRule
Revision as of 21:02, 24 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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]