/** * function __construct * <pre> * Initialize this object. * </pre> * @param $assignmentID [INTEGER] The unique id of the assignment to manage. * @return [void] */ function __construct($assignmentID = -1) { $dbTableName = RowManager_HrdbAssignmentManager::DB_TABLE; $fieldList = RowManager_HrdbAssignmentManager::FIELD_LIST; $primaryKeyField = 'assignment_id'; $primaryKeyValue = $assignmentID; if ($assignmentID != -1 && $assignmentID != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; } else { $condition = ''; } $xmlNodeName = RowManager_HrdbAssignmentManager::XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName, HR_DB_NAME); }
/** * function __construct * <pre> * Initialize this object. * </pre> * @param $ACTIVITYSCHEDULE_ID [INTEGER] The unique id of the activityschedule we are managing. * @return [void] */ function __construct($ACTIVITYSCHEDULE_ID = -1) { $dbTableName = RowManager_ActivityScheduleManager::DB_TABLE; $fieldList = RowManager_ActivityScheduleManager::FIELD_LIST; $primaryKeyField = 'activityschedule_id'; $primaryKeyValue = $ACTIVITYSCHEDULE_ID; if ($ACTIVITYSCHEDULE_ID != -1 && $ACTIVITYSCHEDULE_ID != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; } else { $condition = ''; } $xmlNodeName = RowManager_ActivityScheduleManager::XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName); $this->dbDescription = RowManager_ActivityScheduleManager::DB_TABLE_DESCRIPTION; }
/** * function __construct * <pre> * Initialize this object. * </pre> * @param $ACCESS_ID [INTEGER] The unique id of the viewertopersonassignment we are managing. * @return [void] */ function __construct($ACCESS_ID = -1) { $dbTableName = RowManager_ViewerToPersonAssignmentManager::DB_TABLE; $fieldList = RowManager_ViewerToPersonAssignmentManager::FIELD_LIST; $primaryKeyField = 'access_id'; $primaryKeyValue = $ACCESS_ID; if ($ACCESS_ID != -1 && $ACCESS_ID != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; } else { $condition = ''; } $xmlNodeName = RowManager_ViewerToPersonAssignmentManager::XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName); $this->dbDescription = RowManager_ViewerToPersonAssignmentManager::DB_TABLE_DESCRIPTION; }
/** * function __construct * <pre> * Initialize this object. * </pre> * @param $ASSIGNSTATUS_ID [INTEGER] The unique id of the campusassignmentstatus we are managing. * @return [void] */ function __construct($ASSIGNSTATUS_ID = -1) { $dbTableName = RowManager_CampusAssignmentStatusManager::DB_TABLE; $fieldList = RowManager_CampusAssignmentStatusManager::FIELD_LIST; $primaryKeyField = 'assignmentstatus_id'; $primaryKeyValue = $ASSIGNSTATUS_ID; if ($ASSIGNSTATUS_ID != -1 && $ASSIGNSTATUS_ID != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; } else { $condition = ''; } $xmlNodeName = RowManager_CampusAssignmentStatusManager::XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName); $this->dbDescription = RowManager_CampusAssignmentStatusManager::DB_TABLE_DESCRIPTION; }
/** * function __construct * <pre> * Initialize this object. * </pre> * @param $PRICERULETYPE_ID [INTEGER] The unique id of the priceruletype we are managing. * @return [void] */ function __construct($PRICERULETYPE_ID = -1) { $dbTableName = RowManager_PriceRuleTypeManager::DB_TABLE; $fieldList = RowManager_PriceRuleTypeManager::FIELD_LIST; $primaryKeyField = 'priceruletypes_id'; $primaryKeyValue = $PRICERULETYPE_ID; if ($PRICERULETYPE_ID != -1 && $PRICERULETYPE_ID != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; } else { $condition = ''; } $xmlNodeName = RowManager_PriceRuleTypeManager::XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName); $this->dbDescription = RowManager_PriceRuleTypeManager::DB_TABLE_DESCRIPTION; }
/** * function __construct * <pre> * Initialize this object. * </pre> * @param $PERMISSIONSSUPERADMIN_ID [INTEGER] The unique id of the permissionssuperadmin we are managing. * @return [void] */ function __construct($PERMISSIONSSUPERADMIN_ID = -1) { $dbTableName = RowManager_PermissionsSuperAdminManager::DB_TABLE; $fieldList = RowManager_PermissionsSuperAdminManager::FIELD_LIST; $primaryKeyField = 'permissionsSuperAdmin_id'; $primaryKeyValue = $PERMISSIONSSUPERADMIN_ID; if ($PERMISSIONSSUPERADMIN_ID != -1 && $PERMISSIONSSUPERADMIN_ID != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; } else { $condition = ''; } $xmlNodeName = RowManager_PermissionsSuperAdminManager::XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName); $this->dbDescription = RowManager_PermissionsSuperAdminManager::DB_TABLE_DESCRIPTION; }
/** * function __construct * <pre> * Initialize this object. * </pre> * @param $STAFFSCHEDULEINSTR_ID [INTEGER] The unique id of the staffscheduleinstr we are managing. * @return [void] */ function __construct($STAFFSCHEDULEINSTR_ID = -1) { $dbTableName = RowManager_StaffScheduleInstrManager::DB_TABLE; $fieldList = RowManager_StaffScheduleInstrManager::FIELD_LIST; $primaryKeyField = 'staffscheduletype_id'; $primaryKeyValue = $STAFFSCHEDULEINSTR_ID; if ($STAFFSCHEDULEINSTR_ID != -1 && $STAFFSCHEDULEINSTR_ID != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; } else { $condition = ''; } $xmlNodeName = RowManager_StaffScheduleInstrManager::XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName); $this->dbDescription = RowManager_StaffScheduleInstrManager::DB_TABLE_DESCRIPTION; }
/** * function __construct * <pre> * Initialize this object. * </pre> * @param $GROUP_ID [INTEGER] The unique id of the group we are managing. * @return [void] */ function __construct($GROUP_ID = -1) { $dbTableName = RowManager_GroupManager::DB_TABLE; $fieldList = RowManager_GroupManager::FIELD_LIST; $primaryKeyField = 'group_id'; $primaryKeyValue = $GROUP_ID; if ($GROUP_ID != -1 && $GROUP_ID != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; } else { $condition = ''; } $xmlNodeName = RowManager_GroupManager::XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName); $this->dbDescription = RowManager_GroupManager::DB_TABLE_DESCRIPTION; }
/** * function __construct * <pre> * Initialize this object. * </pre> * @param $initValue [INTEGER] The unique id of the navbarcache we are managing. * @return [void] */ function __construct($initValue = -1) { $dbTableName = RowManager_NavBarCacheManager::DB_TABLE; $fieldList = RowManager_NavBarCacheManager::FIELD_LIST; $primaryKeyField = 'navbarcache_id'; $primaryKeyValue = $initValue; if ($initValue != -1 && $initValue != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; } else { $condition = ''; } $xmlNodeName = RowManager_NavBarCacheManager::XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName); $this->dbDescription = RowManager_NavBarCacheManager::DB_TABLE_DESCRIPTION; }
/** * function __construct * <pre> * Initialize this object. * </pre> * @param $EVENTADMIN_ID [INTEGER] The unique id of the eventadminassignment we are managing. * @return [void] */ function __construct($EVENTADMIN_ID = -1) { $dbTableName = RowManager_EventAdminAssignmentManager::DB_TABLE; $fieldList = RowManager_EventAdminAssignmentManager::FIELD_LIST; $primaryKeyField = 'eventadmin_id'; $primaryKeyValue = $EVENTADMIN_ID; if ($EVENTADMIN_ID != -1 && $EVENTADMIN_ID != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; } else { $condition = ''; } $xmlNodeName = RowManager_EventAdminAssignmentManager::XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName); $this->dbDescription = RowManager_EventAdminAssignmentManager::DB_TABLE_DESCRIPTION; }
/** * function __construct * <pre> * Initialize this object. * </pre> * @param $initValue [INTEGER] The unique id of the accountadminaccess we are managing. * @return [void] */ function __construct($initValue = -1) { $dbTableName = RowManager_AccountAdminAccessManager::DB_TABLE; $fieldList = RowManager_AccountAdminAccessManager::FIELD_LIST; $primaryKeyField = 'accountadminaccess_id'; $primaryKeyValue = $initValue; if ($initValue != -1 && $initValue != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; } else { $condition = ''; } $xmlNodeName = RowManager_AccountAdminAccessManager::XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName); $this->dbDescription = RowManager_AccountAdminAccessManager::DB_TABLE_DESCRIPTION; $this->viewerMgr = null; }
/** * function __construct * <pre> * Initialize this object. * </pre> * @param $template_id [INTEGER] The unique id of the emailtemplate we are managing. * @return [void] */ function __construct($template_id = -1, $app_id = "") { $dbTableName = RowManager_EmailTemplateManager::DB_TABLE; $fieldList = RowManager_EmailTemplateManager::FIELD_LIST; $primaryKeyField = 'template_id'; $primaryKeyValue = $template_id; if ($template_id != -1 && $template_id != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; //$condition .= " AND app_id='".$app_id."'"; } else { $condition = ''; //$condition = "app_id='" . $app_id ."'"; } $xmlNodeName = RowManager_EmailTemplateManager::XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName); $this->dbDescription = RowManager_EmailTemplateManager::DB_TABLE_DESCRIPTION; }
/** * function __construct * <pre> * Initialize this object. * </pre> * @param $PRIMARY_ID [INTEGER] The unique id of the customreports we are managing. * @return [void] */ function __construct($DB_TABLE, $DB_TABLE_CREATESQL, $FIELD_LIST, $XML_NODE_NAME, $PRIMARY_ID = -1) { $dbTableName = $this->DB_TABLE = $DB_TABLE; $fieldList = $this->FIELD_LIST = $FIELD_LIST; $fieldArray = explode(',', $FIELD_LIST); $primaryKeyField = $fieldArray[0]; // NOTE: assumes that field_list starts with primary ID $primaryKeyValue = $PRIMARY_ID; if ($PRIMARY_ID != -1 && $PRIMARY_ID != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; } else { $condition = ''; } $xmlNodeName = $XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName); $this->dbDescription = ' ' . $DB_TABLE_CREATESQL; }
/** * function __construct * <pre> * Initialize this object. * </pre> * @param $initValue [INTEGER] The unique id of the pagefield we are managing. * @return [void] */ function __construct($initValue = -1) { $dbTableName = RowManager_PageFieldManager::DB_TABLE; $fieldList = RowManager_PageFieldManager::FIELD_LIST; $primaryKeyField = 'pagefield_id'; $primaryKeyValue = $initValue; if ($initValue != -1 && $initValue != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; } else { $condition = ''; } $xmlNodeName = RowManager_PageFieldManager::XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName, RADTOOL_DB_NAME, RADTOOL_DB_PATH, RADTOOL_DB_USER, RADTOOL_DB_PWORD); if ($this->isLoaded() == false) { // uncomment this line if you want the Manager to automatically // create a new entry if the given info doesn't exist. // $this->createNewEntry(); } }
/** * function __construct * <pre> * Initialize this object. * </pre> * @param $accessID [INTEGER] The unique id of the access object we are managing. * @return [void] */ function __construct($accessID = -1) { $dbTableName = RowManager_HrdbAccessManager::DB_TABLE; $fieldList = RowManager_HrdbAccessManager::FIELD_LIST; $primaryKeyField = 'access_id'; $primaryKeyValue = $accessID; if ($accessID != -1 && $accessID != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; } else { $condition = ''; } $xmlNodeName = RowManager_HrdbAccessManager::XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName, HR_DB_NAME); if ($this->isLoaded() == false) { // uncomment this line if you want the Manager to automatically // create a new entry if the given info doesn't exist. // $this->createNewEntry(); } }
/** * function __construct * <pre> * Initialize this object. * </pre> * @param $SEMESTER_ID [INTEGER] The unique id of the semesterreport we are managing. * @return [void] */ function __construct($SEMESTER_ID = -1, $campusID = -1) { $dbTableName = RowManager_SemesterReportManager::DB_TABLE; $fieldList = RowManager_SemesterReportManager::FIELD_LIST; $primaryKeyField = 'semesterreport_id'; $primaryKeyValue = -1; if ($SEMESTER_ID != -1 && $SEMESTER_ID != '') { $condition = 'semester_id=' . $SEMESTER_ID; if ($campusID != -1 && $campusID != '') { $condition .= ' AND campus_id=' . $campusID; } } else { $condition = ''; } // echo 'The condition is ['.$condition.']<br/>'; $xmlNodeName = RowManager_SemesterReportManager::XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName); $this->dbDescription = RowManager_SemesterReportManager::DB_TABLE_DESCRIPTION; }
/** * function __construct * <pre> * Initialize this object. * </pre> * @param $initValue [INTEGER] The unique id of the province we are managing. * @return [void] */ function __construct($initValue = -1) { $dbTableName = RowManager_ProvinceManager::DB_TABLE; $fieldList = RowManager_ProvinceManager::FIELD_LIST; $primaryKeyField = 'province_id'; $primaryKeyValue = $initValue; if ($initValue != -1 && $initValue != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; } else { $condition = ''; } $xmlNodeName = RowManager_ProvinceManager::XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName, HR_DB_NAME); $this->dbDescription = RowManager_ProvinceManager::DB_TABLE_DESCRIPTION; if ($this->isLoaded() == false) { // uncomment this line if you want the Manager to automatically // create a new entry if the given info doesn't exist. // $this->createNewEntry(); } }
/** * function __construct * <pre> * Initialize this object. * </pre> * @param $WEEK_ID [INTEGER] The unique id of the weeklyreport we are managing. * @param $staff_id [INTEGER] The unique id of a staff member. * @return [void] */ function __construct($WEEK_ID = -1, $staff_id = -1, $campus_id = -1) { $dbTableName = RowManager_WeeklyReportManager::DB_TABLE; $fieldList = RowManager_WeeklyReportManager::FIELD_LIST; $primaryKeyField = 'weeklyReport_id'; $primaryKeyValue = 0; if ($WEEK_ID != -1 && $WEEK_ID != '') { $condition = 'week_id' . '=' . $WEEK_ID; if ($staff_id != -1 && $staff_id != '') { $condition .= ' AND staff_id=' . $staff_id; } if ($campus_id != -1 && $campus_id != '') { $condition .= ' AND campus_id=' . $campus_id; } // echo 'The condition is ['.$condition.']<br/>'; } else { $condition = ''; } $xmlNodeName = RowManager_WeeklyReportManager::XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName); $this->dbDescription = RowManager_WeeklyReportManager::DB_TABLE_DESCRIPTION; }
/** * function __construct * <pre> * Initialize this object. * </pre> * @param $EMERG_ID [INTEGER] The unique id of the emergencyinfo we are managing. * @return [void] */ function __construct($EMERG_ID = -1, $person_id = -1) { $dbTableName = RowManager_EmergencyInfoManager::DB_TABLE; $fieldList = RowManager_EmergencyInfoManager::FIELD_LIST; $primaryKeyField = 'emerg_id'; $primaryKeyValue = $EMERG_ID; if ($EMERG_ID != -1 && $EMERG_ID != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; } else { $condition = ''; } if ($person_id != -1 && $person_id != '') { $concat = ' AND '; if ($condition == '') { $concat = ''; } $condition .= $concat . 'person_id=' . $person_id; } $xmlNodeName = RowManager_EmergencyInfoManager::XML_NODE_NAME; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName); $this->dbDescription = RowManager_EmergencyInfoManager::DB_TABLE_DESCRIPTION; }
/** * function deleteEntry * <pre> * Removes the child entries of Module objects before removing self. * (Poor Man's Referential Integrity) * </pre> * @return [void] */ function deleteEntry() { // first remove any associated State Variables $list = new StateVarList($this->getModuleID()); $list->setFirst(); while ($item = $list->getNext()) { $item->deleteEntry(); } // now remove any Data Access Objects $list = new DAObjList($this->getModuleID()); $list->setFirst(); while ($item = $list->getNext()) { $item->deleteEntry(); } // now remove any Page Objects $list = new PageList($this->getModuleID()); $list->setFirst(); while ($item = $list->getNext()) { $item->deleteEntry(); } // now remove any Transitions $list = new TransitionsList($this->getModuleID()); $list->setFirst(); while ($item = $list->getNext()) { $item->deleteEntry(); } // now call parent method parent::deleteEntry(); }
/** * function updateDBTable * <pre> * Updates the DB table info. * </pre> * @return [void] */ function updateDBTable() { // make sure label is translated into UnicodeEntities $data = $this->getLabel(); $newData = Unicode_utf8ToUnicodeEntities($data); $this->setLabel($newData); parent::updateDBTable(); // Go Through and remove any existing xlation requests for this // label entry. $currentPageID = $this->getPageID(); $currentKey = $this->getKey(); $currentLanguageID = $this->getLanguageID(); $xlationManager = new RowManager_XLationManager(); // for each label with matching PageID & Key $labelManager = new RowManager_MultilingualLabelManager(); $labelManager->setPageID($currentPageID); $labelManager->setKey($currentKey); $labelList = $labelManager->getListIterator(); $labelList->setFirst(); while ($label = $labelList->getNext()) { // delete any xlation entry with current language_id & // matching label_id if ($xlationManager->loadByLabelAndLanguage($label->getID(), $currentLanguageID)) { $xlationManager->deleteEntry(); } } // next label }
/** * function deleteEntry * <pre> * Removes the child entries of page objects before removing self. * </pre> * @return [void] */ function deleteEntry() { // first remove any associated fields with this Page $pageFieldList = new PageFieldList($this->getID()); $pageFieldList->setFirst(); while ($field = $pageFieldList->getNext()) { $field->deleteEntry(); } // now remove any labels associated with this Page $pageLabelList = new PageLabelsList($this->getID()); $pageLabelList->setFirst(); while ($label = $pageLabelList->getNext()) { $label->deleteEntry(); } // now call parent method parent::deleteEntry(); }
/** * function deleteEntry * <pre> * Removes the DB table info. * </pre> * @return [void] */ function deleteEntry() { parent::deleteEntry(); if ($this->isVolumePriceRule() == true) { // create a record for tracking whether a volume rule is active $activeRule = new RowManager_ActiveRuleManager($this->getID()); $activeRule->deleteEntry(); } }
/** * function deleteEntry * <pre> * Removes the DB table info. * </pre> * @return [void] */ function deleteEntry() { parent::deleteEntry(); $values = $this->getArrayOfValues(); // echo "<pre>".print_r($values,true)."</pre>"; if (isset($values['registration_id'])) { // update balance owing column in cim_reg_registration table $singleReg = new RowManager_RegistrationManager($values['registration_id']); // $singleReg_list = $singleReg->getListIterator(); // $singleReg_array = $singleReg_list->getDataList(); // // reset($singleReg_array); // $record = current($singleReg_array); // $oldBalance = $record['registration_balance']; $balanceGetter = new FinancialTools(); $balance = array(); // $balance['registration_balance'] = $oldBalance - $record['cctransaction_amount']; $balance['registration_balance'] = $balanceGetter->simpleCalcBalanceOwing($values['registration_id']); $singleReg->loadFromArray($balance); $singleReg->updateDBTable(); } }
/** * function deleteEntry * <pre> * Removes the DB table entry. Also, since this table also has linked * items in the viewer access group table, it makes sure those are removed * as well. * </pre> * @return [void] */ function deleteEntry() { // get a viewerAccessGroup manager $viewerAccess = new RowManager_ViewerAccessGroupManager(); // now update it so that it's condition is based on this viewer id $condition = $this->getPrimaryKeyField() . '=' . $this->getID(); $viewerAccess->setDBCondition($condition); $viewerAccess->deleteEntry(); // now continue with remove of this entry... parent::deleteEntry(); }
/** * function loadFromArray (overrides parent function) * <pre> * Loads this object from a given array of data. * </pre> * @param $values [ARRAY] array of data: array( $field=>$value,...,$field=>$value); * @return [void] */ function loadFromArray($values) { $cardNum = $values['cctransaction_cardNum']; $values['cctransaction_cardNum'] = substr($cardNum, 0, 4) . '****' . substr($cardNum, -4); parent::loadFromArray($values); // if (isset($values['reg_id'])) // { // // // update balance owing column in cim_reg_registration table // $singleReg = new RowManager_RegistrationManager($values['reg_id']); // // $singleReg_list = $singleReg->getListIterator(); // // $singleReg_array = $singleReg_list->getDataList(); // // // // reset($singleReg_array); // // $record = current($singleReg_array); // // $oldBalance = $record['registration_balance']; // // $balanceGetter = new FinancialTools(); // $balance = array(); // // $balance['registration_balance'] = $oldBalance - $record['cctransaction_amount']; // $balance['registration_balance'] = $balanceGetter->simpleCalcBalanceOwing($values['reg_id']); // $singleReg->loadFromArray( $balance ); // $singleReg->updateDBTable(); // } }
function getValueByFieldName($fieldName) { $retVal = parent::getValueByFieldName($fieldName); if ($fieldName == 'week_endDate') { $retVal = date('d-M-y', strtotime($retVal)); } return $retVal; }
/** * function deleteEntry * <pre> * Removes the child entries of daField objects before removing self. * </pre> * @return [void] */ function deleteEntry() { // first remove any associated fields with this DAObj $daFieldList = new DAFieldList($this->getID()); $daFieldList->setFirst(); while ($field = $daFieldList->getNext()) { $field->deleteEntry(); } // now call parent method parent::deleteEntry(); }
/** * function deleteEntry * <pre> * Removes the DB table info. * </pre> * @return [void] */ function deleteEntry() { // before removing entry, make sure associated linkGroups & linkViewers // are removed as well $linkID = $this->getID(); $linkMgr = new RowManager_NavLinkAccessGroupManager(); $linkMgr->setLinkID($linkID); $list = $linkMgr->getListIterator(); $list->setFirst(); while ($entry = $list->getNext()) { $entry->deleteEntry(); } $linkViewerMgr = new RowManager_NavLinkViewerManager(); $linkViewerMgr->setLinkID($linkID); $list = $linkViewerMgr->getListIterator(); $list->setFirst(); while ($entry = $list->getNext()) { $entry->deleteEntry(); } parent::deleteEntry(); }