Users belong to one or more Group which in turn grants permissions.

package dstruct_auth

 Methods

Class constructor.

__construct(string $row) 

Parameters

$row

string

Row from the database

Add a {@link Right} to this group.

addRight(\Right $right) 

Parameters

$right

\Right

Get the object ID.

getID() : integer

Returns

integer

Get a collection object of the {@link Right} objects for this group.

getRights() : object

Returns

object

The name of the group.

getTitle(boolean $raw) 

Parameters

$raw

boolean

Return raw or html encoded

Load object by its ID.

loadByID(integer $id, array $row) : false | object
Static

Parameters

$id

integer

$row

array

Array of data from database

Returns

falseobjectFalse if object not found

Return the permissions associated with this group.

permissions() : array

Returns

array

Remove a {@link Right} from the group

removeRight(\Right $right) 

Parameters

$right

\Right

{@link Right}

Save to the database.

save() 

Set the title for this group.

setTitle(string $title) 

Parameters

$title

string

Load the Rights for this group.

loadRights() 

 Properties

 

$id : integer
 

$permissions : array
 

$rights : null | object
 

$title : string