Example #1
0
 /**
  * Исполнение события
  *
  * @param   $args
  * @return  object
  */
 public function run($args)
 {
     self::$current = $this;
     foreach ($this as $callback) {
         if (FALSE === flash('event.' . $this->name)) {
             return FALSE;
         }
         $result = $callback->run($args);
         if (NULL !== $result) {
             $this->results->append($result);
         }
     }
     return $this;
 }