protected function read_config() { // some configuration reading already done in parent class parent::read_config(); // load configuration for requirement filters $this->configuration = config_get('tree_filter_cfg')->requirements; // load req and req spec config (for types, filters, status, ...) $this->configuration->req_cfg = config_get('req_cfg'); $this->configuration->req_spec_cfg = config_get('req_spec_cfg'); // is choice of advanced filter mode enabled? $this->filter_mode_choice_enabled = $this->configuration->advanced_filter_mode_choice; return tl::OK; }
/** * Reads the configuration from the configuration file specific for test cases, * additionally to those parts of the config which were already loaded by parent class. * @return bool */ protected function read_config() { // some configuration reading already done in parent class parent::read_config(); // load configuration for active mode only $this->configuration = config_get('tree_filter_cfg')->testcases->{$this->mode}; // load also exec config - it is not only needed in exec mode $this->configuration->exec_cfg = config_get('exec_cfg'); // some additional testcase configuration $this->configuration->tc_cfg = config_get('testcase_cfg'); // advanced filter mode enabled? $this->filter_mode_choice_enabled = false; if (isset($this->configuration->advanced_filter_mode_choice) && $this->configuration->advanced_filter_mode_choice == ENABLED) { $this->filter_mode_choice_enabled = true; } return tl::OK; }
/** * Reads the configuration from the configuration file specific for test cases, * additionally to those parts of the config which were already loaded by parent class. * * IMPORTANT DEVELOPER NOTICE: YOU HAVE TO CALL parent method as FIRST ACTION */ protected function read_config() { parent::read_config(); $this->cfg = config_get('tree_filter_cfg')->testcases->{$this->mode}; $this->cfg->exec_cfg = config_get('exec_cfg'); $this->cfg->tc_cfg = config_get('testcase_cfg'); $this->filter_mode_choice_enabled = isset($this->cfg->advanced_filter_mode_choice) && $this->cfg->advanced_filter_mode_choice == ENABLED; }