Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106121513
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
Sat, Mar 22, 16:58
Size
617 B
Mime Type
text/x-php
Expires
Mon, Mar 24, 16:58 (2 d)
Engine
blob
Format
Raw Data
Handle
25084188
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