Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F73707464
PHUIWorkboardView.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
Tue, Jul 23, 21:45
Size
780 B
Mime Type
text/x-php
Expires
Thu, Jul 25, 21:45 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
19254840
Attached To
rPH Phabricator
PHUIWorkboardView.php
View Options
<?php
final
class
PHUIWorkboardView
extends
AphrontTagView
{
private
$panels
=
array
();
private
$actions
=
array
();
public
function
addPanel
(
PHUIWorkpanelView
$panel
)
{
$this
->
panels
[]
=
$panel
;
return
$this
;
}
protected
function
getTagAttributes
()
{
return
array
(
'class'
=>
'phui-workboard-view'
,
);
}
protected
function
getTagContent
()
{
require_celerity_resource
(
'phui-workboard-view-css'
);
$view
=
new
AphrontMultiColumnView
();
$view
->
setGutter
(
AphrontMultiColumnView
::
GUTTER_MEDIUM
);
foreach
(
$this
->
panels
as
$panel
)
{
$view
->
addColumn
(
$panel
);
}
$board
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'phui-workboard-view-shadow'
,
),
$view
);
return
$board
;
}
}
Event Timeline
Log In to Comment