[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/oauthserver/controller/client/ -> PhabricatorOAuthClientController.php (source)

   1  <?php
   2  
   3  abstract class PhabricatorOAuthClientController
   4    extends PhabricatorOAuthServerController {
   5  
   6    private $clientPHID;
   7  
   8    protected function getClientPHID() {
   9      return $this->clientPHID;
  10    }
  11  
  12    private function setClientPHID($phid) {
  13      $this->clientPHID = $phid;
  14      return $this;
  15    }
  16  
  17    public function shouldRequireLogin() {
  18      return true;
  19    }
  20  
  21    public function willProcessRequest(array $data) {
  22      $this->setClientPHID(idx($data, 'phid'));
  23    }
  24  
  25    public function buildSideNavView($for_app = false) {
  26      $user = $this->getRequest()->getUser();
  27  
  28      $nav = new AphrontSideNavFilterView();
  29      $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
  30  
  31      id(new PhabricatorOAuthServerClientSearchEngine())
  32        ->setViewer($user)
  33        ->addNavigationItems($nav->getMenu());
  34  
  35      $nav->selectFilter(null);
  36  
  37      return $nav;
  38    }
  39  
  40  }


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