Jelix 1.7.18

jIAcl2Driver2 extends jIAcl2Driver
in

interface for jAcl2 drivers.

Tags
subpackage

acl

since
1.6.29

Table of Contents

clearCache()  : mixed
Clear some cached data, it a cache exists in the driver.
getRight()  : bool
Says if there is a right on the given right (and on the optional resource) for the current user.
getRightByUser()  : bool
Says if there is a right on the given subject (and on the optional resource) for the given user.

Methods

clearCache()

Clear some cached data, it a cache exists in the driver.

public clearCache() : mixed

.

Return values
mixed

getRight()

Says if there is a right on the given right (and on the optional resource) for the current user.

public getRight(string $right[, string $resource = null ]) : bool
Parameters
$right : string

the key of the right

$resource : string = null

the id of a resource

Return values
bool

true if the right exists

getRightByUser()

Says if there is a right on the given subject (and on the optional resource) for the given user.

public getRightByUser(string $login, string $subject[, string $resource = null ]) : bool
Parameters
$login : string

the user login. Can be empty/null if anonymous

$subject : string

the key of the subject

$resource : string = null

the id of a resource

Return values
bool

true if the right exists

Search results