Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Group Class Reference

List of all members.

Detailed Description

Author:
Robert Vock <smir@andaloria.de>

Definition at line 21 of file lib/group.php.

Public Member Functions

 Group (&$oDB, &$oLog, &$aAdmin, $aAdminArrays, &$aRightNames)
 constructor.
 get ($intId=0)
 get infos for a single group
 set ($intId, $strName, $aRights)
 update group values
 add ($strName, $aRights)
 add a new group
 getAll ()
 get all groups

Public Attributes

 $oDB
 DB object.
 $oLog
 Log object.
 $aAdmin
 $aAdminArrays
 $aRightNames


Constructor & Destructor Documentation

Group::Group &$  oDB,
&$  oLog,
&$  aAdmin,
aAdminArrays,
&$  aRightNames
 

constructor.

set the objects

Parameters:
$oDB reference to database object
$oLog reference to logger object
$aAdmin an array with information about the admin rights, defined in adminconfig.php
$aAdminArrays an array defining where to find which adminright, defined in adminconfig.php
$aRightNames an array with names for all available rights, their abbreviation and an description

Definition at line 38 of file lib/group.php.

References $aAdmin, $aAdminArrays, $aRightNames, $oDB, and $oLog.


Member Function Documentation

Group::add strName,
aRights
 

add a new group

Parameters:
$strName new group name
$aRights array with the names of the rights for the new group
Todo:
update log id, add values
Returns:
boolean (false if group already exists)

Definition at line 103 of file lib/group.php.

Group::get intId = 0  ) 
 

get infos for a single group

Parameters:
$intId id of group
Returns:
false or array with group infos

Definition at line 52 of file lib/group.php.

References $aRow.

Group::getAll  ) 
 

get all groups

Returns:
array

Definition at line 139 of file lib/group.php.

References $aRow.

Group::set intId,
strName,
aRights
 

update group values

Parameters:
$intId id of the group
$strName new group name
$aRights all rights of this group are set to 'on', all rights this group does not have are not set
Todo:
update log id, set values

Definition at line 73 of file lib/group.php.


Member Data Documentation

Group::$aAdmin
 

Definition at line 25 of file lib/group.php.

Referenced by Group().

Group::$aAdminArrays
 

Definition at line 26 of file lib/group.php.

Referenced by Group().

Group::$aRightNames
 

Definition at line 27 of file lib/group.php.

Referenced by Group().

Group::$oDB
 

DB object.

Definition at line 23 of file lib/group.php.

Referenced by Group().

Group::$oLog
 

Log object.

Definition at line 24 of file lib/group.php.

Referenced by Group().


The documentation for this class was generated from the following file:
Generated on Sun May 8 19:29:46 2005 for PhpMap by  doxygen 1.4.2