Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F445099
PhabricatorWorkboardView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
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
(
PhabricatorWorkboardActionView
$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, May 4, 1:06 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
65505
Default Alt Text
PhabricatorWorkboardView.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment