Jelix 1.8.13

jAclDbManager
in package

This class is used to manage rights. Works only with db driver of jAcl.

Tags
subpackage

jacldb

static

Table of Contents

addRight()  : bool
Add a right on the given subject/group/resource.
addSubject()  : mixed
Create a new subject.
removeResourceRight()  : mixed
Remove the right on the given subject/resource, for all groups.
removeRight()  : mixed
Remove a right on the given subject/group/resource.
removeSubject()  : mixed
Delete the given subject.

Methods

addRight()

Add a right on the given subject/group/resource.

public static addRight(int $group, string $subject, string $value[, string $resource = '' ]) : bool
Parameters
$group : int

the group id

$subject : string

the key of the subject

$value : string

the value of the right

$resource : string = ''

the id of a resource

Tags
Return values
bool

true if the right is set

addSubject()

Create a new subject.

public static addSubject(string $subject, int $id_aclvalgrp, string $label_key) : mixed
Parameters
$subject : string

the key of the subject

$id_aclvalgrp : int

the id of the values group with which the right can be set

$label_key : string

the key of a locale which represents the label of the subject

Tags
Return values
mixed

removeResourceRight()

Remove the right on the given subject/resource, for all groups.

public static removeResourceRight(string $subject, string $resource) : mixed
Parameters
$subject : string

the key of the subject

$resource : string

the id of a resource

Tags
Return values
mixed

removeRight()

Remove a right on the given subject/group/resource.

public static removeRight(int $group, string $subject, string $value[, string $resource = '' ]) : mixed
Parameters
$group : int

the group id

$subject : string

the key of the subject

$value : string

the value of the right

$resource : string = ''

the id of a resource

Tags
Return values
mixed

removeSubject()

Delete the given subject.

public static removeSubject(string $subject) : mixed
Parameters
$subject : string

the key of the subject

Tags
Return values
mixed

Search results