Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78822218
DivinerSectionView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Aug 23, 04:23
Size
822 B
Mime Type
text/x-php
Expires
Sun, Aug 25, 04:23 (2 d)
Engine
blob
Format
Raw Data
Handle
20107742
Attached To
rPH Phabricator
DivinerSectionView.php
View Options
<?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
);
}
}
Event Timeline
Log In to Comment