/** * * * @internal revisions * @since 1.9.14 * allow multiple selection (if advanced mode) */ private function init_filter_workflow_status() { $key = 'filter_workflow_status'; if (!$this->tc_mgr) { $this->tc_mgr = new testcase($this->db); } // handle filter reset $selection = $this->args->{$key}; if (!$selection || $this->args->reset_filters) { $selection = null; } else { $this->do_filtering = true; } $this->filters[$key] = array('items' => array(), 'selected' => $selection); // load domain // add "any" string to these types at index 0 as default selection $this->filters[$key]['items'] = array(0 => $this->option_strings['any']) + $this->tc_mgr->getWorkFlowStatusDomain(); $this->filters[$key]['size'] = min(count($this->filters[$key]['items']), self::ADVANCED_FILTER_ITEM_QUANTITY); $this->active_filters[$key] = $selection; }