3 abstract class DrydockResourceController
4 extends DrydockController
{
8 public function setBlueprint($blueprint) {
9 $this->blueprint
= $blueprint;
13 public function getBlueprint() {
14 return $this->blueprint
;
17 public function buildSideNavView() {
18 $nav = new AphrontSideNavFilterView();
19 $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
21 $engine = id(new DrydockResourceSearchEngine())
22 ->setViewer($this->getViewer());
24 if ($this->getBlueprint()) {
25 $engine->setBlueprint($this->getBlueprint());
28 $engine->addNavigationItems($nav->getMenu());
30 $nav->selectFilter(null);
35 protected function buildApplicationCrumbs() {
36 $crumbs = parent
::buildApplicationCrumbs();
38 $blueprint = $this->getBlueprint();
40 $id = $blueprint->getID();
41 $crumbs->addTextCrumb(
43 $this->getApplicationURI('blueprint/'));
45 $crumbs->addTextCrumb(
46 $blueprint->getBlueprintName(),
47 $this->getApplicationURI("blueprint/{$id}/"));
49 $crumbs->addTextCrumb(
51 $this->getApplicationURI("blueprint/{$id}/resources/"));
53 $crumbs->addTextCrumb(
55 $this->getApplicationURI('resource/'));