Class Group Class for group information and management

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

 Methods

Constructor Function

Group(string $table) 

Parameters

$table

string

The table to use as information source

deleteGroupProperty($type, $name) Deletes a group property from the table

deleteGroupProperty(string $type, string $name) 

Parameters

$type

string

type Specifies the type (class, category etc) for the property to retrieve

$name

string

name Specifies the name of the property to retrieve

getField($field) Gets the value of a specific field

getField(string $field) : mixed

Parameters

$field

string

Specifies the field to retrieve

Returns

mixedValue of the field

getGroupProperties() Retrieves all available properties of the group

getGroupProperties() 

getGroupProperty($type, $name) Stores the modified group object to the database

getGroupProperty(string $type, string $name) : string

Parameters

$type

string

type Specifies the type (class, category etc) for the property to retrieve

$name

string

name Specifies the name of the property to retrieve

Returns

stringThe value of the retrieved property

loadGroupByGroupID($groupID) Loads a group from the database by its groupID

loadGroupByGroupID($groupID) : bool

Parameters

$groupID

Returns

boolTrue if the load was successful

loadGroupByGroupname($groupname) Loads a group from the database by its groupname

loadGroupByGroupname(string $groupname) : bool

Parameters

$groupname

string

Specifies the groupname

Returns

boolTrue if the load was successful

setField($field, $value) Sets the value of a specific field

setField(string $field, string $value) 

Parameters

$field

string

Specifies the field to set

$value

string

Specifies the value to set

setGroupProperty($type, $name, $value) Stores a property to the database

setGroupProperty(string $type, string $name, string $value) 

Parameters

$type

string

type Specifies the type (class, category etc) for the property to retrieve

$name

string

name Specifies the name of the property to retrieve

$value

string

value Specifies the value to insert

store() Stores the modified group object to the database

store() 

 Properties

 

$db : object
access private
 

$modifiedValues : array
access private
 

$table : string
access private
 

$values : array
access private