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


PHP Event::__construct方法代碼示例

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


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

示例1: __construct

 public function __construct(HistoryTypeEnum $historyType, Guid $guid, $category)
 {
     $this->historyType = $historyType;
     $this->guid = $guid;
     $this->category = (int) $category;
     parent::__construct();
 }
開發者ID:entityfx,項目名稱:yii2-utils,代碼行數:7,代碼來源:ObjectHistoryEvent.php

示例2: __construct

 /**
  * @inheritdoc
  * @param DeferredQueue[] $queues
  * @param DeferredGroup $group
  * @param array $config
  */
 public function __construct(&$queues, &$group, $config = [])
 {
     parent::__construct($config);
     $this->queues = $queues;
     $this->group = $group;
     $this->overallStatus = true;
     foreach ($this->queues as $item) {
         $this->overallStatus = $this->overallStatus && $item->getProcess()->getExitCode() === 0;
     }
 }
開發者ID:duvanskiy,項目名稱:yii2-deferred-tasks,代碼行數:16,代碼來源:DeferredQueueGroupCompleteEvent.php

示例3: __construct

 public function __construct($config = [])
 {
     foreach (['modelId', 'modelType', 'payload', 'meta'] as $key) {
         if (isset($config[$key])) {
             $property = '_' . $key;
             $this->{$property} = $config[$key];
             unset($config[$key]);
         }
     }
     parent::__construct($config);
 }
開發者ID:arleighdickerson,項目名稱:yii2-eventsourcing,代碼行數:11,代碼來源:DomainEvent.php

示例4: __construct

 public function __construct(Model &$model, $config = [])
 {
     parent::__construct($config);
     $this->model = $model;
     $this->modelClassName = $this->model->className();
 }
開發者ID:tqsq2005,項目名稱:dotplant2,代碼行數:6,代碼來源:BackendEntityEditEvent.php

示例5: __construct

 public function __construct(array $config = null)
 {
     parent::__construct($config);
 }
開發者ID:black-lamp,項目名稱:blcms-shop,代碼行數:4,代碼來源:PartnersEvents.php

示例6: __construct

 /**
  * @inheritdoc
  * @param integer|string $groupId
  * @param integer|string $queueId
  * @param array $config
  */
 public function __construct($groupId, $queueId, $config = [])
 {
     parent::__construct($config);
     $this->groupId = $groupId;
     $this->queueId = $queueId;
 }
開發者ID:duvanskiy,項目名稱:yii2-deferred-tasks,代碼行數:12,代碼來源:DeferredQueueEvent.php

示例7: __construct

 public function __construct(ActiveForm $form, Model &$model, $config = [])
 {
     parent::__construct($config);
     $this->form = $form;
     $this->model = $model;
 }
開發者ID:tqsq2005,項目名稱:dotplant2,代碼行數:6,代碼來源:BackendEntityEditFormEvent.php

示例8: __construct

 public function __construct($step = null, $saved = null, $config = [])
 {
     $this->step = $step;
     $this->saved = $saved;
     parent::__construct($config);
 }
開發者ID:Gnome007,項目名稱:yii2-wizard-2,代碼行數:6,代碼來源:WizardBehavior.php

示例9: __construct

 /**
  * @inheritdoc
  */
 public function __construct(ActiveQueryInterface $query, $config = [])
 {
     $this->query = $query;
     parent::__construct($config);
 }
開發者ID:yii2-tools,項目名稱:yii2-base,代碼行數:8,代碼來源:ActiveQueryEvent.php

示例10: __construct

 /**
  * Constructor.
  * @param mixed $owner the object associated with this event.
  * @param array $config name-value pairs that will be used to initialize the object properties
  */
 public function __construct($owner, $config = [])
 {
     $this->owner = $owner;
     parent::__construct($config);
 }
開發者ID:dimitu,項目名稱:yii2-listener,代碼行數:10,代碼來源:DataEvent.php

示例11: __construct

 public function __construct($params = [], $config = [])
 {
     $this->params = $params;
     parent::__construct($config);
 }
開發者ID:sangkil,項目名稱:application,代碼行數:5,代碼來源:Event.php

示例12: __construct

 /**
  * TransitionEvent constructor.
  * @param Transition $transition
  * @param array $config
  */
 public function __construct(Transition $transition, $config = [])
 {
     $this->transition = $transition;
     parent::__construct($config);
 }
開發者ID:dizeee,項目名稱:yfinite,代碼行數:10,代碼來源:TransitionEvent.php

示例13: __construct

 /**
  * @inheritdoc
  */
 public function __construct($key, $value, $config = [])
 {
     parent::__construct($config);
     $this->_key = $key;
     $this->_value = $value;
 }
開發者ID:lzpfmh,項目名稱:dotplant2,代碼行數:9,代碼來源:UserPreferenceEvent.php

示例14: __construct

 /**
  * Constructor.
  * @param \yii\base\Widget $widget The widget associated with this action event.
  * @param array            $config Name-value pairs that will be used to initialize
  * the object properties.
  */
 public function __construct(\yii\base\Widget $widget, $config = [])
 {
     $this->widget = $widget;
     parent::__construct($config);
 }
開發者ID:urbanindo,項目名稱:yii2-core-widgets,代碼行數:11,代碼來源:Event.php

示例15: __construct

 /**
  * @param array $message
  * @param $wechat
  * @param array $config
  */
 public function __construct($message, $wechat, $config = [])
 {
     $this->message = $message;
     $this->wechat = $wechat;
     parent::__construct($config);
 }
開發者ID:Brother-Simon,項目名稱:yii2-wechat,代碼行數:11,代碼來源:ProcessEvent.php


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