/** * function __construct * <pre> * Initialize the object. * </pre> * @param $pathModuleRoot [STRING] The path to the module's root dir. * @param $viewer [OBJECT] The viewer object. * @param $formAction [STRING] The action on a form submit * @param $managerInit [INTEGER] Initialization value for the itemManager. * @return [void] */ function __construct($pathModuleRoot, $viewer, $formAction, $person_id = '') { $fieldList = page_DeletePerson::DISPLAY_FIELDS; parent::__construct($formAction, $fieldList); // initialzie the object values $this->pathModuleRoot = $pathModuleRoot; $this->viewer = $viewer; $this->person_id = $person_id; // // initialize data filters // $this->filter_fname = $filter_fname; // $this->filter_lname = $filter_lname; // $this->filter_email = $filter_email; if (isset($max_exec_time)) { set_time_limit($max_exec_time); // echo "Time limit set to ".$max_exec_time." seconds!"; } // create the item Manager to display $this->itemManager = new RowManager_PersonManager($person_id); $this->person_manager = new RowManager_PersonManager(); // now initialize the labels for this page // start by loading the default field labels for this Module $languageID = $viewer->getLanguageID(); $seriesKey = modulecim_hrdb::MULTILINGUAL_SERIES_KEY; $pageKey = modulecim_hrdb::MULTILINGUAL_PAGE_FIELDS; $this->labels = new MultilingualManager($languageID, $seriesKey, $pageKey); // then load the page specific labels for this page $pageKey = page_DeletePerson::MULTILINGUAL_PAGE_KEY; $this->labels->loadPageLabels($pageKey); // add Site YES/NO labels $this->labels->setSeriesKey(SITE_LABEL_SERIES_SITE); $this->labels->loadPageLabels(SITE_LABEL_PAGE_LIST_YESNO); }
/** * function __construct * <pre> * Initialize the object. * </pre> * @param $pathModuleRoot [STRING] The path to the module's root dir. * @param $viewer [OBJECT] The viewer object. * @param $formAction [STRING] The action on a form submit * @param $managerInit [INTEGER] Initialization value for the itemManager. * @return [void] */ function __construct($pathModuleRoot, $viewer, $formAction, $managerInit = '') { $fieldList = page_DeleteAdmin::DISPLAY_FIELDS; parent::__construct($formAction, $fieldList); // initialzie the object values $this->pathModuleRoot = $pathModuleRoot; $this->viewer = $viewer; $this->managerInit = $managerInit; // create the item Manager to display $this->itemManager = new RowManager_AdminManager($managerInit); // now initialize the labels for this page // start by loading the default field labels for this Module $languageID = $viewer->getLanguageID(); $seriesKey = modulecim_hrdb::MULTILINGUAL_SERIES_KEY; $pageKey = modulecim_hrdb::MULTILINGUAL_PAGE_FIELDS; $this->labels = new MultilingualManager($languageID, $seriesKey, $pageKey); // then load the page specific labels for this page $pageKey = page_DeleteAdmin::MULTILINGUAL_PAGE_KEY; $this->labels->loadPageLabels($pageKey); // add Site YES/NO labels $this->labels->setSeriesKey(SITE_LABEL_SERIES_SITE); $this->labels->loadPageLabels(SITE_LABEL_PAGE_LIST_YESNO); }