Path: blob/master/src/applications/diviner/view/DivinerSectionView.php
12256 views
<?php12final class DivinerSectionView extends AphrontTagView {34private $header;5private $content;67public function addContent($content) {8$this->content[] = $content;9return $this;10}1112public function setHeader($text) {13$this->header = $text;14return $this;15}1617protected function getTagName() {18return 'div';19}2021protected function getTagAttributes() {22return array(23'class' => 'diviner-document-section',24);25}2627protected function getTagContent() {28require_celerity_resource('diviner-shared-css');2930$header = id(new PHUIHeaderView())31->setBleedHeader(true)32->addClass('diviner-section-header')33->setHeader($this->header);3435$content = phutil_tag_div('diviner-section-content', $this->content);3637return array($header, $content);38}3940}414243