[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class NuanceItemViewController extends NuanceController { 4 5 private $itemID; 6 7 public function setItemID($item_id) { 8 $this->itemID = $item_id; 9 return $this; 10 } 11 public function getItemID() { 12 return $this->itemID; 13 } 14 15 public function willProcessRequest(array $data) { 16 $this->setItemID($data['id']); 17 } 18 19 public function processRequest() { 20 $request = $this->getRequest(); 21 $user = $request->getUser(); 22 23 $item_id = $this->getItemID(); 24 $item = id(new NuanceItemQuery()) 25 ->setViewer($user) 26 ->withIDs(array($item_id)) 27 ->executeOne(); 28 29 if (!$item) { 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 }
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 |