本文整理匯總了PHP中testcase::getWorkFlowStatusDomain方法的典型用法代碼示例。如果您正苦於以下問題:PHP testcase::getWorkFlowStatusDomain方法的具體用法?PHP testcase::getWorkFlowStatusDomain怎麽用?PHP testcase::getWorkFlowStatusDomain使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類testcase
的用法示例。
在下文中一共展示了testcase::getWorkFlowStatusDomain方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: init_filter_workflow_status
/**
*
*
* @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;
}