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

Deletes a group property from the table.

deleteGroupProperty(string $type, string $name) 

Parameters

$type

string

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

$name

string

Specifies the name of the property to retrieve

Gets the value of a specific field.

getField(string $field) : mixed

Parameters

$field

string

Specifies the field to retrieve

Returns

mixedValue of the field

Retrieves all available properties of the group.

getGroupProperties() : array

Returns

arrayReturns assoziative properties array as follows: - $arr[idgroupprop][name] - $arr[idgroupprop][type] - $arr[idgroupprop][value]

Returns the group property

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

Parameters

$type

string

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

$name

string

Specifies the name of the property to retrieve

Returns

stringThe value of the retrieved property

Inserts new group object to the database

insert() : bool

Returns

bool

Loads a group from the database by its groupID.

loadGroupByGroupID($groupID) : bool

Parameters

$groupID

Returns

boolTrue if the load was successful

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

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

Stores a property to the database.

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

Parameters

$type

string

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

$name

string

Specifies the name of the property to retrieve

$value

string

Specifies the value to insert

Stores the modified group object to the database.

store() : bool

Returns

bool

 Properties

 

DB_Contenido instance

$db : object

access private
 

Storage of the fields which were modified

$modifiedValues : array

access private
 

Storage of the source table to use for the group informations

$table : string

access private
 

Storage of the source table to use for the group informations

$values : array

access private