index.php 864 B

12345678910111213141516171819202122232425
  1. <?php
  2. helper::importControl('index');
  3. class myindex extends index
  4. {
  5. /**
  6. * The index page of whole zentao system.
  7. *
  8. * @param string $open
  9. * @access public
  10. * @return void
  11. */
  12. public function index($open = '')
  13. {
  14. /* 把工作流自定义的流程动作页面加入 oldPages 配置中。*/
  15. $actions = $this->dao->select('module, action')->from(TABLE_WORKFLOWACTION)
  16. ->where('status')->eq('enable')
  17. ->andWhere('action')->in('link,report')
  18. ->andWhere('role')->ne('buildin')
  19. ->beginIF(!empty($this->config->vision))->andWhere('vision')->eq($this->config->vision)->fi()
  20. ->fetchAll();
  21. foreach($actions as $action) $this->config->index->oldPages[] = $action->module . '-' . strtolower($action->action);
  22. return parent::index($open);
  23. }
  24. }