Files
yii2-usuario/lib/User/Event/FormEvent.php
2016-12-09 01:39:55 +01:00

28 lines
538 B
PHP

<?php
namespace Da\User\Event;
use yii\base\Event;
use yii\base\Model;
class FormEvent extends Event
{
const EVENT_BEFORE_REQUEST = 'beforeRequest';
const EVENT_AFTER_REQUEST = 'afterRequest';
const EVENT_BEFORE_RESEND = 'beforeResend';
const EVENT_AFTER_RESEND = 'afterResend';
protected $form;
public function __construct(Model $form, array $config = [])
{
$this->form = $form;
parent::__construct($config);
}
public function getForm()
{
return $this->form;
}
}