From 2ecfe49532dbfc53d75a32e68df643b7af13dc1f Mon Sep 17 00:00:00 2001 From: rojaro <> Date: Mon, 13 Jul 2009 14:12:10 +0000 Subject: - Models, Behaviors ... --- framework/Base/TModelEvent.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 framework/Base/TModelEvent.php (limited to 'framework/Base/TModelEvent.php') diff --git a/framework/Base/TModelEvent.php b/framework/Base/TModelEvent.php new file mode 100644 index 00000000..1bf42a2b --- /dev/null +++ b/framework/Base/TModelEvent.php @@ -0,0 +1,30 @@ + + * @link http://www.yiiframework.com/ + * @copyright Copyright © 2008-2009 Yii Software LLC + * @license http://www.yiiframework.com/license/ + */ + +Prado::using('System.Base.TEvent'); + +/** + * CModelEvent class. + * + * CModelEvent represents the event parameters needed by events raised by a model. + * + * @author Qiang Xue + * @version $Id: CModelEvent.php 1093 2009-06-05 13:09:17Z qiang.xue $ + * @package system.base + * @since 1.0 + */ +class TModelEvent extends TEvent +{ + /** + * @var boolean whether the model is valid. Defaults to true. + * If this is set false, {@link CModel::validate()} will return false and quit the current validation process. + */ + public $isValid=true; +} -- cgit v1.2.3