Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80918322
PhabricatorDashboardRemarkupRule.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, Sep 3, 06:15
Size
979 B
Mime Type
text/x-php
Expires
Thu, Sep 5, 06:15 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
20475200
Attached To
rPH Phabricator
PhabricatorDashboardRemarkupRule.php
View Options
<?php
final
class
PhabricatorDashboardRemarkupRule
extends
PhabricatorObjectRemarkupRule
{
const
KEY_PARENT_PANEL_PHIDS
=
'dashboard.parentPanelPHIDs'
;
protected
function
getObjectNamePrefix
()
{
return
'W'
;
}
protected
function
loadObjects
(
array
$ids
)
{
$viewer
=
$this
->
getEngine
()->
getConfig
(
'viewer'
);
return
id
(
new
PhabricatorDashboardPanelQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
$ids
)
->
execute
();
}
protected
function
renderObjectEmbed
(
$object
,
PhabricatorObjectHandle
$handle
,
$options
)
{
$engine
=
$this
->
getEngine
();
$viewer
=
$engine
->
getConfig
(
'viewer'
);
$parent_key
=
self
::
KEY_PARENT_PANEL_PHIDS
;
$parent_phids
=
$engine
->
getConfig
(
$parent_key
,
array
());
return
id
(
new
PhabricatorDashboardPanelRenderingEngine
())
->
setViewer
(
$viewer
)
->
setPanel
(
$object
)
->
setPanelPHID
(
$object
->
getPHID
())
->
setParentPanelPHIDs
(
$parent_phids
)
->
renderPanel
();
}
}
Event Timeline
Log In to Comment