Page MenuHomestyx hydra

PhabricatorOneTimeTriggerClock.php
No OneTemporary

PhabricatorOneTimeTriggerClock.php

<?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');
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 30, 11:45 PM (17 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
430008
Default Alt Text
PhabricatorOneTimeTriggerClock.php (480 B)

Event Timeline