JRule/ construct

From Joomla! Documentation

Jump to: navigation, search

Contents

Description

Constructor.

Syntax

JRule::__construct($identities)
Parameter Name Default Value Description
$identities A JSON format string (probably from the database), or a named array.

Defined in

libraries/joomla/access/rule.php

Importing

jimport( 'joomla.access.rule' );

Source Body

        public function __construct($identities)
        {
                // Convert string input to an array.
                if (is_string($identities)) {
                        $identities = json_decode($identities, true);
                }
 
                $this->mergeIdentities($identities);
        }
Personal tools