Ejemplo n.º 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');
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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');
 }
Ejemplo n.º 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');
 }
Ejemplo n.º 5
0
 /**
  * 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');
 }
Ejemplo n.º 6
0
 /**
  * Initializes the {@link $instance} property.
  *
  * @param Renderer $target
  */
 public function __construct(Renderer &$target)
 {
     $this->instance =& $target;
     parent::__construct($target, 'alter');
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 8
0
 /**
  * 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);
 }
Ejemplo n.º 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');
 }
Ejemplo n.º 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');
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 12
0
 /**
  * Initializes the {@link $instance} property.
  *
  * @param EngineCollection $target
  */
 public function __construct(EngineCollection &$target)
 {
     $this->instance =& $target;
     parent::__construct($target, 'alter');
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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');
 }
Ejemplo n.º 17
0
 /**
  * @param RecordCollection $target
  */
 public function __construct(RecordCollection &$target)
 {
     $this->instance =& $target;
     parent::__construct($target, self::TYPE);
 }
Ejemplo n.º 18
0
 /**
  * The event is constructed with the type {@link TYPE}.
  *
  * @param Core $target
  */
 public function __construct(Core $target)
 {
     parent::__construct($target, self::TYPE);
 }
Ejemplo n.º 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');
 }
Ejemplo n.º 20
0
 /**
  * @param View $target
  * @param string $result
  */
 public function __construct(View $target, &$result)
 {
     $this->result =& $result;
     parent::__construct($target, self::TYPE);
 }
Ejemplo n.º 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');
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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');
 }
Ejemplo n.º 25
0
 /**
  * Initializes the {@link $instance} property.
  *
  * @param TemplateResolver $target
  */
 public function __construct(TemplateResolver &$target)
 {
     $this->instance =& $target;
     parent::__construct($target, 'alter');
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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');
 }
Ejemplo n.º 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');
 }
Ejemplo n.º 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');
 }