JRules

Extends \JAccessRules

Deprecated class placeholder. You should use JAccessRules instead.

deprecated
package

Joomla.Platform

subpackage

Access

since

11.1

deprecated

12.3

Methods

__construct

Constructor.

__construct(mixed $input = '') 
inherited

The input array must be in the form: array('action' => array(-42 => true, 3 => true, 4 => false)) or an equivalent JSON encoded string, or an object where properties are arrays.

since

11.1

Arguments

$input

mixedA JSON format string (probably from the database) or a nested array.

__toString

Magic method to convert the object to JSON string representation.

__toString() : string
inherited
since

11.1

Response

stringJSON representation of the actions array

allow

Checks that an action can be performed by an identity.

allow(string $action, mixed $identity) : mixed
inherited

The identity is an integer where +ve represents a user group, and -ve represents a user.

since

11.1

Arguments

$action

stringThe name of the action.

$identity

mixedAn integer representing the identity, or an array of identities

Response

mixedObject or null if there is no information about the action.

getAllowed

Get the allowed actions for an identity.

getAllowed(mixed $identity) : object
inherited
since

11.1

Arguments

$identity

mixedAn integer representing the identity or an array of identities

Response

objectAllowed actions for the identity or identities

getData

Get the data for the action.

getData() : array
inherited
since

11.1

Response

arrayA named array of JAccessRule objects.

merge

Method to merge actions with this object.

merge(mixed $actions) : void
inherited
since

11.1

Arguments

$actions

mixedJAccessRule object, an array of actions or a JSON string array of actions.

mergeAction

Merges an array of identities for an action.

mergeAction(string $action, array $identities) : void
inherited
since

11.1

Arguments

$action

stringThe name of the action.

$identities

arrayAn array of identities

mergeCollection

Method to merge a collection of JAccessRules.

mergeCollection(mixed $input) : void
inherited
since

11.1

Arguments

$input

mixedJAccessRule or array of JAccessRules

Properties

data

A named array.

inherited
since

11.1

Type(s)

array