Jelix 1.8.13

jIAcl2Driver2 extends jIAcl2Driver

interface for jAcl2 drivers.

Tags
subpackage

jacl2

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

.

Tags
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

Tags
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

Tags
Return values
bool

true if the right exists

Search results