Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93140065
PhabricatorCountdownRemarkupRule.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, Nov 26, 12:29
Size
617 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 12:29 (2 d)
Engine
blob
Format
Raw Data
Handle
22576452
Attached To
rPH Phabricator
PhabricatorCountdownRemarkupRule.php
View Options
<?php
final
class
PhabricatorCountdownRemarkupRule
extends
PhabricatorObjectRemarkupRule
{
protected
function
getObjectNamePrefix
()
{
return
'C'
;
}
protected
function
loadObjects
(
array
$ids
)
{
$viewer
=
$this
->
getEngine
()->
getConfig
(
'viewer'
);
return
id
(
new
PhabricatorCountdownQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
$ids
)
->
execute
();
}
protected
function
renderObjectEmbed
(
$object
,
$handle
,
$options
)
{
$viewer
=
$this
->
getEngine
()->
getConfig
(
'viewer'
);
return
id
(
new
PhabricatorCountdownView
())
->
setCountdown
(
$object
)
->
setUser
(
$viewer
);
}
}
Event Timeline
Log In to Comment