예제 #1
0
파일: Routing.php 프로젝트: jivoo/jivoo
 /**
  * Construct redirect event.
  * @param object $sender Sender object.
  * @param array|Linkable|string|null $route A route, see {@see Routing}.
  * @param bool $movied Whether it is a permanent (true) or temporary (false) redirect.
  */
 public function __construct($sender, $route, $moved)
 {
     parent::__construct($sender);
     $this->route = $route;
     $this->moved = $moved;
 }
예제 #2
0
파일: App.php 프로젝트: jivoo/jivoo
 /**
  * Construct exception event.
  * @param object $sender Sender object.
  * @param \Exception $exception The exception.
  * @param string $body The response body.
  */
 public function __construct($sender, $exception, $body)
 {
     parent::__construct($sender);
     $this->exception = $exception;
     $this->body = $body;
 }
예제 #3
0
파일: ActiveModel.php 프로젝트: jivoo/jivoo
 /**
  * Construct active model event.
  * @param mixed $sender Sender
  */
 public function __construct($sender)
 {
     parent::__construct($sender);
     if ($sender instanceof ActiveRecord) {
         $this->record = $sender;
     }
 }