Page MenuHomestyx hydra

HarbormasterPlanListController.php
No OneTemporary

HarbormasterPlanListController.php

<?php
final class HarbormasterPlanListController extends HarbormasterPlanController {
private $queryKey;
public function shouldAllowPublic() {
return true;
}
public function willProcessRequest(array $data) {
$this->queryKey = idx($data, 'queryKey');
}
public function processRequest() {
$request = $this->getRequest();
$controller = id(new PhabricatorApplicationSearchController($request))
->setQueryKey($this->queryKey)
->setSearchEngine(new HarbormasterBuildPlanSearchEngine())
->setNavigation($this->buildSideNavView());
return $this->delegateToController($controller);
}
public function buildSideNavView($for_app = false) {
$user = $this->getRequest()->getUser();
$nav = new AphrontSideNavFilterView();
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
if ($for_app) {
$nav->addFilter('new/', pht('New Build Plan'));
}
id(new HarbormasterBuildPlanSearchEngine())
->setViewer($user)
->addNavigationItems($nav->getMenu());
$nav->selectFilter(null);
return $nav;
}
public function buildApplicationMenu() {
return $this->buildSideNavView(true)->getMenu();
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Dec 3, 6:19 PM (3 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
433921
Default Alt Text
HarbormasterPlanListController.php (1 KB)

Event Timeline