| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- /**
- * The zen file of compile module of ZenTaoPMS.
- *
- * @copyright Copyright 2009-2024 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
- * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
- * @author Yanyi Cao <caoyanyi@chandao.com>
- * @package compile
- * @link https://www.zentao.net
- */
- class compileZen extends compile
- {
- /**
- * 构造搜索表单数据。
- * Build search form data.
- *
- * @param int $repoID
- * @param int $jobID
- * @param int $queryID
- * @access protected
- * @return void
- */
- protected function buildSearchForm($repoID = 0, $jobID = 0, $queryID = 0)
- {
- $actionURL = $this->createLink('compile', 'browse', "repoID={$repoID}&jobID={$jobID}&browseType=bySearch¶m=myQueryID");
- if($repoID || $jobID)
- {
- unset($this->config->compile->search['fields']['repo']);
- unset($this->config->compile->search['params']['repo']);
- }
- else
- {
- $this->config->compile->search['params']['repo']['values'] = $this->loadModel('repo')->getRepoPairs('', 0, false);
- }
- $this->config->compile->search['actionURL'] = $actionURL;
- $this->config->compile->search['queryID'] = $queryID;
- $this->loadModel('search')->setSearchParams($this->config->compile->search);
- }
- }
|