Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91624820
PHUICurtainPanelView.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
Tue, Nov 12, 20:47
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Nov 14, 20:47 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22295421
Attached To
rPH Phabricator
PHUICurtainPanelView.php
View Options
<?php
final
class
PHUICurtainPanelView
extends
AphrontTagView
{
private
$order
=
0
;
private
$headerText
;
public
function
setHeaderText
(
$header_text
)
{
$this
->
headerText
=
$header_text
;
return
$this
;
}
public
function
getHeaderText
()
{
return
$this
->
headerText
;
}
public
function
setOrder
(
$order
)
{
$this
->
order
=
$order
;
return
$this
;
}
public
function
getOrder
()
{
return
$this
->
order
;
}
public
function
getOrderVector
()
{
return
id
(
new
PhutilSortVector
())
->
addInt
(
$this
->
getOrder
());
}
protected
function
getTagAttributes
()
{
return
array
(
'class'
=>
'phui-curtain-panel'
,
);
}
protected
function
getTagContent
()
{
$header
=
null
;
$header_text
=
$this
->
getHeaderText
();
if
(
strlen
(
$header_text
))
{
$header
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'phui-curtain-panel-header'
,
),
$header_text
);
}
$body
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'phui-curtain-panel-body'
,
),
$this
->
renderChildren
());
return
array
(
$header
,
$body
,
);
}
}
Event Timeline
Log In to Comment