Beispiel #1
0
 /**
  * @return void
  */
 public static function startup()
 {
     if (rand(1, 100) < self::$period) {
         \EventHandler::trigger('cron.run');
     }
 }
Beispiel #2
0
 /**
  * @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()]);
     }
 }
Beispiel #3
0
 /**
  * @return void
  */
 public static function startup()
 {
     \EventHandler::trigger('cron.run');
     \EventHandler::trigger('crontab.run');
 }