2012-03-28 01:22:40 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
abstract class PhabricatorFlagController extends PhabricatorController {
|
|
|
|
|
2013-08-14 01:27:26 +02:00
|
|
|
public function buildSideNavView() {
|
|
|
|
$user = $this->getRequest()->getUser();
|
2012-03-28 01:22:40 +02:00
|
|
|
|
2013-08-14 01:27:26 +02:00
|
|
|
$nav = new AphrontSideNavFilterView();
|
|
|
|
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
|
2012-03-28 01:22:40 +02:00
|
|
|
|
2013-08-14 01:27:26 +02:00
|
|
|
id(new PhabricatorFlagSearchEngine())
|
|
|
|
->setViewer($user)
|
|
|
|
->addNavigationItems($nav->getMenu());
|
2012-03-28 01:22:40 +02:00
|
|
|
|
2013-08-14 01:27:26 +02:00
|
|
|
$nav->selectFilter(null);
|
2012-03-28 01:22:40 +02:00
|
|
|
|
2013-08-14 01:27:26 +02:00
|
|
|
return $nav;
|
2012-03-28 01:22:40 +02:00
|
|
|
}
|
2013-08-14 01:27:26 +02:00
|
|
|
|
2012-03-28 01:22:40 +02:00
|
|
|
}
|