Page MenuHomePhorge

DivinerSectionView.php
No OneTemporary

Size
822 B
Referenced Files
None
Subscribers
None

DivinerSectionView.php

<?php
final class DivinerSectionView extends AphrontTagView {
private $header;
private $content;
public function addContent($content) {
$this->content[] = $content;
return $this;
}
public function setHeader($text) {
$this->header = $text;
return $this;
}
protected function getTagName() {
return 'div';
}
protected function getTagAttributes() {
return array(
'class' => 'diviner-document-section',
);
}
protected function getTagContent() {
require_celerity_resource('diviner-shared-css');
$header = id(new PHUIHeaderView())
->setBleedHeader(true)
->addClass('diviner-section-header')
->setHeader($this->header);
$content = phutil_tag_div('diviner-section-content', $this->content);
return array($header, $content);
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, May 12, 1:55 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
123044
Default Alt Text
DivinerSectionView.php (822 B)

Event Timeline