[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorProjectListController 4 extends PhabricatorProjectController { 5 6 private $queryKey; 7 8 public function shouldAllowPublic() { 9 return true; 10 } 11 12 public function willProcessRequest(array $data) { 13 $this->queryKey = idx($data, 'queryKey'); 14 } 15 16 public function processRequest() { 17 $controller = id(new PhabricatorApplicationSearchController()) 18 ->setQueryKey($this->queryKey) 19 ->setSearchEngine(new PhabricatorProjectSearchEngine()) 20 ->setNavigation($this->buildSideNavView()); 21 22 return $this->delegateToController($controller); 23 } 24 25 public function buildApplicationCrumbs() { 26 $crumbs = parent::buildApplicationCrumbs(); 27 28 $can_create = $this->hasApplicationCapability( 29 ProjectCreateProjectsCapability::CAPABILITY); 30 31 $crumbs->addAction( 32 id(new PHUIListItemView()) 33 ->setName(pht('Create Project')) 34 ->setHref($this->getApplicationURI('create/')) 35 ->setIcon('fa-plus-square') 36 ->setWorkflow(!$can_create) 37 ->setDisabled(!$can_create)); 38 39 return $crumbs; 40 } 41 42 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |