Back to Rule class

Method mergeIdentities

public void
mergeIdentities
(mixed $identities)
Merges the identities
Parameters
  • mixed $identities An integer or array of integers representing the identities to check.
Returns
  • void
Since
  • 1.7.0
Class: Rule
Project: Joomla

Method mergeIdentities - Source code

/**
 * Merges the identities
 *
 * @param   mixed  $identities  An integer or array of integers representing the identities to check.
 *
 * @return  void
 *
 * @since   1.7.0
 */
public function mergeIdentities($identities)
{
    if ($identities instanceof Rule) {
        $identities = $identities->getData();
    }
    if (\is_array($identities)) {
        foreach ($identities as $identity => $allow) {
            $this->mergeIdentity($identity, $allow);
        }
    }
}