/** * */ public function __construct(&$dbHandler) { // Call to constructor of parent class tlFilterControl. // This already loads configuration and user input // and does all the remaining necessary method calls, // so no further method call is required here for initialization. parent::__construct($dbHandler); $this->req_mgr = new requirement_mgr($this->db); // ATTENTION if you do not see it when debugging, can be because // has been declared as PROTECTED $this->cfield_mgr =& $this->req_mgr->cfield_mgr; // moved here from parent::__constructor() to be certain that // all required objects has been created $this->init_filters(); }
/** * * @param database $dbHandler * @param string $mode can be edit_mode/execution_mode/plan_mode/plan_add_mode, depending on usage */ public function __construct(&$dbHandler, $mode = 'edit_mode') { // set mode to define further actions before calling parent constructor $this->mode = array_key_exists($mode, $this->mode_filter_mapping) ? $mode : 'edit_mode'; // Call to constructor of parent class tlFilterControl. // This already loads configuration and user input // and does all the remaining necessary method calls, // so no further method call is required here for initialization. parent::__construct($dbHandler); $this->cfield_mgr = new cfield_mgr($this->db); // moved here from parent::__constructor() to be certain that // all required objects has been created $this->init_filters(); $this->initTreeOptions($this->mode); // delete any filter settings that may be left from previous calls in session // Session data has been designed to provide an unidirectional channel // between the left pane where tree lives and right pane. // That's why delete each time our OWN session data. $this->delete_own_session_data(); $this->delete_old_session_data(); $this->save_session_data(); }
/** * * @param database $dbHandler * @param string $mode can be edit_mode/execution_mode/plan_mode/plan_add_mode, depending on usage */ public function __construct(&$dbHandler, $mode = 'edit_mode') { // set mode to define further actions before calling parent constructor $this->mode = array_key_exists($mode, $this->mode_filter_mapping) ? $mode : 'edit_mode'; // Call to constructor of parent class tlFilterControl. // This already loads configuration and user input // and does all the remaining necessary method calls, // so no further method call is required here for initialization. parent::__construct($dbHandler); // delete any filter settings that may be left from previous calls in session $this->delete_own_session_data(); $this->delete_old_session_data(); $this->save_session_data(); }
/** * * @param database $dbHandler * @param string $mode can be edit_mode/execution_mode/plan_mode/plan_add_mode, depending on usage */ public function __construct(&$dbHandler, $mode = 'edit_mode') { // Has to be done before any other action $this->mode = array_key_exists($mode, $this->mode_filter_mapping) ? $mode : 'edit_mode'; // Important Developer Notice: // Constructor will launch common methods, calling method defined IN THIS CLASS parent::__construct($dbHandler); $this->initTreeOptions($this->mode); $this->treeMenuMgr = new tlTreeMenu($this->db); $this->execTreeMenuMgr = new tlExecTreeMenu($this->db); // delete any filter settings that may be left from previous calls in session $this->delete_own_session_data(); $this->delete_old_session_data(); $this->save_session_data(); }