/** * 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 $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 $label_id [INTEGER] The unique id of the multilingualLabel we are managing. * @return [void] */ function __construct($label_id = -1) { $dbTableName = RowManager_MultilingualLabelManager::DB_TABLE; $fieldList = RowManager_MultilingualLabelManager::FIELD_LIST; $primaryKeyField = 'label_id'; $primaryKeyValue = $label_id; if ($label_id != -1 && $label_id != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; } else { $condition = ''; } $xmlNodeName = RowManager_MultilingualLabelManager::XML_NODE_NAME; $this->dbDescription = RowManager_MultilingualLabelManager::DB_TABLE_DESCRIPTION; parent::__construct($dbTableName, $fieldList, $primaryKeyField, $primaryKeyValue, $condition, $xmlNodeName); }
/** * 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 $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 $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 $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 $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 $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 $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 $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 $moduleID [INTEGER] The unique id of the module we are managing. * @return [void] */ function __construct($moduleID = -1) { $dbTableName = RowManager_ModuleManager::DB_TABLE; $fieldList = RowManager_ModuleManager::FIELD_LIST; $primaryKeyField = 'module_id'; $primaryKeyValue = $moduleID; if ($moduleID != -1 && $moduleID != '') { $condition = $primaryKeyField . '=' . $primaryKeyValue; } else { $condition = ''; } $xmlNodeName = RowManager_ModuleManager::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 $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; }