Actions

API16

JRule/mergeIdentities

From Joomla! Documentation

< API16:JRule
Revision as of 17:34, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

Contents

Description

Merges the identities

[Edit Descripton]

Description:JRule/mergeIdentities

Syntax

mergeIdentities($identities)
Parameter Name Default Value Description
$identities

Defined in

libraries/joomla/access/rule.php

Importing

jimport( 'joomla.access.rule' );

Source Body

public function mergeIdentities($identities)
{
        if ($identities instanceof JRule) {
                $identities = $identities->getData();
        }
 
        if (is_array($identities))
        {
                foreach ($identities as $identity => $allow) {
                        $this->mergeIdentity($identity, $allow);
                }
        }
}

[Edit See Also] SeeAlso:JRule/mergeIdentities

Examples

<CodeExamplesForm />