Changeset View
Changeset View
Standalone View
Standalone View
src/view/layout/PHUICurtainView.php
Show All 13 Lines | public function addPanel(PHUICurtainPanelView $curtain_panel) { | ||||
$this->panels[] = $curtain_panel; | $this->panels[] = $curtain_panel; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newPanel() { | public function newPanel() { | ||||
$panel = new PHUICurtainPanelView(); | $panel = new PHUICurtainPanelView(); | ||||
$this->addPanel($panel); | $this->addPanel($panel); | ||||
// By default, application panels go at the bottom of the curtain, below | // By default, application panels go at the top of the curtain, above | ||||
// extension panels. | // extension panels. | ||||
$panel->setOrder(100000); | $panel->setOrder(1000); | ||||
return $panel; | return $panel; | ||||
} | } | ||||
public function setActionList(PhabricatorActionListView $action_list) { | public function setActionList(PhabricatorActionListView $action_list) { | ||||
$this->actionList = $action_list; | $this->actionList = $action_list; | ||||
return $this; | return $this; | ||||
} | } | ||||
Show All 38 Lines |