Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98230514
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
Sat, Jan 11, 07:00
Size
480 B
Mime Type
text/x-php
Expires
Mon, Jan 13, 07:00 (2 d)
Engine
blob
Format
Raw Data
Handle
23532122
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