Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102757446
PhabricatorWorkpanelView.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
Sun, Feb 23, 21:30
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Feb 25, 21:30 (2 d)
Engine
blob
Format
Raw Data
Handle
24421838
Attached To
rPH Phabricator
PhabricatorWorkpanelView.php
View Options
<?php
final
class
PhabricatorWorkpanelView
extends
AphrontView
{
private
$cards
=
array
();
private
$header
;
private
$headerAction
;
private
$footerAction
;
public
function
setCards
(
PhabricatorObjectItemListView
$cards
)
{
$this
->
cards
[]
=
$cards
;
return
$this
;
}
public
function
setHeader
(
$header
)
{
$this
->
header
=
$header
;
return
$this
;
}
public
function
setHeaderAction
(
$header_action
)
{
$this
->
headerAction
=
$header_action
;
return
$this
;
}
public
function
setFooterAction
(
$footer_action
)
{
$this
->
footerAction
=
$footer_action
;
return
$this
;
}
public
function
render
()
{
require_celerity_resource
(
'phabricator-workpanel-view-css'
);
$footer
=
''
;
if
(
$this
->
footerAction
)
{
$action
=
$this
->
footerAction
;
$footer
=
javelin_tag
(
'a'
,
array
(
'href'
=>
$action
->
getHref
(),
'class'
=>
'phabricator-workpanel-footer-action'
,
'sigil'
=>
$action
->
getWorkflow
()
?
'workflow'
:
null
,
),
$action
->
getName
());
}
$header
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'phabricator-workpanel-header'
),
$this
->
header
);
$body
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'phabricator-workpanel-body'
),
$this
->
cards
);
$view
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'phabricator-workpanel-view-inner'
,
),
array
(
$header
,
$body
,
$footer
,
));
return
phutil_tag
(
'div'
,
array
(
'class'
=>
'phabricator-workpanel-view'
),
$view
);
}
}
Event Timeline
Log In to Comment