Class CEvent
CEvent is the base class for all event classes.
It encapsulates the parameters associated with an event. The CEvent::$sender
property describes who raises the event. And the CEvent::$handled
property
indicates if the event is handled. If an event handler sets CEvent::$handled
to
true, those handlers that are not invoked yet will not be invoked anymore.
- CComponent
- CEvent
Direct known subclasses
CConsoleCommandEvent, CErrorEvent, CExceptionEvent, CMissingTranslationEvent, CModelEvent, COutputEvent
Package: system\base
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/base/CComponent.php
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/base/CComponent.php
public
|
public
object
|
$sender |
|
#
the sender of this event |
public
boolean
|
$handled | false |
#
whether the event is handled. Defaults to false. When a handler sets this true, the rest of the uninvoked event handlers will not be invoked anymore. |
public
mixed
|
$params |
|
#
additional event parameters. |