Add a basic "harbormaster.step.edit" API method
[phabricator/blender.git] / src / view / layout / PHUICurtainPanelView.php
blob238e56a374033e4a0240a4e37abe7ee5c9e7527a
1 <?php
3 final class PHUICurtainPanelView extends AphrontTagView {
5 private $order = 0;
6 private $headerText;
8 public function setHeaderText($header_text) {
9 $this->headerText = $header_text;
10 return $this;
13 public function getHeaderText() {
14 return $this->headerText;
17 public function setOrder($order) {
18 $this->order = $order;
19 return $this;
22 public function getOrder() {
23 return $this->order;
26 public function getOrderVector() {
27 return id(new PhutilSortVector())
28 ->addInt($this->getOrder());
31 protected function getTagAttributes() {
32 return array(
33 'class' => 'phui-curtain-panel',
37 protected function getTagContent() {
38 $header = null;
40 $header_text = $this->getHeaderText();
41 if (strlen($header_text)) {
42 $header = phutil_tag(
43 'div',
44 array(
45 'class' => 'phui-curtain-panel-header',
47 $header_text);
50 $body = phutil_tag(
51 'div',
52 array(
53 'class' => 'phui-curtain-panel-body',
55 $this->renderChildren());
57 return array(
58 $header,
59 $body,