本文整理汇总了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();
}
示例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;
}
}
示例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);
}
示例4: __construct
public function __construct(Model &$model, $config = [])
{
parent::__construct($config);
$this->model = $model;
$this->modelClassName = $this->model->className();
}
示例5: __construct
public function __construct(array $config = null)
{
parent::__construct($config);
}
示例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;
}
示例7: __construct
public function __construct(ActiveForm $form, Model &$model, $config = [])
{
parent::__construct($config);
$this->form = $form;
$this->model = $model;
}
示例8: __construct
public function __construct($step = null, $saved = null, $config = [])
{
$this->step = $step;
$this->saved = $saved;
parent::__construct($config);
}
示例9: __construct
/**
* @inheritdoc
*/
public function __construct(ActiveQueryInterface $query, $config = [])
{
$this->query = $query;
parent::__construct($config);
}
示例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);
}
示例11: __construct
public function __construct($params = [], $config = [])
{
$this->params = $params;
parent::__construct($config);
}
示例12: __construct
/**
* TransitionEvent constructor.
* @param Transition $transition
* @param array $config
*/
public function __construct(Transition $transition, $config = [])
{
$this->transition = $transition;
parent::__construct($config);
}
示例13: __construct
/**
* @inheritdoc
*/
public function __construct($key, $value, $config = [])
{
parent::__construct($config);
$this->_key = $key;
$this->_value = $value;
}
示例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);
}
示例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);
}