[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhluxListController extends PhluxController { 4 5 public function processRequest() { 6 $request = $this->getRequest(); 7 $user = $request->getUser(); 8 9 $pager = new AphrontCursorPagerView(); 10 $pager->readFromRequest($request); 11 $query = id(new PhluxVariableQuery()) 12 ->setViewer($user); 13 14 $vars = $query->executeWithCursorPager($pager); 15 16 $view = new PHUIObjectItemListView(); 17 foreach ($vars as $var) { 18 $key = $var->getVariableKey(); 19 20 $item = new PHUIObjectItemView(); 21 $item->setHeader($key); 22 $item->setHref($this->getApplicationURI('/view/'.$key.'/')); 23 $item->addIcon( 24 'none', 25 phabricator_datetime($var->getDateModified(), $user)); 26 27 $view->addItem($item); 28 } 29 30 $crumbs = $this->buildApplicationCrumbs(); 31 32 $title = pht('Variable List'); 33 34 $crumbs->addTextCrumb($title, $this->getApplicationURI()); 35 36 return $this->buildApplicationPage( 37 array( 38 $crumbs, 39 $view, 40 $pager, 41 ), 42 array( 43 'title' => $title, 44 )); 45 } 46 47 }
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 |