[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/nuance/controller/ -> NuanceQueueViewController.php (source)

   1  <?php
   2  
   3  final class NuanceQueueViewController extends NuanceController {
   4  
   5    private $queueID;
   6  
   7    public function setQueueID($queue_id) {
   8      $this->queueID = $queue_id;
   9      return $this;
  10    }
  11    public function getQueueID() {
  12      return $this->queueID;
  13    }
  14  
  15    public function willProcessRequest(array $data) {
  16      $this->setQueueID($data['id']);
  17    }
  18  
  19    public function processRequest() {
  20      $request = $this->getRequest();
  21      $user = $request->getUser();
  22  
  23      $queue_id = $this->getQueueID();
  24      $queue = id(new NuanceQueueQuery())
  25        ->setViewer($user)
  26        ->withIDs(array($queue_id))
  27        ->executeOne();
  28  
  29      if (!$queue) {
  30        return new Aphront404Response();
  31      }
  32  
  33      $crumbs = $this->buildApplicationCrumbs();
  34      $title = 'TODO';
  35  
  36      return $this->buildApplicationPage(
  37        $crumbs,
  38        array(
  39          'title' => $title,
  40        ));
  41    }
  42  }


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