Ejemplo n.º 1
0
Archivo: HTTP.php Proyecto: jankal/mvc
 /**
  * @return void
  */
 public static function startup()
 {
     if (rand(1, 100) < self::$period) {
         \EventHandler::trigger('cron.run');
     }
 }
Ejemplo n.º 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()]);
     }
 }
Ejemplo n.º 3
0
 /**
  * @return void
  */
 public static function startup()
 {
     \EventHandler::trigger('cron.run');
     \EventHandler::trigger('crontab.run');
 }