當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Event::__construct方法代碼示例

本文整理匯總了PHP中Zend\EventManager\Event::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Event::__construct方法的具體用法?PHP Event::__construct怎麽用?PHP Event::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend\EventManager\Event的用法示例。


在下文中一共展示了Event::__construct方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * AbstractTransactionEvent constructor.
  *
  * @param string $managerName
  * @param string $actionName
  */
 public function __construct($managerName, $actionName)
 {
     $this->managerName = $managerName;
     $this->actionName = $actionName;
     $this->commandUuid = Uuid::uuid4()->toString();
     parent::__construct();
 }
開發者ID:old-town,項目名稱:workflow-zf2,代碼行數:13,代碼來源:AbstractTransactionEvent.php

示例2: __construct

 /**
  * 
  * @param object $target
  * @param string $message
  * @param int $priority
  * @param array $extras
  */
 public function __construct($target, $message, $priority, array $extras = [])
 {
     $this->message = $message;
     $this->priority = $priority;
     $this->extras = $extras;
     parent::__construct(__CLASS__, $target);
 }
開發者ID:alex-oleshkevich,項目名稱:zf-extras,代碼行數:14,代碼來源:LogEvent.php

示例3: __construct

 /**
  * @param null|string|object $subject
  * @param array $data
  * @param SerializerInterface $serializer
  */
 public function __construct($subject, &$data, SerializerInterface $serializer)
 {
     $this->subject = $subject;
     $this->data =& $data;
     $this->serializer = $serializer;
     parent::__construct();
 }
開發者ID:nickvkaam,項目名稱:SpraySerializer,代碼行數:12,代碼來源:SerializeEvent.php

示例4: __construct

 /**
  * Конструктор
  *
  * @param object $object
  * @param string $previous
  * @param string $next
  * @param string $event
  * @param string $machine
  * @param string $signal
  * @param array  $parameters
  */
 public function __construct(object $object, string $previous, string $next, string $event, string $machine, string $signal, array $parameters)
 {
     parent::__construct($event, $machine, $parameters);
     $this->object = $object;
     $this->previous = $previous;
     $this->next = $next;
     $this->signal = $signal;
 }
開發者ID:free2er,項目名稱:state-machine,代碼行數:19,代碼來源:ZendEvent.php

示例5: __construct

 public function __construct(array $params)
 {
     parent::__construct('rest-error-event', null, []);
     // Set params manually, so we can validate and stuff.
     $setParamUsing = function ($methodName, $value) use($params) {
         if (isset($params[$value])) {
             call_user_func([$this, $methodName], $params[$value]);
         }
     };
     $setParamUsing('setError', 'error');
     $setParamUsing('setErrorConfig', 'errorConfig');
     $setParamUsing('setViewModel', 'viewModel');
 }
開發者ID:Kipperlenny,項目名稱:ZendRestModule,代碼行數:13,代碼來源:RestErrorEvent.php

示例6: __construct

 /**
  * Constructor
  *
  * Accept a storage adapter and its parameters.
  *
  * @param  string           $name Event name
  * @param  StorageInterface $storage
  * @param  ArrayObject      $params
  */
 public function __construct($name, StorageInterface $storage, ArrayObject $params)
 {
     parent::__construct($name, $storage, $params);
 }
開發者ID:Baft,項目名稱:Zend-Form,代碼行數:13,代碼來源:Event.php

示例7: __construct

 /**
  * Constructor
  *
  * Accept a target and its parameters.
  *
  * @param  string $name Event name
  * @param  string|object $target
  * @param  array|\ArrayAccess $params
  */
 public function __construct($name = null, $target = null, $params = null)
 {
     parent::__construct(self::EVENT_JOB_ENDED, $target, $params);
 }
開發者ID:t4web,項目名稱:cron,代碼行數:13,代碼來源:JobEndedEvent.php

示例8: __construct

 /**
  * OAuthConnectEvent constructor.
  *
  * @param \Sta\OAuthConnect\OAuthService\AuthorizationResult $authorizationResult
  * @param \Sta\OAuthConnect\OAuthService\OAuthServiceInterface $oAuthService
  */
 public function __construct(\Sta\OAuthConnect\OAuthService\AuthorizationResult $authorizationResult, \Sta\OAuthConnect\OAuthService\OAuthServiceInterface $oAuthService)
 {
     $this->authorizationResult = $authorizationResult;
     $this->oAuthService = $oAuthService;
     parent::__construct();
 }
開發者ID:stavarengo,項目名稱:o-auth-connect,代碼行數:12,代碼來源:OAuthConnectEvent.php

示例9: __construct

 /**
  * Constructor
  *
  * Accept a storage adapter and its parameters.
  *
  * @param  string $name Event name
  * @param  Adapter $storage
  * @param  ArrayObject $params
  * @return void
  */
 public function __construct($name, Adapter $storage, ArrayObject $params)
 {
     parent::__construct($name, $storage, $params);
 }
開發者ID:nevvermind,項目名稱:zf2,代碼行數:14,代碼來源:Event.php

示例10: __construct

 /**
  * Creates an instance.
  *
  * Instantiates a new PriorityList for the view models.
  *
  * @param string|null $name
  * @param string|null $target
  * @param array|null $params
  */
 public function __construct($name = null, $target = null, $params = null)
 {
     parent::__construct($name, $target, $params);
     $this->models = new PriorityList();
 }
開發者ID:cross-solution,項目名稱:yawik,代碼行數:14,代碼來源:AdminControllerEvent.php

示例11: __construct

 /**
  * @param string                  $eventName
  * @param ServiceLocatorInterface $serviceLocator
  * @param mixed                   $instance
  * @param string                  $requestedName
  * @param                         $canonicalName
  */
 public function __construct($eventName, ServiceLocatorInterface $serviceLocator, $instance, $requestedName, $canonicalName)
 {
     parent::__construct($eventName, $this->serviceLocator = $serviceLocator, array('instance' => $this->instance = $instance, 'requested_name' => $this->requestedName = $requestedName, 'canonical_name' => $this->canonicalName = $canonicalName, 'trace' => $this->trace = debug_backtrace(true)));
 }
開發者ID:rhodium289,項目名稱:sandbox,代碼行數:11,代碼來源:ServiceManagerEvent.php

示例12: __construct

 public function __construct(MailServiceInterface $mailService, $name = self::EVENT_MAIL_PRE_SEND)
 {
     parent::__construct($name);
     $this->mailService = $mailService;
 }
開發者ID:wasabiNorman,項目名稱:ZF2-AcMailer,代碼行數:5,代碼來源:MailEvent.php


注:本文中的Zend\EventManager\Event::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。