public function __construct(\CApplication $yii = null, \EventType $event_type = null)
{
if (is_null($yii)) {
$yii = \Yii::app();
}
if (is_null($event_type)) {
$event_type = $this->determineEventType();
}
$this->event_type = $event_type;
$this->yii = $yii;
}