API16

JRule/ construct

< 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

Constructor.



Syntax

__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);
}



Examples

Code Examples


Advertisement