Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65780562
PhabricatorDashboardRenderingEngine.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
Thu, Jun 6, 04:28
Size
748 B
Mime Type
text/x-php
Expires
Sat, Jun 8, 04:28 (2 d)
Engine
blob
Format
Raw Data
Handle
18126214
Attached To
rPH Phabricator
PhabricatorDashboardRenderingEngine.php
View Options
<?php
final
class
PhabricatorDashboardRenderingEngine
extends
Phobject
{
private
$dashboard
;
private
$viewer
;
public
function
setViewer
(
PhabricatorUser
$viewer
)
{
$this
->
viewer
=
$viewer
;
return
$this
;
}
public
function
setDashboard
(
PhabricatorDashboard
$dashboard
)
{
$this
->
dashboard
=
$dashboard
;
return
$this
;
}
public
function
renderDashboard
()
{
$dashboard
=
$this
->
dashboard
;
$viewer
=
$this
->
viewer
;
$result
=
array
();
foreach
(
$dashboard
->
getPanels
()
as
$panel
)
{
$result
[]
=
id
(
new
PhabricatorDashboardPanelRenderingEngine
())
->
setViewer
(
$viewer
)
->
setPanel
(
$panel
)
->
setEnableAsyncRendering
(
true
)
->
renderPanel
();
}
return
$result
;
}
}
Event Timeline
Log In to Comment