Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110162070
PhabricatorPasteRemarkupRule.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, Apr 24, 23:48
Size
638 B
Mime Type
text/x-php
Expires
Sat, Apr 26, 23:48 (2 d)
Engine
blob
Format
Raw Data
Handle
25790479
Attached To
rPH Phabricator
PhabricatorPasteRemarkupRule.php
View Options
<?php
/**
* @group markup
*/
final
class
PhabricatorPasteRemarkupRule
extends
PhabricatorRemarkupRuleObject
{
protected
function
getObjectNamePrefix
()
{
return
'P'
;
}
protected
function
loadObjects
(
array
$ids
)
{
$viewer
=
$this
->
getEngine
()->
getConfig
(
'viewer'
);
return
id
(
new
PhabricatorPasteQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
$ids
)
->
needContent
(
true
)
->
execute
();
}
protected
function
renderObjectEmbed
(
$object
,
$handle
,
$options
)
{
$embed_paste
=
id
(
new
PasteEmbedView
())
->
setPaste
(
$object
)
->
setHandle
(
$handle
);
return
$embed_paste
->
render
();
}
}
Event Timeline
Log In to Comment