Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4852718
PHUIWorkpanelView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
PHUIWorkpanelView.php
View Options
<?php
final
class
PHUIWorkpanelView
extends
AphrontView
{
private
$cards
=
array
(
)
;
private
$header
;
private
$editURI
;
private
$footerAction
;
private
$headerColor
=
PhabricatorActionHeaderView
::
HEADER_GREY
;
public
function
setCards
(
PHUIObjectItemListView
$cards
)
{
$this
->
cards
[
]
=
$cards
;
return
$this
;
}
public
function
setHeader
(
$header
)
{
$this
->
header
=
$header
;
return
$this
;
}
public
function
setEditURI
(
$edit_uri
)
{
$this
->
editURI
=
$edit_uri
;
return
$this
;
}
public
function
setFooterAction
(
PHUIListItemView
$footer_action
)
{
$this
->
footerAction
=
$footer_action
;
return
$this
;
}
public
function
setHeaderColor
(
$header_color
)
{
$this
->
headerColor
=
$header_color
;
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_edit
=
id
(
new
PHUIIconView
(
)
)
->
setSpriteSheet
(
PHUIIconView
::
SPRITE_ACTIONS
)
->
setSpriteIcon
(
'settings-grey'
)
->
setHref
(
$this
->
editURI
)
;
$header
=
id
(
new
PhabricatorActionHeaderView
(
)
)
->
setHeaderTitle
(
$this
->
header
)
->
setHeaderColor
(
$this
->
headerColor
)
->
addAction
(
$header_edit
)
;
$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
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 9, 06:48 (3 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1768530
Default Alt Text
PHUIWorkpanelView.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment