From be5214b57629e35d163c5fc658f371c0c74e95bf Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Tue, 29 Nov 2011 02:42:42 +0000 Subject: [PATCH] * add checkGT() method. --- lib/filter/filter.class.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/filter/filter.class.php b/lib/filter/filter.class.php index 19faaa4ed3..7948256a45 100755 --- a/lib/filter/filter.class.php +++ b/lib/filter/filter.class.php @@ -229,6 +229,20 @@ class validater return $var == $value; } + /** + * Must greate than a value. + * + * @param mixed $var + * @param mixed $value + * @static + * @access public + * @return bool + */ + public static function checkGT($var, $value) + { + return $var > $value; + } + /** * Call a function to check it. *