本文整理汇总了PHP中init_labels函数的典型用法代码示例。如果您正苦于以下问题:PHP init_labels函数的具体用法?PHP init_labels怎么用?PHP init_labels使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了init_labels函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initGuiBean
/**
*
*
*/
function initGuiBean(&$argsObj, $caller)
{
$obj = new stdClass();
$obj->action = $caller;
$obj->typeDomain = $this->mgr->getTypes();
$obj->canManage = $argsObj->currentUser->hasRight($this->db, 'reqmgrsystem_management');
$obj->user_feedback = array('type' => '', 'message' => '');
$obj->l18n = init_labels(array('reqmgrsystem_management' => null, 'btn_save' => null, 'create' => null, 'edit' => null, 'reqmgrsystem_deleted' => null));
// we experiment on way to get Action Description for GUI using __FUNCTION__
$obj->l18n['doUpdate'] = $obj->l18n['edit'];
$obj->l18n['doCreate'] = $obj->l18n['create'];
$obj->l18n['doDelete'] = '';
$obj->main_descr = $obj->l18n['reqmgrsystem_management'];
$obj->action_descr = ucfirst($obj->l18n[$caller]);
switch ($caller) {
case 'delete':
case 'doDelete':
$obj->submit_button_label = '';
break;
default:
$obj->submit_button_label = $obj->l18n['btn_save'];
break;
}
return $obj;
}
示例2: initialize_gui
/**
*
*
*/
function initialize_gui(&$dbHandler, $argsObj)
{
$tproject_mgr = new testproject($dbHandler);
$itemMgr = new requirement_spec_mgr($dbHandler);
$commandMgr = new reqSpecCommands($dbHandler);
$gui = $commandMgr->initGuiBean();
$gui->itemCfg = config_get('req_spec_cfg');
$gui->tproject_name = $argsObj->tproject_name;
$gui->grants = new stdClass();
$gui->grants->req_mgmt = $argsObj->hasRight($dbHandler, "mgt_modify_req", $argsObj->tproject_id);
$gui->tcasePrefix = $tproject_mgr->getTestCasePrefix($argsObj->tproject_id);
$gui->glueChar = config_get('testcase_cfg')->glue_character;
$gui->pieceSep = config_get('gui_title_separator_1');
$gui->item_id = $argsObj->item_id;
$info = $itemMgr->getRevisionByID($gui->item_id, array('decode_user' => true));
$gui->item = $info;
$gui->cfields = $itemMgr->html_table_of_custom_field_values(null, $gui->item_id, $argsObj->tproject_id);
$gui->show_title = false;
$gui->main_descr = lang_get('req_spec') . $gui->pieceSep . $gui->item['name'];
$gui->showContextInfo = $argsObj->showContextInfo;
if ($gui->showContextInfo) {
$gui->parent_descr = lang_get('req_spec_short') . $gui->pieceSep . $gui->item['name'];
}
$gui->itemSpecStatus = null;
$gui->itemTypeDomain = init_labels($gui->itemCfg->type_labels);
return $gui;
}
示例3: initialize_gui
/**
*
*
*/
function initialize_gui(&$dbHandler, &$argsObj)
{
$req_spec_mgr = new requirement_spec_mgr($dbHandler);
$tproject_mgr = new testproject($dbHandler);
$commandMgr = new reqSpecCommands($dbHandler);
$gui = $commandMgr->initGuiBean();
$gui->req_spec_cfg = config_get('req_spec_cfg');
$gui->req_cfg = config_get('req_cfg');
// 20100810 - asimon - BUGID 3317: disabled total count of requirements by default
$gui->external_req_management = $gui->req_cfg->external_req_management == ENABLED ? 1 : 0;
$gui->grants = new stdClass();
$gui->grants->req_mgmt = has_rights($db, "mgt_modify_req");
$gui->req_spec = $req_spec_mgr->get_by_id($argsObj->req_spec_id);
$gui->req_spec_id = $argsObj->req_spec_id;
$gui->tproject_name = $argsObj->tproject_name;
$gui->name = $gui->req_spec['title'];
$gui->main_descr = lang_get('req_spec_short') . config_get('gui_title_separator_1') . "[{$gui->req_spec['doc_id']}] :: " . $gui->req_spec['title'];
$gui->refresh_tree = 'no';
$gui->cfields = $req_spec_mgr->html_table_of_custom_field_values($argsObj->req_spec_id, $argsObj->tproject_id);
$gui->attachments = getAttachmentInfosFrom($req_spec_mgr, $argsObj->req_spec_id);
$gui->requirements_count = $req_spec_mgr->get_requirements_count($argsObj->req_spec_id);
$gui->reqSpecTypeDomain = init_labels($gui->req_spec_cfg->type_labels);
/* contribution BUGID 2999, show direct link */
$prefix = $tproject_mgr->getTestCasePrefix($argsObj->tproject_id);
$gui->direct_link = $_SESSION['basehref'] . 'linkto.php?tprojectPrefix=' . urlencode($prefix) . '&item=reqspec&id=' . urlencode($gui->req_spec['doc_id']);
return $gui;
}
示例4: initialize_gui
/**
*
*
*/
function initialize_gui(&$dbHandler, &$argsObj)
{
$req_spec_mgr = new requirement_spec_mgr($dbHandler);
$tproject_mgr = new testproject($dbHandler);
$commandMgr = new reqSpecCommands($dbHandler);
$gui = $commandMgr->initGuiBean();
$gui->refreshTree = $argsObj->refreshTree;
$gui->req_spec_cfg = config_get('req_spec_cfg');
$gui->req_cfg = config_get('req_cfg');
$gui->external_req_management = $gui->req_cfg->external_req_management == ENABLED ? 1 : 0;
$gui->grants = new stdClass();
$gui->grants->req_mgmt = $argsObj->user->hasRight($dbHandler, "mgt_modify_req", $argsObj->tproject_id);
$gui->req_spec = $req_spec_mgr->get_by_id($argsObj->req_spec_id);
$gui->revCount = $req_spec_mgr->getRevisionsCount($argsObj->req_spec_id);
$gui->req_spec_id = $argsObj->req_spec_id;
$gui->parentID = $argsObj->req_spec_id;
$gui->req_spec_revision_id = $gui->req_spec['revision_id'];
$gui->name = $gui->req_spec['title'];
$gui->tproject_id = $argsObj->tproject_id;
$gui->tproject_name = $argsObj->tproject_name;
$gui->main_descr = lang_get('req_spec_short') . config_get('gui_title_separator_1') . "[{$gui->req_spec['doc_id']}] :: " . $gui->req_spec['title'];
$gui->refresh_tree = 'no';
$gui->cfields = $req_spec_mgr->html_table_of_custom_field_values($argsObj->req_spec_id, $gui->req_spec_revision_id, $argsObj->tproject_id);
$gui->attachments = $req_spec_mgr->getAttachmentInfos($argsObj->req_spec_id);
$gui->requirements_count = $req_spec_mgr->get_requirements_count($argsObj->req_spec_id);
$gui->reqSpecTypeDomain = init_labels($gui->req_spec_cfg->type_labels);
$prefix = $tproject_mgr->getTestCasePrefix($argsObj->tproject_id);
$gui->direct_link = $_SESSION['basehref'] . 'linkto.php?tprojectPrefix=' . urlencode($prefix) . '&item=reqspec&id=' . urlencode($gui->req_spec['doc_id']);
$gui->actions = initializeActions($gui);
return $gui;
}
示例5: __construct
function __construct(&$db, &$userObj, $id = null)
{
$this->db = $db;
$this->tprojectMgr = new testproject($db);
$this->grants = new stdClass();
$this->l18n = init_labels(array('btn_create' => null, 'caption_new_tproject' => null));
if (is_null($id)) {
$this->id = intval($id);
}
}
示例6: __construct
function __construct(&$db)
{
$this->db = $db;
$this->reqSpecMgr = new requirement_spec_mgr($db);
$this->reqMgr = new requirement_mgr($db);
$req_spec_cfg = config_get('req_spec_cfg');
$this->reqSpecTypeDomain = init_labels($req_spec_cfg->type_labels);
$this->submit_button_label = lang_get('btn_save');
$this->getRequirementsOptions = array('order_by' => " ORDER BY NH_REQ.node_order ");
}
示例7: init_global_rights_maps
/**
* init global map with user rights and user rights description localized.
*/
function init_global_rights_maps()
{
// Every array, defines a section in the define role page => HAS EFFECTS ONLY ON LAYOUT
global $g_rights_tp;
global $g_rights_mgttc;
global $g_rights_kw;
global $g_rights_req;
global $g_rights_product;
global $g_rights_cf;
global $g_rights_users_global;
global $g_rights_users;
global $g_rights_system;
global $g_rights_platforms;
global $g_rights_issuetrackers;
global $g_rights_executions;
// global $g_rights_reqmgrsystems;
global $g_propRights_global;
global $g_propRights_product;
// @since 1.9.7
$l18nCfg = array('desc_testplan_execute' => null, 'desc_testplan_create_build' => null, 'desc_testplan_metrics' => null, 'desc_testplan_planning' => null, 'desc_user_role_assignment' => null, 'desc_mgt_view_tc' => null, 'desc_mgt_modify_tc' => null, 'mgt_testplan_create' => null, 'desc_mgt_view_key' => null, 'desc_mgt_modify_key' => null, 'desc_keyword_assignment' => null, 'desc_mgt_view_req' => null, 'desc_mgt_modify_req' => null, 'desc_req_tcase_link_management' => null, 'desc_mgt_modify_product' => null, 'desc_project_inventory_management' => null, 'desc_project_inventory_view' => null, 'desc_cfield_view' => null, 'desc_cfield_management' => null, 'desc_platforms_view' => null, 'desc_platforms_management' => null, 'desc_issuetrackers_view' => null, 'desc_issuetrackers_management' => null, 'desc_mgt_modify_users' => null, 'desc_role_management' => null, 'desc_user_role_assignment' => null, 'desc_mgt_view_events' => null, 'desc_events_mgt' => null, 'desc_mgt_unfreeze_req' => null, 'right_exec_edit_notes' => null, 'right_exec_delete' => null, 'right_testplan_unlink_executed_testcases' => null, 'right_testproject_delete_executed_testcases' => null, 'right_testproject_edit_executed_testcases' => null, 'right_testplan_milestone_overview' => null, 'right_exec_testcases_assigned_to_me' => null, 'right_testproject_metrics_dashboard' => null, 'right_testplan_add_remove_platforms' => null, 'right_testplan_update_linked_testcase_versions' => null, 'right_testplan_set_urgent_testcases' => null, 'right_testplan_show_testcases_newest_versions' => null);
$l18n = init_labels($l18nCfg);
$g_rights_executions = array('exec_edit_notes' => $l18n['right_exec_edit_notes'], 'exec_delete' => $l18n['right_exec_delete']);
// order is important ?
$g_rights_tp = array("mgt_testplan_create" => $l18n['mgt_testplan_create'], "testplan_create_build" => $l18n['desc_testplan_create_build'], "testplan_planning" => $l18n['desc_testplan_planning'], "testplan_execute" => $l18n['desc_testplan_execute'], "testplan_metrics" => $l18n['desc_testplan_metrics'], "testplan_user_role_assignment" => $l18n['desc_user_role_assignment'], "testplan_unlink_executed_testcases" => $l18n['right_testplan_unlink_executed_testcases'], "testplan_milestone_overview" => $l18n['right_testplan_milestone_overview'], "exec_testcases_assigned_to_me" => $l18n['right_exec_testcases_assigned_to_me'], 'testplan_add_remove_platforms' => $l18n['right_testplan_add_remove_platforms'], 'testplan_update_linked_testcase_versions' => $l18n['right_testplan_update_linked_testcase_versions'], 'testplan_set_urgent_testcases' => $l18n['right_testplan_set_urgent_testcases'], 'testplan_show_testcases_newest_versions' => $l18n['right_testplan_show_testcases_newest_versions']);
$g_rights_mgttc = array("mgt_view_tc" => $l18n['desc_mgt_view_tc'], "mgt_modify_tc" => $l18n['desc_mgt_modify_tc'], "testproject_delete_executed_testcases" => $l18n['right_testproject_delete_executed_testcases'], "testproject_edit_executed_testcases" => $l18n['right_testproject_edit_executed_testcases']);
$g_rights_kw = array("mgt_view_key" => $l18n['desc_mgt_view_key'], "mgt_modify_key" => $l18n['desc_mgt_modify_key']);
$g_rights_req = array("mgt_view_req" => $l18n['desc_mgt_view_req'], "mgt_modify_req" => $l18n['desc_mgt_modify_req'], "mgt_unfreeze_req" => $l18n['desc_mgt_unfreeze_req']);
$g_rights_product = array("mgt_modify_product" => $l18n['desc_mgt_modify_product'], "project_inventory_management" => $l18n['desc_project_inventory_management'], "project_inventory_view" => $l18n['desc_project_inventory_view']);
$g_rights_cf = array("cfield_view" => $l18n['desc_cfield_view'], "cfield_management" => $l18n['desc_cfield_management']);
$g_rights_platforms = array("platform_view" => $l18n['desc_platforms_view'], "platform_management" => $l18n['desc_platforms_management']);
$g_rights_issuetrackers = array("issuetracker_view" => $l18n['desc_issuetrackers_view'], "issuetracker_management" => $l18n['desc_issuetrackers_management']);
// $g_rights_reqmgrsystems = array("reqmgrsystem_view" => $l18n['desc_reqmgrsystems_view'],
// "reqmgrsystem_management" => $l18n['desc_reqmgrsystems_management']);
// Global means test project independent.
//
// $g_rights_users_global = array("mgt_users" => $l18n['desc_mgt_modify_users'],
// "role_management" => $l18n['desc_role_management'],
// "user_role_assignment" => $l18n['desc_user_role_assignment']);
$g_rights_users_global = array("mgt_users" => $l18n['desc_mgt_modify_users'], "role_management" => $l18n['desc_role_management']);
$g_rights_users = $g_rights_users_global;
$g_rights_system = array("mgt_view_events" => $l18n['desc_mgt_view_events'], "events_mgt" => $l18n['desc_events_mgt']);
$g_propRights_global = array_merge($g_rights_users_global, $g_rights_system, $g_rights_product);
unset($g_propRights_global["testproject_user_role_assignment"]);
$g_propRights_product = array_merge($g_propRights_global, $g_rights_mgttc, $g_rights_kw, $g_rights_req);
}
示例8: initializeGUI
function initializeGUI(&$dbHandler, $argsObj)
{
$gui = new stdClass();
$gui->tc_id = $argsObj->tcase_id;
$gui->compare_selected_versions = $argsObj->compare_selected_versions;
$gui->context = $argsObj->context;
$tcaseMgr = new testcase($dbHandler);
$gui->tc_versions = $tcaseMgr->get_by_id($argsObj->tcase_id);
$gui->tcaseName = $gui->tc_versions[0]['name'];
unset($tcaseMgr);
$lblkeys = array('num_changes' => null, 'no_changes' => null, 'version_short' => null, 'diff_subtitle_tc' => null);
$gui->labels = init_labels($lblkeys);
$gui->version_short = $gui->labels['version_short'];
$gui->subtitle = sprintf($gui->labels['diff_subtitle_tc'], $argsObj->version_left, $argsObj->version_left, $argsObj->version_right, $argsObj->version_right, $gui->tcaseName);
$gui->leftID = "v{$argsObj->version_left}";
$gui->rightID = "v{$argsObj->version_right}";
return $gui;
}
示例9: __construct
function __construct(&$db)
{
$this->db = $db;
$this->reqSpecMgr = new requirement_spec_mgr($db);
$this->reqMgr = new requirement_mgr($db);
$reqCfg = config_get('req_cfg');
$this->reqStatusDomain = init_labels($reqCfg->status_labels);
$this->reqTypeDomain = init_labels($reqCfg->type_labels);
$this->reqRelationTypeDescr = init_labels($reqCfg->rel_type_description);
$type_ec = $reqCfg->type_expected_coverage;
$this->attrCfg = array();
$this->attrCfg['expected_coverage'] = array();
foreach ($this->reqTypeDomain as $type_code => $dummy) {
// Because it has to be used on Smarty Template, I choose to transform
// TRUE -> 1, FALSE -> 0, because I've had problems using true/false
$value = isset($type_ec[$type_code]) ? $type_ec[$type_code] ? 1 : 0 : 1;
$this->attrCfg['expected_coverage'][$type_code] = $value;
}
}
示例10: __construct
function __construct(&$db, $tproject_id)
{
$this->db = $db;
$this->reqSpecMgr = new requirement_spec_mgr($db);
$this->reqMgr = new requirement_mgr($db);
$this->treeMgr = $this->reqMgr->tree_mgr;
$req_spec_cfg = config_get('req_spec_cfg');
$this->reqSpecTypeDomain = init_labels($req_spec_cfg->type_labels);
$this->commandMgr = new reqCommands($db);
$this->submit_button_label = lang_get('btn_save');
$this->getRequirementsOptions = array('order_by' => " ORDER BY NH_REQ.node_order ");
$tproject_mgr = new testproject($this->db);
$info = $tproject_mgr->get_by_id($tproject_id);
if ($info['reqmgr_integration_enabled']) {
$sysmgr = new tlReqMgrSystem($this->db);
$rms = $sysmgr->getInterfaceObject($tproject_id);
$this->reqMgrSystem = $sysmgr->getLinkedTo($tproject_id);
unset($sysmgr);
}
}
示例11: initialize_gui
/**
*
*
*/
function initialize_gui(&$dbHandler, &$argsObj)
{
$req_spec_mgr = new requirement_spec_mgr($dbHandler);
$tproject_mgr = new testproject($dbHandler);
$commandMgr = new reqSpecCommands($dbHandler, $argsObj->tproject_id);
$gui = $commandMgr->initGuiBean();
$gui->refreshTree = $argsObj->refreshTree;
$gui->req_spec_cfg = config_get('req_spec_cfg');
$gui->req_cfg = config_get('req_cfg');
$gui->external_req_management = $gui->req_cfg->external_req_management == ENABLED ? 1 : 0;
$gui->grants = new stdClass();
$gui->grants->req_mgmt = has_rights($db, "mgt_modify_req");
$gui->req_spec = $req_spec_mgr->get_by_id($argsObj->req_spec_id);
$gui->revCount = $req_spec_mgr->getRevisionsCount($argsObj->req_spec_id);
$gui->req_spec_id = intval($argsObj->req_spec_id);
$gui->parentID = $argsObj->req_spec_id;
$gui->req_spec_revision_id = $gui->req_spec['revision_id'];
$gui->name = $gui->req_spec['title'];
$gui->tproject_name = $argsObj->tproject_name;
$gui->main_descr = lang_get('req_spec_short') . config_get('gui_title_separator_1') . "[{$gui->req_spec['doc_id']}] :: " . $gui->req_spec['title'];
$gui->refresh_tree = 'no';
$gui->cfields = $req_spec_mgr->html_table_of_custom_field_values($gui->req_spec_id, $gui->req_spec_revision_id, $argsObj->tproject_id);
$gui->attachments = getAttachmentInfosFrom($req_spec_mgr, $argsObj->req_spec_id);
$gui->requirements_count = $req_spec_mgr->get_requirements_count($argsObj->req_spec_id);
$gui->reqSpecTypeDomain = init_labels($gui->req_spec_cfg->type_labels);
$prefix = $tproject_mgr->getTestCasePrefix($argsObj->tproject_id);
$gui->direct_link = $_SESSION['basehref'] . 'linkto.php?tprojectPrefix=' . urlencode($prefix) . '&item=reqspec&id=' . urlencode($gui->req_spec['doc_id']);
$gui->fileUploadURL = $_SESSION['basehref'] . $req_spec_mgr->getFileUploadRelativeURL($gui->req_spec_id);
$gui->delAttachmentURL = $_SESSION['basehref'] . $req_spec_mgr->getDeleteAttachmentRelativeURL($gui->req_spec_id);
$gui->fileUploadMsg = '';
$gui->import_limit = TL_REPOSITORY_MAXFILESIZE;
$gui->btn_import_req_spec = '';
$gui->reqMgrSystemEnabled = 0;
if (!is_null($reqMgrSystem = $commandMgr->getReqMgrSystem())) {
$gui->btn_import_req_spec = sprintf(lang_get('importViaAPI'), $reqMgrSystem['reqmgrsystem_name']);
$gui->reqMgrSystemEnabled = 1;
}
return $gui;
}
示例12: generateIssueText
$dummy = generateIssueText($db, $args, $its);
$gui->bug_summary = $dummy->summary;
break;
case 'doCreate':
$gui->bug_summary = $args->bug_summary;
$ret = addIssue($db, $args, $its);
$gui->issueTrackerCfg->tlCanCreateIssue = $ret['status_ok'];
$gui->msg = $ret['msg'];
break;
}
} else {
if ($args->user_action == 'link' || $args->user_action == 'add_note') {
// Well do not think is very elegant to check for $args->bug_id != ""
// to understand if user has pressed ADD Button
if (!is_null($issueT) && $args->bug_id != "") {
$l18n = init_labels(array("error_wrong_BugID_format" => null, "error_bug_does_not_exist_on_bts" => null));
switch ($args->user_action) {
case 'link':
$gui->msg = $l18n["error_wrong_BugID_format"];
if ($its->checkBugIDSyntax($args->bug_id)) {
if ($its->checkBugIDExistence($args->bug_id)) {
if (write_execution_bug($db, $args->exec_id, $args->bug_id)) {
$gui->msg = lang_get("bug_added");
logAuditEvent(TLS("audit_executionbug_added", $args->bug_id), "CREATE", $args->exec_id, "executions");
// blank notes will not be added :).
if ($gui->issueTrackerCfg->tlCanAddIssueNote && strlen($gui->bug_notes) > 0) {
// will do call to update issue Notes
$its->addNote($args->bug_id, $gui->bug_notes);
}
}
} else {
示例13: connect
/**
* establishes connection to the bugtracking system
*
* @return bool returns true if the soap connection was established and the
* wsdl could be downloaded, false else
*
**/
function connect()
{
$this->interfaceViaDB = false;
$op = $this->getClient(array('log' => true));
if ($this->connected = $op['connected']) {
// OK, we have got WSDL => server is up and we can do SOAP calls, but now we need
// to do a simple call with user/password only to understand if we are really connected
try {
$this->APIClient = $op['client'];
$this->authToken = $this->APIClient->login($this->cfg->username, $this->cfg->password);
$statusSet = $op['client']->getStatuses($this->authToken);
foreach ($statusSet as $key => $pair) {
$this->statusDomain[$pair->name] = $pair->id;
}
$this->l18n = init_labels($this->labels);
} catch (SoapFault $f) {
$this->connected = false;
tLog(__CLASS_ . " - SOAP Fault: (code: {$f->faultcode}, string: {$f->faultstring})", "ERROR");
}
}
return $this->connected;
}
示例14: testlinkInitPage
*
*/
require_once "../../config.inc.php";
require_once "common.php";
testlinkInitPage($db);
$templateCfg = templateConfiguration();
$tplan_mgr = new testplan($db);
$args = init_args($tplan_mgr);
checkRights($db, $_SESSION['currentUser'], $args);
$gui = new stdClass();
$gui->pageTitle = lang_get('caption_testCasesWithoutTester');
$gui->warning_msg = '';
$gui->tproject_id = $args->tproject_id;
$gui->tproject_name = $args->tproject_name;
$gui->tplan_name = $args->tplan_name;
$labels = init_labels(array('design' => null, 'execution' => null, 'execution_history' => null));
$edit_img = TL_THEME_IMG_DIR . "edit_icon.png";
$history_img = TL_THEME_IMG_DIR . "history_small.png";
$msg_key = 'no_linked_tcversions';
if ($tplan_mgr->count_testcases($args->tplan_id) > 0) {
$msg_key = 'all_testcases_have_tester';
// BUGID 3723 - filter test cases by exec_status => not run
$cfg = config_get('results');
$filters = array('assigned_to' => TL_USER_NOBODY, 'exec_status' => $cfg['status_code']['not_run']);
$options = array('output' => 'array', 'details' => 'summary');
$testCaseSet = $tplan_mgr->get_linked_tcversions($args->tplan_id, $filters, $options);
if (($gui->row_qty = count($testCaseSet)) > 0) {
$msg_key = '';
$gui->pageTitle .= " - " . lang_get('match_count') . ":" . $gui->row_qty;
$tproject_mgr = new testproject($db);
$prefix = $tproject_mgr->getTestCasePrefix($args->tproject_id);
示例15: init_filter_spec_type
private function init_filter_spec_type()
{
$key = 'filter_spec_type';
$selection = $this->args->{$key};
// get configured types and add "any" string to menu
$items = array(self::ANY => $this->option_strings['any']) + (array) init_labels($this->configuration->req_spec_cfg->type_labels);
if (!$selection || $this->args->reset_filters || is_array($selection) && in_array(self::ANY, $selection)) {
$selection = null;
} else {
$this->do_filtering = true;
}
$this->filters[$key] = array('selected' => $selection, 'items' => $items);
$this->active_filters[$key] = $selection;
}