Source for file OCSP_GROUP.phpclass
Documentation is available at OCSP_GROUP.phpclass
* Class file ADDRESS.phpclass
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
require
__OCSP_PHPINCPATH__.
"db/DBMS_TABLEOBJ.phpclass";
require
dirname(__FILE__
) .
_OCSP_DIRSEP_ .
"OCSP_GROUPTREE.phpclass";
* Class class OCSP_GROUP handles T_SYS_GROUP
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @constant string CLASS_SRC_FILE
* @staticvar string $myTable name of the db table
// ------------------------------------------------------
// ------------------------------------------------------
$obj_ret->setDBRow($obj_grpTree->getGroupRow($aId),true,$debug);
// ------------------------------------------------------
// ------------------------------------------------------
// ------------------------------------------------------
// ------------------------------------------------------
// ------------------------------------------------------
// ------------------------------------------------------
* returns if the group is a child of $aGrpId
* returns an array of child objects
* if $childClass isset the class must have been loaded already
* @param string $childClass class of the children
public function getChildren($childClass=
'OCSP_GROUP',$debug=
False)
if ($arr_rows =
$this->myDBObj->getArray($this->myTable,array('GRP_PARENT' =>
intval($this->getId())),0,0,'GRP_NAME',$debug))
foreach($arr_rows as $arr_row)
eval
("\$arr_ret[" .
$int_idx .
"]=new ".
$childClass.
"();");
$arr_ret[$int_idx]->setDBRow($arr_row,True);
// ------------------------------------------------------
// ------------------------------------------------------
* inserts a new row to the table
* @returns int returns the autoIncFld ID if exists or 1 on success
* replaces a row in the table
* @param boolean $debug show debug info
* @param boolean $ignorPopulated (if false the table MUST have been populated)
* @global array $OCSP_OBJ
function dbReplace($debug=
FALSE,$ignorPopulated=
FALSE)
if ($int_grpId =
parent::dbReplace($debug,$ignorPopulated))
// ------------------------------------------------------
// ------------------------------------------------------
* returns if the current user can edit the group
* returns if the current user can edit the group
* returns if the current user can edit the group
if ($int_grpId =
$this->getDBField('GRP_ID') &&
($int_grpId >
0))
* returns if the current user can delete the group
Documentation generated on Thu, 08 Jan 2009 17:46:41 +0100 by phpDocumentor 1.4.0a2