示例#1
0
 /**
  * The event is constructed with the type `mail`.
  *
  * @param mixed $target The sender of the message.
  * @param Message $message Reference to the message about to be sent.
  * @param Mailer $mailer Reference to the mailer that will be used to send the message.
  */
 public function __construct($target, &$rc, Message &$message, Mailer &$mailer)
 {
     $this->rc =& $rc;
     $this->message =& $message;
     $this->mailer =& $mailer;
     parent::__construct($target, 'mail');
 }
示例#2
0
 /**
  * The event is constructed with the type `dispatch`.
  *
  * @param RouteDispatcher $target
  * @param Route $route
  * @param Request $request
  * @param Response|null $response
  */
 public function __construct(RouteDispatcher $target, Route $route, Request $request, Response &$response = null)
 {
     $this->route = $route;
     $this->request = $request;
     $this->response =& $response;
     parent::__construct($target, self::TYPE);
 }
示例#3
0
 /**
  * The event is constructed with the type `dispatch`.
  *
  * @param Dispatcher $target
  * @param Operation $operation
  * @param Request $request
  * @param \ICanBoogie\HTTP\Response $response
  */
 public function __construct(Dispatcher $target, Operation $operation, Request $request, &$response)
 {
     $this->operation = $operation;
     $this->request = $request;
     $this->response =& $response;
     parent::__construct($target, 'dispatch');
 }
示例#4
0
 /**
  * The event is constructed with the type `rescue`.
  *
  * @param Operation $target
  * @param \Exception $exception
  * @param Request $request
  * @param Response|null $response
  */
 public function __construct(Operation $target, \Exception &$exception, Request $request, &$response)
 {
     $this->exception =& $exception;
     $this->request = $request;
     $this->response =& $response;
     parent::__construct($target, 'rescue');
 }
 /**
  * The event is constructed with the type `dispatch:before`.
  *
  * @param Dispatcher $target
  * @param Operation $operation
  * @param Request $request
  * @param Response|null $response
  */
 public function __construct(Dispatcher $target, Operation $operation, Request $request, &$response)
 {
     if ($response !== null && !$response instanceof Response) {
         throw new \InvalidArgumentException('$response must be an instance of ICanBoogie\\HTTP\\Response. Given: ' . (is_object($response) ? get_class($response) : gettype($response)) . '.');
     }
     $this->operation = $operation;
     $this->request = $request;
     $this->response =& $response;
     parent::__construct($target, 'dispatch:before');
 }
示例#6
0
 /**
  * Initializes the {@link $instance} property.
  *
  * @param Renderer $target
  */
 public function __construct(Renderer &$target)
 {
     $this->instance =& $target;
     parent::__construct($target, 'alter');
 }
示例#7
0
 /**
  * The event is constructed with the type `alter_records`.
  *
  * @param View $target
  * @param RecordCollection|array $records Reference to the records.
  */
 public function __construct(View $target, &$records)
 {
     $this->records =& $records;
     parent::__construct($target, self::TYPE);
 }
 /**
  * The event is constructed with the type `validate:before`.
  *
  * @param Operation $target
  * @param array $payload
  */
 public function __construct(Operation $target, array $payload)
 {
     parent::__construct($target, 'validate:before', $payload);
 }
示例#9
0
 /**
  * The event is constructed with the type 'collect'.
  *
  * @param Collection $target
  * @param array $collection Reference to the view collection.
  */
 public function __construct(Collection $target, &$collection)
 {
     $this->collection =& $collection;
     parent::__construct($target, 'collect');
 }
示例#10
0
 /**
  * The event is constructed with the type `mail:before`.
  *
  * @param object $target The sender of the message.
  * @param Message $message Reference to the message about to be sent.
  * @param Mailer $mailer Reference to the mailer that will be used to send the message.
  */
 public function __construct($target, Message &$message, Mailer &$mailer)
 {
     $this->message =& $message;
     $this->mailer =& $mailer;
     parent::__construct($target, 'mail:before');
 }
示例#11
0
 /**
  * The event is constructed with the type {@link TYPE}.
  *
  * @param Core $target
  * @param Request $request
  */
 public function __construct(Core $target, Request $request)
 {
     $this->request = $request;
     parent::__construct($target, self::TYPE);
 }
示例#12
0
 /**
  * Initializes the {@link $instance} property.
  *
  * @param EngineCollection $target
  */
 public function __construct(EngineCollection &$target)
 {
     $this->instance =& $target;
     parent::__construct($target, 'alter');
 }
示例#13
0
 /**
  * The event is created with the type `render`.
  *
  * @param \Icybee\Modules\Forms\Form $target
  * @param array $payload
  */
 public function __construct(\Icybee\Modules\Forms\Form $target, array $payload)
 {
     parent::__construct($target, 'render', $payload);
 }
示例#14
0
 /**
  * The event is constructed with the type {@link self::TYPE}.
  *
  * @param Route $target
  * @param \Exception $exception Reference to the exception thrown while dispatching the route.
  * @param Request $request
  * @param Response|null $response
  */
 public function __construct(Route $target, \Exception &$exception, Request $request, Response &$response = null)
 {
     $this->exception =& $exception;
     $this->request = $request;
     $this->response =& $response;
     parent::__construct($target, self::TYPE);
 }
示例#15
0
 /**
  * The event is constructed with the type `process`.
  *
  * @param Operation $target
  * @param array $payload
  */
 public function __construct(Operation $target, array $payload)
 {
     parent::__construct($target, 'process', $payload);
 }
示例#16
0
 /**
  * The event is constructed with the type `collect`.
  *
  * @param \Icybee\Modules\Cache\Collection $target
  * @param array $collection Cache manager collection.
  */
 public function __construct(\Icybee\Modules\Cache\Collection $target, array &$collection)
 {
     $this->collection =& $collection;
     parent::__construct($target, 'collect');
 }
示例#17
0
 /**
  * @param RecordCollection $target
  */
 public function __construct(RecordCollection &$target)
 {
     $this->instance =& $target;
     parent::__construct($target, self::TYPE);
 }
示例#18
0
 /**
  * The event is constructed with the type {@link TYPE}.
  *
  * @param Core $target
  */
 public function __construct(Core $target)
 {
     parent::__construct($target, self::TYPE);
 }
示例#19
0
 /**
  * The event is constructed with the type `move`.
  *
  * @param \Icybee\Modules\Pages\Page $target
  * @param string $from Previous path.
  * @param string $to New path.
  */
 public function __construct(\Icybee\Modules\Pages\Page $target, $from, $to)
 {
     $this->from = $from;
     $this->to = $to;
     parent::__construct($target, 'move');
 }
示例#20
0
 /**
  * @param View $target
  * @param string $result
  */
 public function __construct(View $target, &$result)
 {
     $this->result =& $result;
     parent::__construct($target, self::TYPE);
 }
示例#21
0
 /**
  * The event is constructed with the type `failure`.
  *
  * @param Operation $target
  * @param string $type
  * @param Request $request
  */
 public function __construct(Operation $target, $type, Request $request)
 {
     $this->type = $type;
     $this->request = $request;
     parent::__construct($target, 'failure');
 }
示例#22
0
 /**
  * The event is constructed with the type `render_region`.
  *
  * @param Page $target
  * @param array $payload
  */
 public function __construct(Page $target, array $payload)
 {
     parent::__construct($target, 'render_region', $payload);
 }
示例#23
0
 /**
  * The event is constructed with the type `get_form`.
  *
  * @param Operation $target
  * @param Request $request
  * @param mixed $form
  */
 public function __construct(Operation $target, Request $request, &$form)
 {
     $this->request = $request;
     $this->form =& $form;
     parent::__construct($target, 'get_form');
 }
 /**
  * The event is constructed with the type `collect`.
  *
  * @param array $routes The route collection.
  */
 public function __construct(array &$routes)
 {
     $this->routes =& $routes;
     parent::__construct(null, 'routing.synthesize_routes');
 }
示例#25
0
 /**
  * Initializes the {@link $instance} property.
  *
  * @param TemplateResolver $target
  */
 public function __construct(TemplateResolver &$target)
 {
     $this->instance =& $target;
     parent::__construct($target, 'alter');
 }
示例#26
0
 /**
  * The event is constructed with the type `render_inner_html`.
  *
  * @param \Icybee\Modules\Pages\BreadcrumbElement $target
  * @param array $payload
  */
 public function __construct(\Icybee\Modules\Pages\BreadcrumbElement $target, array $payload)
 {
     parent::__construct($target, 'render_inner_html', $payload);
 }
示例#27
0
 /**
  * The event is constructed with the type `alter`.
  *
  * @param \Icybee\Modules\Editor\Collection $target
  */
 public function __construct(\Icybee\Modules\Editor\Collection $target)
 {
     parent::__construct($target, 'alter');
 }
示例#28
0
 /**
  * The event is created with the type `create_default_routes`.
  *
  * @param \Icybee\Modules\Nodes\Module $target
  * @param array $payload
  */
 public function __construct(\Icybee\Modules\Nodes\Module $target, array $payload)
 {
     parent::__construct($target, 'create_default_routes', $payload);
 }
 /**
  * The event is constructed with the type `routing.synthesize_routes:before`.
  *
  * @param array $fragments Reference to the fragments to alter.
  */
 public function __construct(&$fragments)
 {
     $this->fragments =& $fragments;
     parent::__construct(null, 'routing.synthesize_routes:before');
 }
示例#30
0
 /**
  * The event is constructed with the type `alter_blueprint`.
  *
  * @param \Icybee\Modules\Pages\NavigationBranchElement $target
  * @param \Icybee\Modules\Pages\Blueprint $blueprint
  * @param \Icybee\Modules\Pages\Page $page
  * @param int $parent_id
  */
 public function __construct(\Icybee\Modules\Pages\NavigationBranchElement $target, array &$blueprint, \Icybee\Modules\Pages\Page $page, $parent_id)
 {
     $this->blueprint =& $blueprint;
     $this->page = $page;
     $this->parent_id = $parent_id;
     parent::__construct($target, 'alter_blueprint');
 }