/** * @return void */ public static function startup() { if (rand(1, 100) < self::$period) { \EventHandler::trigger('cron.run'); } }
/** * @param mixed $notificationType * @param \Observable $caller * @return void */ public function notify($notificationType, \Observable $caller) { if ($notificationType == \Model::TAG_CHANGED) { \EventHandler::trigger('etag.change', [$caller->getLastReturnTag()]); } }
/** * @return void */ public static function startup() { \EventHandler::trigger('cron.run'); \EventHandler::trigger('crontab.run'); }