Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91649200
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
Wed, Nov 13, 02:05
Size
979 B
Mime Type
text/x-php
Expires
Fri, Nov 15, 02:05 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22297175
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