summaryrefslogtreecommitdiff
path: root/framework/Base/TModelEvent.php
diff options
context:
space:
mode:
authorrojaro <>2009-07-13 14:12:10 +0000
committerrojaro <>2009-07-13 14:12:10 +0000
commit2ecfe49532dbfc53d75a32e68df643b7af13dc1f (patch)
tree6d0a0ca67e1e0cdd1c2ff9403bfb760abb87d61c /framework/Base/TModelEvent.php
parent78af2b4630ccde4b03659a259f739f83ae0de9ec (diff)
- Models, Behaviors ...
Diffstat (limited to 'framework/Base/TModelEvent.php')
-rw-r--r--framework/Base/TModelEvent.php30
1 files changed, 30 insertions, 0 deletions
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 @@
+<?php
+/**
+ * CModelEvent class file.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @link http://www.yiiframework.com/
+ * @copyright Copyright &copy; 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 <qiang.xue@gmail.com>
+ * @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;
+}