Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110249565
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, Apr 25, 08:57
Size
868 B
Mime Type
text/x-php
Expires
Sun, Apr 27, 08:57 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25799689
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
;
}
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
);
}
}
Event Timeline
Log In to Comment