JRule

Extends \JAccessRule

Deprecated class placeholder. You should use JAccessRule instead.

deprecated
package

Joomla.Platform

subpackage

Access

since

11.1

deprecated

12.3

Methods

__construct

Constructor.

__construct(mixed $identities) 
inherited

The input array must be in the form: array(-42 => true, 3 => true, 4 => false) or an equivalent JSON encoded string.

since

11.1

Arguments

$identities

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

__toString

Convert this object into a JSON encoded string.

__toString() : string
inherited
since

11.1

Response

stringJSON encoded string

allow

Checks that this action can be performed by an identity.

allow(mixed $identities) : mixed
inherited

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

since

11.1

Arguments

$identities

mixedAn integer or array of integers representing the identities to check.

Response

mixedTrue if allowed, false for an explicit deny, null for an implicit deny.

getData

Get the data for the action.

getData() : array
inherited
since

11.1

Response

arrayA named array

mergeIdentities

Merges the identities

mergeIdentities(mixed $identities) : void
inherited
since

11.1

Arguments

$identities

mixedAn integer or array of integers representing the identities to check.

mergeIdentity

Merges the values for an identity.

mergeIdentity(integer $identity, boolean $allow) : void
inherited
since

11.1

Arguments

$identity

integerThe identity.

$allow

booleanThe value for the identity (true == allow, false == deny).

Properties

data

A named array

inherited
since

11.1

Type(s)

array