session->set('bugList', $uri, 'qa'); $this->session->set('buildList', $uri, 'execution'); $this->session->set('caseList', $uri, 'qa'); $this->session->set('docList', $uri, 'doc'); $this->session->set('productList', $uri, 'product'); $this->session->set('productPlanList', $uri, 'product'); $this->session->set('programList', $uri, 'program'); $this->session->set('projectList', $uri, 'project'); $this->session->set('executionList', $uri, 'execution'); $this->session->set('releaseList', $uri, 'product'); $this->session->set('storyList', $uri, 'product'); $this->session->set('taskList', $uri, 'execution'); $this->session->set('testtaskList', $uri, 'qa'); $this->session->set('todoList', $uri, 'my'); $this->session->set('effortList', $uri, 'my'); $this->session->set('reportList', $uri, 'qa'); $this->session->set('testsuiteList', $uri, 'qa'); $this->session->set('issueList', $uri, 'project'); $this->session->set('riskList', $uri, 'project'); $this->session->set('opportunityList', $uri, 'project'); $this->session->set('trainplanList', $uri, 'project'); $this->session->set('caselibList', $uri, 'qa'); $this->session->set('searchIngWord', $words); $this->session->set('searchIngType', $type); if(strpos($this->server->http_referer, 'search') === false) $this->session->set('referer', $this->server->http_referer); } /** * 获取所有类型列表。 * Get type list. * * @access protected * @return array */ protected function getTypeList(): array { $typeCount = $this->search->getListCount(); $typeList = array('all' => $this->lang->search->modules['all']); foreach($typeCount as $objectType => $count) { if(!isset($this->lang->search->modules[$objectType])) continue; if($this->config->systemMode == 'light' && $objectType == 'program') continue; if(!helper::hasFeature('devops') && in_array($objectType, array('deploy', 'service', 'deploystep'))) continue; $typeList[$objectType] = $this->lang->search->modules[$objectType]; } return $typeList; } }