Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99501814
PHUICurtainView.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
Sat, Jan 25, 01:21
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Jan 27, 01:21 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23806632
Attached To
rPH Phabricator
PHUICurtainView.php
View Options
<?php
final
class
PHUICurtainView
extends
AphrontTagView
{
private
$actionList
;
private
$panels
=
array
();
public
function
addAction
(
PhabricatorActionView
$action
)
{
$this
->
getActionList
()->
addAction
(
$action
);
return
$this
;
}
public
function
addPanel
(
PHUICurtainPanelView
$curtain_panel
)
{
$this
->
panels
[]
=
$curtain_panel
;
return
$this
;
}
public
function
setActionList
(
PhabricatorActionListView
$action_list
)
{
$this
->
actionList
=
$action_list
;
return
$this
;
}
public
function
getActionList
()
{
return
$this
->
actionList
;
}
protected
function
canAppendChild
()
{
return
false
;
}
protected
function
getTagContent
()
{
$action_list
=
$this
->
actionList
;
require_celerity_resource
(
'phui-curtain-view-css'
);
$panels
=
$this
->
renderPanels
();
return
id
(
new
PHUIObjectBoxView
())
->
appendChild
(
$action_list
)
->
appendChild
(
$panels
)
->
addClass
(
'phui-two-column-properties'
);
}
private
function
renderPanels
()
{
$panels
=
$this
->
panels
;
$panels
=
msortv
(
$panels
,
'getOrderVector'
);
return
$panels
;
}
}
Event Timeline
Log In to Comment