Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F35134377
PhabricatorWorkboardView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
PhabricatorWorkboardView.php
View Options
<?php
final
class
PhabricatorWorkboardView
extends
AphrontView
{
private
$panels
=
array
();
private
$fluidLayout
=
false
;
private
$actions
=
array
();
public
function
addPanel
(
PhabricatorWorkpanelView
$panel
)
{
$this
->
panels
[]
=
$panel
;
return
$this
;
}
public
function
setFluidLayout
(
$layout
)
{
$this
->
fluidLayout
=
$layout
;
return
$this
;
}
public
function
addAction
(
PHUIIconView
$action
)
{
$this
->
actions
[]
=
$action
;
return
$this
;
}
public
function
render
()
{
require_celerity_resource
(
'phabricator-workboard-view-css'
);
$action_list
=
null
;
if
(!
empty
(
$this
->
actions
))
{
$items
=
array
();
foreach
(
$this
->
actions
as
$action
)
{
$items
[]
=
phutil_tag
(
'li'
,
array
(
'class'
=>
'phabricator-workboard-action-item'
),
$action
);
}
$action_list
=
phutil_tag
(
'ul'
,
array
(
'class'
=>
'phabricator-workboard-action-list'
),
$items
);
}
$view
=
new
AphrontMultiColumnView
();
$view
->
setGutter
(
AphrontMultiColumnView
::
GUTTER_MEDIUM
);
$view
->
setFluidLayout
(
$this
->
fluidLayout
);
foreach
(
$this
->
panels
as
$panel
)
{
$view
->
addColumn
(
$panel
);
}
$board
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'phabricator-workboard-view-shadow'
),
$view
);
return
phutil_tag
(
'div'
,
array
(
'class'
=>
'phabricator-workboard-view'
),
array
(
$action_list
,
$board
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Feb 1, 7:23 PM (1 d, 3 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f0/fd/9f2a2b8152381bea3dc2ab6d1a77
Attached To
rPHAB Phabricator
Event Timeline
Log In to Comment