Page MenuHomec4science

PonderController.php
No OneTemporary

File Metadata

Created
Fri, Nov 22, 11:23

PonderController.php

<?php
abstract class PonderController extends PhabricatorController {
protected function buildSideNavView() {
$user = $this->getRequest()->getUser();
$nav = new AphrontSideNavFilterView();
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
id(new PonderQuestionSearchEngine())
->setViewer($user)
->addNavigationItems($nav->getMenu());
$nav->selectFilter(null);
return $nav;
}
public function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs
->addAction(
id(new PHUIListItemView())
->setName(pht('Create Question'))
->setHref('/ponder/question/edit/')
->setIcon('fa-plus-square'));
return $crumbs;
}
}

Event Timeline