[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 abstract class PhabricatorFeedController extends PhabricatorController { 4 5 public function buildStandardPageResponse($view, array $data) { 6 $page = $this->buildStandardPageView(); 7 8 $page->setApplicationName(pht('Feed')); 9 $page->setBaseURI('/feed/'); 10 $page->setTitle(idx($data, 'title')); 11 $page->setGlyph("\xE2\x88\x9E"); 12 $page->appendChild($view); 13 14 $response = new AphrontWebpageResponse(); 15 16 if (!empty($data['public'])) { 17 $page->setFrameable(true); 18 $page->setShowChrome(false); 19 $response->setFrameable(true); 20 } 21 22 return $response->setContent($page->render()); 23 } 24 25 protected function buildSideNavView() { 26 $user = $this->getRequest()->getUser(); 27 28 $nav = new AphrontSideNavFilterView(); 29 $nav->setBaseURI(new PhutilURI($this->getApplicationURI())); 30 31 id(new PhabricatorFeedSearchEngine()) 32 ->setViewer($user) 33 ->addNavigationItems($nav->getMenu()); 34 35 $nav->selectFilter(null); 36 37 return $nav; 38 } 39 40 protected function buildApplicationMenu() { 41 return $this->buildSideNavView()->getMenu(); 42 } 43 44 }
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 |