summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TValueTypeValidator.php
diff options
context:
space:
mode:
authorxue <>2006-02-22 02:46:25 +0000
committerxue <>2006-02-22 02:46:25 +0000
commitfceb3741d3b0c1e00e81a4a24caf7d49a86896b4 (patch)
treeb2d7f92eaacc92111701c493b91da9d882f580be /framework/Web/UI/WebControls/TValueTypeValidator.php
parent0922e304fb1d7fc2e486d7020e65e011b9f13e0d (diff)
Updated some validators and relevant demos.
Diffstat (limited to 'framework/Web/UI/WebControls/TValueTypeValidator.php')
-rw-r--r--framework/Web/UI/WebControls/TValueTypeValidator.php21
1 files changed, 18 insertions, 3 deletions
diff --git a/framework/Web/UI/WebControls/TValueTypeValidator.php b/framework/Web/UI/WebControls/TValueTypeValidator.php
index ca4a01ca..8b5d7bbc 100644
--- a/framework/Web/UI/WebControls/TValueTypeValidator.php
+++ b/framework/Web/UI/WebControls/TValueTypeValidator.php
@@ -1,14 +1,29 @@
<?php
+/**
+ * TValueTypeValidator class.
+ *
+ * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2005 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @version $Revision: $ $Date: $
+ * @package System.Web.UI.WebControls
+ */
/**
- * TRequiredValueTypeValidator class.
+ * Using TBaseValidator class
+ */
+Prado::using('System.Web.UI.WebControls.TBaseValidator');
+
+/**
+ * TValueTypeValidator class
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
* @version $Revision: $ $Date: $
* @package System.Web.UI.WebControls
* @since 3.0
*/
-class TValueTypeValidator
+class TValueTypeValidator extends TBaseValidator
{
/**
* @return string the data type that the values being compared are converted to before the comparison is made. Defaults to String.
@@ -72,7 +87,7 @@ class TValueTypeValidator
return strtotime($value) > 0;
}
return true;
- }
+ }
/**
* This method overrides the parent's implementation.