Changeset 575 for trunk/lib/Validator.inc.php
- Timestamp:
- Feb 27, 2017 2:16:03 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Validator.inc.php
r550 r575 62 62 * @return bool true if form is not empty, false otherwise. 63 63 */ 64 static public function notEmpty($val, $type=LOG_ NOTICE, $file=null, $line=null)64 static public function notEmpty($val, $type=LOG_DEBUG, $file=null, $line=null) 65 65 { 66 66 $app =& App::getInstance(); … … 92 92 * @return bool true if form is empty, false otherwise. 93 93 */ 94 static public function isEmpty($val, $type=LOG_ NOTICE, $file=null, $line=null)94 static public function isEmpty($val, $type=LOG_DEBUG, $file=null, $line=null) 95 95 { 96 96 return !self::notEmpty($val, $type, $file, $line); … … 106 106 * @return bool true if form is a string, false otherwise. 107 107 */ 108 static public function isString($val, $type=LOG_ NOTICE, $file=null, $line=null)108 static public function isString($val, $type=LOG_DEBUG, $file=null, $line=null) 109 109 { 110 110 $app =& App::getInstance(); … … 126 126 * @return bool True if no errors found, false otherwise. 127 127 */ 128 static public function isNumber($val, $type=LOG_ NOTICE, $file=null, $line=null)128 static public function isNumber($val, $type=LOG_DEBUG, $file=null, $line=null) 129 129 { 130 130 $app =& App::getInstance(); … … 147 147 * @return bool true if value is an integer 148 148 */ 149 static public function isInteger($val, $negative_ok=false, $type=LOG_ NOTICE, $file=null, $line=null)149 static public function isInteger($val, $negative_ok=false, $type=LOG_DEBUG, $file=null, $line=null) 150 150 { 151 151 $app =& App::getInstance(); … … 171 171 * @return bool true if value is a float 172 172 */ 173 static public function isFloat($val, $negative_ok=false, $type=LOG_ NOTICE, $file=null, $line=null)173 static public function isFloat($val, $negative_ok=false, $type=LOG_DEBUG, $file=null, $line=null) 174 174 { 175 175 $app =& App::getInstance(); … … 197 197 * @return bool true if value is a float 198 198 */ 199 static public function isDecimal($val, $max=10, $dec=2, $negative_ok=false, $type=LOG_ NOTICE, $file=null, $line=null)199 static public function isDecimal($val, $max=10, $dec=2, $negative_ok=false, $type=LOG_DEBUG, $file=null, $line=null) 200 200 { 201 201 $app =& App::getInstance(); … … 228 228 * @return bool true if value is a float 229 229 */ 230 static public function isArray($val, $type=LOG_ NOTICE, $file=null, $line=null)230 static public function isArray($val, $type=LOG_DEBUG, $file=null, $line=null) 231 231 { 232 232 $app =& App::getInstance(); … … 251 251 * @return bool true if value passes regex test 252 252 */ 253 static public function checkRegex($val, $regex, $valid_on_match=true, $type=LOG_ NOTICE, $file=null, $line=null)253 static public function checkRegex($val, $regex, $valid_on_match=true, $type=LOG_DEBUG, $file=null, $line=null) 254 254 { 255 255 $app =& App::getInstance(); … … 273 273 * @return bool true if string length is within given boundaries 274 274 */ 275 static public function stringLength($val, $min, $max, $type=LOG_ NOTICE, $file=null, $line=null)275 static public function stringLength($val, $min, $max, $type=LOG_DEBUG, $file=null, $line=null) 276 276 { 277 277 $app =& App::getInstance(); … … 295 295 * @return bool True if no errors found, false otherwise. 296 296 */ 297 static public function numericRange($val, $min, $max, $type=LOG_ NOTICE, $file=null, $line=null)297 static public function numericRange($val, $min, $max, $type=LOG_DEBUG, $file=null, $line=null) 298 298 { 299 299 $app =& App::getInstance(); … … 324 324 * @author Quinn Comendant <quinn@strangecode.com> 325 325 */ 326 static public function validateEmail($val, $strict=false, $type=LOG_ NOTICE, $file=null, $line=null)326 static public function validateEmail($val, $strict=false, $type=LOG_DEBUG, $file=null, $line=null) 327 327 { 328 328 $app =& App::getInstance(); … … 374 374 * @return bool true if no errors found, false otherwise 375 375 */ 376 static public function validatePhone($val, $type=LOG_ NOTICE, $file=null, $line=null)376 static public function validatePhone($val, $type=LOG_DEBUG, $file=null, $line=null) 377 377 { 378 378 $app =& App::getInstance(); … … 398 398 * @return bool True if no errors found, false otherwise. 399 399 */ 400 static public function validateStrDate($val, $type=LOG_ NOTICE, $file=null, $line=null)400 static public function validateStrDate($val, $type=LOG_DEBUG, $file=null, $line=null) 401 401 { 402 402 $app =& App::getInstance(); … … 428 428 * @since 19 May 2015 09:57:27 429 429 */ 430 static public function isEmptyDate($val, $type=LOG_ NOTICE, $file=null, $line=null)430 static public function isEmptyDate($val, $type=LOG_DEBUG, $file=null, $line=null) 431 431 { 432 432 $app =& App::getInstance(); … … 450 450 * @return bool True if no errors found, false otherwise. 451 451 */ 452 static public function validateCCNumber($val, $cc_type=null, $type=LOG_ NOTICE, $file=null, $line=null)452 static public function validateCCNumber($val, $cc_type=null, $type=LOG_DEBUG, $file=null, $line=null) 453 453 { 454 454 $app =& App::getInstance(); … … 529 529 * @return bool True if no errors found, false otherwise. 530 530 */ 531 static public function fileUploaded($form_name, $type=LOG_ NOTICE, $file=null, $line=null)531 static public function fileUploaded($form_name, $type=LOG_DEBUG, $file=null, $line=null) 532 532 { 533 533 $app =& App::getInstance(); … … 568 568 * @since 20 Aug 2014 14:44:23 569 569 */ 570 static public function fileUploadSize($form_name, $type=LOG_ NOTICE, $file=null, $line=null)570 static public function fileUploadSize($form_name, $type=LOG_DEBUG, $file=null, $line=null) 571 571 { 572 572 $app =& App::getInstance();
Note: See TracChangeset
for help on using the changeset viewer.