Class OCSP_GROUP

Description

Class class OCSP_GROUP handles T_SYS_GROUP

  • author: Peter Krebs <pitlinz@users.sourceforge.net>
  • version: $Id: DBMS_TABLEOBJ.phpclass,v 1.60 2008/12/17 16:28:52 peterkrebs Exp $
  • version: pk-05-11-17
  • version: pk-04-01-02
  • version: pk-08-01-31
  • since: pk-08-03-14
  • project: Open CSP-Management
  • license: GNU Public License

Located in /user/OCSP_GROUP.phpclass (line 37)

OCSP_OBJ
   |
   --DBMS_TABLEOBJ
      |
      --OCSP_GROUP
Class Constant Summary
 CLASS_SRC_FILE = __FILE__
Variable Summary
 mixed $myTable
Method Summary
 static OCSP_GROUP factory_fromId (int $aId, [boolean $debug = false])
 OCSP_GROUP __construct ([ $debug = False])
 int dbInsert ([boolean $debug = false])
 boolean dbReplace ([boolean $debug = FALSE], [boolean $ignorPopulated = FALSE])
 array getChildren ([string $childClass = 'OCSP_GROUP'], [boolean $debug = False])
 int getId ()
 string getName ()
 boolean isChildOf (int $aGrpId)
 boolean userCanDelete ([boolean $debug = false])
 boolean userCanEdit ([boolean $debug = false])
 boolean userCanInsert ([boolean $debug = false])
 boolean userCanShow ([boolean $debug = false])
Variables
Methods
static factory_fromId (line 63)

factory a group object

  • access: public
OCSP_GROUP factory_fromId (int $aId, [boolean $debug = false])
  • int $aId
  • boolean $debug
Constructor __construct (line 79)
  • access: public
OCSP_GROUP __construct ([ $debug = False])
  • $debug
dbInsert (line 194)

inserts a new row to the table

  • return: returns the autoIncFld ID if exists or 1 on success
int dbInsert ([boolean $debug = false])
  • boolean $debug

Redefinition of:
DBMS_TABLEOBJ::dbInsert()
inserts a new row to the table
dbReplace (line 224)

replaces a row in the table

boolean dbReplace ([boolean $debug = FALSE], [boolean $ignorPopulated = FALSE])
  • boolean $debug: show debug info
  • boolean $ignorPopulated: (if false the table MUST have been populated)

Redefinition of:
DBMS_TABLEOBJ::dbReplace()
replaces a row in the table
getChildren (line 145)

returns an array of child objects

if $childClass isset the class must have been loaded already

  • access: public
array getChildren ([string $childClass = 'OCSP_GROUP'], [boolean $debug = False])
  • string $childClass: class of the children
  • boolean $debug
getId (line 95)

returns the group id

  • since: pk-08-05-09
  • access: public
int getId ()
getName (line 107)

return the group name

  • since: pk-08-05-09
  • access: public
string getName ()
isChildOf (line 130)

returns if the group is a child of $aGrpId

  • since: pk-08-05-09
  • access: public
boolean isChildOf (int $aGrpId)
  • int $aGrpId
userCanDelete (line 306)

returns if the current user can delete the group

boolean userCanDelete ([boolean $debug = false])
  • boolean $debug
userCanEdit (line 285)

returns if the current user can edit the group

boolean userCanEdit ([boolean $debug = false])
  • boolean $debug
userCanInsert (line 262)

returns if the current user can edit the group

boolean userCanInsert ([boolean $debug = false])
  • boolean $debug
userCanShow (line 246)

returns if the current user can edit the group

boolean userCanShow ([boolean $debug = false])
  • boolean $debug

Inherited Methods

Inherited From DBMS_TABLEOBJ

 DBMS_TABLEOBJ::DBMS_TABLEOBJ()
 DBMS_TABLEOBJ::cacheRestore()
 DBMS_TABLEOBJ::cacheWriteTo()
 DBMS_TABLEOBJ::clearErrors()
 DBMS_TABLEOBJ::dbDelete()
 DBMS_TABLEOBJ::dbGetDataArray()
 DBMS_TABLEOBJ::dbGetForm()
 DBMS_TABLEOBJ::dbInsert()
 DBMS_TABLEOBJ::dbPopulate()
 DBMS_TABLEOBJ::dbReplace()
 DBMS_TABLEOBJ::dbSave()
 DBMS_TABLEOBJ::db_SetKey()
 DBMS_TABLEOBJ::db_SetKeyArray()
 DBMS_TABLEOBJ::getClassInclude()
 DBMS_TABLEOBJ::getDbDesc()
 DBMS_TABLEOBJ::getDBField()
 DBMS_TABLEOBJ::getDBRow()
 DBMS_TABLEOBJ::getDBVal()
 DBMS_TABLEOBJ::getDefaults()
 DBMS_TABLEOBJ::getErrorMsg()
 DBMS_TABLEOBJ::getFieldDBDefault()
 DBMS_TABLEOBJ::getForm()
 DBMS_TABLEOBJ::getFormClassName()
 DBMS_TABLEOBJ::getFormName()
 DBMS_TABLEOBJ::getJSON()
 DBMS_TABLEOBJ::getKeyArr()
 DBMS_TABLEOBJ::getMyTable()
 DBMS_TABLEOBJ::getObjValArray()
 DBMS_TABLEOBJ::getObjValValue()
 DBMS_TABLEOBJ::getPopulateTs()
 DBMS_TABLEOBJ::getWhere()
 DBMS_TABLEOBJ::hasChanged()
 DBMS_TABLEOBJ::hasColumn()
 DBMS_TABLEOBJ::hasErrors()
 DBMS_TABLEOBJ::hasObjVals()
 DBMS_TABLEOBJ::init()
 DBMS_TABLEOBJ::isInit()
 DBMS_TABLEOBJ::isPopulated()
 DBMS_TABLEOBJ::keysAreSet()
 DBMS_TABLEOBJ::populateFromKeys()
 DBMS_TABLEOBJ::populateFromValues()
 DBMS_TABLEOBJ::populateObjVals()
 DBMS_TABLEOBJ::p_cacheIsExpired()
 DBMS_TABLEOBJ::saveLinkedRow()
 DBMS_TABLEOBJ::saveLinkedTableRows()
 DBMS_TABLEOBJ::saveObjVals()
 DBMS_TABLEOBJ::setChanged()
 DBMS_TABLEOBJ::setDBField()
 DBMS_TABLEOBJ::setDBFieldIfDiff()
 DBMS_TABLEOBJ::setDBFieldIfEmpty()
 DBMS_TABLEOBJ::setDBRow()
 DBMS_TABLEOBJ::setDBVal()
 DBMS_TABLEOBJ::setDefaults()
 DBMS_TABLEOBJ::setError()
 DBMS_TABLEOBJ::setLinkedTableRow()
 DBMS_TABLEOBJ::setMyTable()
 DBMS_TABLEOBJ::setObjValArray()
 DBMS_TABLEOBJ::setObjValValue()
 DBMS_TABLEOBJ::setObjVarIfEmpty()
 DBMS_TABLEOBJ::setUnChanged()
 DBMS_TABLEOBJ::userIsAllowed()
 DBMS_TABLEOBJ::writeDebugInfo()
 DBMS_TABLEOBJ::xmladdDOMElement()
 DBMS_TABLEOBJ::xmlExport()
 DBMS_TABLEOBJ::_getCacheFileName()
 DBMS_TABLEOBJ::_getDBFields()

Inherited From OCSP_OBJ

 OCSP_OBJ::castObj()
 OCSP_OBJ::cloneMe()
 OCSP_OBJ::currentUser()
 OCSP_OBJ::dbConnect()
 OCSP_OBJ::defaultDBObj()
 OCSP_OBJ::defaultReadDBObj()
 OCSP_OBJ::defaultWriteDBObj()
 OCSP_OBJ::getConf()
 OCSP_OBJ::getDBObj()
 OCSP_OBJ::get_myClassConstant()
 OCSP_OBJ::get_myObject_vars()
 OCSP_OBJ::get_mySourceFile()
 OCSP_OBJ::isConnected()
 OCSP_OBJ::isMultiByteStr()
 OCSP_OBJ::isUTF8()
 OCSP_OBJ::setConf()
 OCSP_OBJ::setDBObj()
 OCSP_OBJ::set_myObject_vars()
 OCSP_OBJ::set_myVarsFrom()
Class Constants
CLASS_SRC_FILE = __FILE__ (line 43)

Inherited Constants

Inherited from DBMS_TABLEOBJ

DBMS_TABLEOBJ::CLASS_SRC_FILE

Inherited from OCSP_OBJ

OCSP_OBJ::CLASS_SRC_FILE

Documentation generated on Thu, 08 Jan 2009 17:46:41 +0100 by phpDocumentor 1.4.0a2