Class Groups Container class for all system groups

author Timo A. Hummel <Timo.Hummel@4fb.de>
version 1.0
copyright four for business AG 2003

 Methods

Constructor Function

Groups(string $table) 

Parameters

$table

string

The table to use as information source

deleteGroupByGroupname ($groupname) Removes the specified group from the database

deleteGroupByGroupname($groupname) : bool

Parameters

$groupname

Returns

boolTrue if the delete was successful

deleteGroupByID ($groupid) Removes the specified group from the database

deleteGroupByID(string $groupid) : bool

Parameters

$groupid

string

Specifies the group ID

Returns

boolTrue if the delete was successful

getAccessibleGroups Returns all groups which are accessible by the current group

getAccessibleGroups($perms) : array

Parameters

$perms

Returns

arrayArray of group objects

 Properties

 

$db : object
access private
 

$table : string
access private