Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120321774
PhabricatorOneTimeTriggerClock.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, Jul 3, 12:45
Size
480 B
Mime Type
text/x-php
Expires
Sat, Jul 5, 12:45 (2 d)
Engine
blob
Format
Raw Data
Handle
27172124
Attached To
rPH Phabricator
PhabricatorOneTimeTriggerClock.php
View Options
<?php
/**
* Triggers an event exactly once, at a specific epoch time.
*/
final
class
PhabricatorOneTimeTriggerClock
extends
PhabricatorTriggerClock
{
public
function
validateProperties
(
array
$properties
)
{
PhutilTypeSpec
::
checkMap
(
$properties
,
array
(
'epoch'
=>
'int'
,
));
}
public
function
getNextEventEpoch
(
$last_epoch
,
$is_reschedule
)
{
if
(
$last_epoch
)
{
return
null
;
}
return
$this
->
getProperty
(
'epoch'
);
}
}
Event Timeline
Log In to Comment