API16:JRule/ construct
From Joomla! Documentation
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
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); }
[Edit See Also] SeeAlso:JRule/ construct
Examples
<CodeExamplesForm />
