1: <?php
2: /**
3: * CModelEvent class file.
4: *
5: * @author Qiang Xue <qiang.xue@gmail.com>
6: * @link http://www.yiiframework.com/
7: * @copyright 2008-2013 Yii Software LLC
8: * @license http://www.yiiframework.com/license/
9: */
10:
11:
12: /**
13: * CModelEvent class.
14: *
15: * CModelEvent represents the event parameters needed by events raised by a model.
16: *
17: * @author Qiang Xue <qiang.xue@gmail.com>
18: * @package system.base
19: * @since 1.0
20: */
21: class CModelEvent extends CEvent
22: {
23: /**
24: * @var boolean whether the model is in valid status and should continue its normal method execution cycles. Defaults to true.
25: * For example, when this event is raised in a {@link CFormModel} object that is executing {@link CModel::beforeValidate},
26: * if this property is set false by the event handler, the {@link CModel::validate} method will quit after handling this event.
27: * If true, the normal execution cycles will continue, including performing the real validations and calling
28: * {@link CModel::afterValidate}.
29: */
30: public $isValid=true;
31: }
32: