Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F455915
DivinerSectionView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
868 B
Referenced Files
None
Subscribers
None
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
;
}
public
function
getTagName
()
{
return
'div'
;
}
public
function
getTagAttributes
()
{
return
array
(
'class'
=>
'diviner-document-section'
,
);
}
public
function
getTagContent
()
{
require_celerity_resource
(
'diviner-shared-css'
);
$header
=
id
(
new
PhabricatorHeaderView
())
->
setBleedHeader
(
true
)
->
setHeader
(
$this
->
header
);
$content
=
id
(
new
PHUIBoxView
())
->
addPadding
(
PHUI
::
PADDING_LARGE_LEFT
)
->
addPadding
(
PHUI
::
PADDING_LARGE_RIGHT
)
->
appendChild
(
$this
->
content
);
return
array
(
$header
,
$content
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 7:21 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
70547
Default Alt Text
DivinerSectionView.php (868 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment