当前位置: 首页>>代码示例>>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;未经允许,请勿转载。