[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

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

   1  <?php
   2  
   3  final class PhabricatorPeopleListController
   4    extends PhabricatorPeopleController {
   5  
   6    private $key;
   7  
   8    public function shouldAllowPublic() {
   9      return true;
  10    }
  11  
  12    public function shouldRequireAdmin() {
  13      return false;
  14    }
  15  
  16    public function willProcessRequest(array $data) {
  17      $this->key = idx($data, 'key');
  18    }
  19  
  20    public function processRequest() {
  21      $this->requireApplicationCapability(
  22        PeopleBrowseUserDirectoryCapability::CAPABILITY);
  23  
  24      $controller = id(new PhabricatorApplicationSearchController())
  25        ->setQueryKey($this->key)
  26        ->setSearchEngine(new PhabricatorPeopleSearchEngine())
  27        ->setNavigation($this->buildSideNavView());
  28  
  29      return $this->delegateToController($controller);
  30    }
  31  
  32  }


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