[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/people/controller/ -> PhabricatorPeopleLogsController.php (source)

   1  <?php
   2  
   3  final class PhabricatorPeopleLogsController
   4    extends PhabricatorPeopleController {
   5  
   6    private $queryKey;
   7  
   8    public function willProcessRequest(array $data) {
   9      $this->queryKey = idx($data, 'queryKey');
  10    }
  11  
  12    public function processRequest() {
  13      $controller = id(new PhabricatorApplicationSearchController())
  14        ->setQueryKey($this->queryKey)
  15        ->setSearchEngine(new PhabricatorPeopleLogSearchEngine())
  16        ->setNavigation($this->buildSideNavView());
  17  
  18      return $this->delegateToController($controller);
  19    }
  20  
  21    public function buildSideNavView() {
  22      $nav = new AphrontSideNavFilterView();
  23      $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
  24  
  25      $viewer = $this->getRequest()->getUser();
  26  
  27      id(new PhabricatorPeopleLogSearchEngine())
  28        ->setViewer($viewer)
  29        ->addNavigationItems($nav->getMenu());
  30  
  31      return $nav;
  32    }
  33  
  34  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1