Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F69869552
PHUIWorkpanelView.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
Wed, Jul 3, 23:03
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Jul 5, 23:03 (2 d)
Engine
blob
Format
Raw Data
Handle
18764348
Attached To
rPH Phabricator
PHUIWorkpanelView.php
View Options
<?php
final
class
PHUIWorkpanelView
extends
AphrontView
{
private
$cards
=
array
();
private
$header
;
private
$headerAction
;
private
$footerAction
;
public
function
setCards
(
PHUIObjectItemListView
$cards
)
{
$this
->
cards
[]
=
$cards
;
return
$this
;
}
public
function
setHeader
(
$header
)
{
$this
->
header
=
$header
;
return
$this
;
}
public
function
setHeaderAction
(
$header_action
)
{
// TODO: This doesn't do anything?
$this
->
headerAction
=
$header_action
;
return
$this
;
}
public
function
setFooterAction
(
PHUIListItemView
$footer_action
)
{
$this
->
footerAction
=
$footer_action
;
return
$this
;
}
public
function
render
()
{
require_celerity_resource
(
'phui-workpanel-view-css'
);
$footer
=
''
;
if
(
$this
->
footerAction
)
{
$footer_tag
=
$this
->
footerAction
;
$footer
=
phutil_tag
(
'ul'
,
array
(
'class'
=>
'phui-workpanel-footer-action mst ps'
),
$footer_tag
);
}
$header
=
id
(
new
PhabricatorActionHeaderView
())
->
setHeaderTitle
(
$this
->
header
)
->
setHeaderColor
(
PhabricatorActionHeaderView
::
HEADER_GREY
);
$body
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'phui-workpanel-body'
),
$this
->
cards
);
$view
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'phui-workpanel-view-inner'
,
),
array
(
$header
,
$body
,
$footer
,
));
return
phutil_tag
(
'div'
,
array
(
'class'
=>
'phui-workpanel-view'
),
$view
);
}
}
Event Timeline
Log In to Comment