| 
				 public static
				
				
				 | 
			#
			isEmail( string $str, boolean $check_record = true )
				
Checks if the given string is a valid email address 
				
Checks if the given string is a valid email address Parameters
						$strstring$str The string to test
$check_recordboolean$check_record True to check DNS/MX record
Retrun
							boolean True if the email is valid, false otherwise
 | 
		
			| 
				 public static
				boolean
				
				 | 
			#
			isEmpty( string $str )
				
Checks if the given string is empty or otherwise not set 
				
Checks if the given string is empty or otherwise not set Parameters
						$strstring$str The string to test
Returns
						booleanTrue if the string is empty or not set, false otherwise
 
 | 
		
			| 
				 public static
				boolean
				
				 | 
			#
			isPassword( string $str, integer $min_length = 6, string $type = "any", string $custom_regex = null )
				
Tests whether the given string meets the requirements to be considered a
password 
				
Tests whether the given string meets the requirements to be considered a
password Parameters
						$strstring$str The string to test
$min_lengthinteger$min_length The minimum length of the string
$typestring$type Types include "any", "any_no_space", "alpha_num", "alpha", "num", and
"custom"
$custom_regexstring$custom_regex Used when $type is set to "custom". Does not use $min_length, any
length requirement must be included in the regex
Returns
						booleanTrue if it meets the given requirements, false otherwise
 
 | 
		
			| 
				 public static
				boolean
				
				 | 
			#
			isDate( string $str, mixed $min = null, mixed $max = null )
				
Tests whether the given string is considered a valid date suitable to
strtotime() 
				
Tests whether the given string is considered a valid date suitable to
strtotime() Parameters
						$strstring$str The string to test
$minmixed$min The minimum acceptable date (string) or unix time stamp (int)
$maxmixed$min The maximum acceptable date (string) or unix time stamp (int)
Returns
						booleanTrue if $str is a valid date, false otherwise
 
 | 
		
			| 
				 public static
				boolean
				
				 | 
			#
			matches( string $str, string $regex )
				
Tests wether the given string satisfies the given regular expression 
				
Tests wether the given string satisfies the given regular expression Parameters
						$strstring$str The string to test
$regexstring$regex The regular expression to satisfy
Returns
						booleanTrue when the string passes the regex, false otherwise
 
 | 
		
			| 
				 public static
				boolean
				
				 | 
			#
			compares( mixed $a, string $op, mixed $b )
				
Tests how the given values compare 
				
Tests how the given values compare Parameters
						$amixed$a The value to compare
$opstring$op The comparison operator: >, <, >=, <=, ==, ===, !=, !==
$bmixed$b The value to compare against
Returns
						booleanTrue if $a validates $op against $b, false otherwise
 
 Throws
						ExceptionThrown when an unrecognized operator, $op, is given
					 | 
		
			| 
				 public static
				boolean
				
				 | 
			#
			between( mixed $val, mixed $min, mixed $max, boolean $inclusive = true )
				
Tests that $val is between $min and $max 
				
Tests that $val is between $min and $max Parameters
						$valmixed$val The value to compare
$minmixed$min The lower value to compare against
$maxmixed$max The higher value to compare against
$inclusiveboolean$inclusive Set to false if $val must be strictly between $min and $max
Returns
						booleanTrue if $val is between $min and $max, false otherwise
 
 | 
		
			| 
				 public static
				boolean
				
				 | 
			#
			minLength( string $str, integer $length )
				
Test whether $str is at least $length bytes 
				
Test whether $str is at least $length bytes Parameters
						$strstring$str The string to check
$lengthinteger$length The number of bytes required in $str
Returns
						booleanTrue if $str is at least $length bytes
 
 | 
		
			| 
				 public static
				boolean
				
				 | 
			#
			maxLength( string $str, integer $length )
				
Test whether $str is no more than $length bytes 
				
Test whether $str is no more than $length bytes Parameters
						$strstring$str The string to check
$lengthinteger$length The number of bytes allowed in $str
Returns
						booleanTrue if $str is no more than $length bytes
 
 | 
		
			| 
				 public static
				boolean
				
				 | 
			#
			betweenLength( string $str, integer $min_length, integer $max_length )
				
Test whether $str is between $min_length and $max_length 
				
Test whether $str is between $min_length and $max_length Parameters
						$strstring$str The string to check
$min_lengthinteger$min_length The number of bytes required in $str
$max_lengthinteger$max_length The number of bytes allowed in $str
Returns
						booleanTrue if $str is between $min_length and $max_length
 
 | 
		
			| 
				 public 
				
				
				 | 
			#
			setRules( array $rules )
				
Set rules, overriding any existing rules set and empting any existing
errors 
				
Set rules, overriding any existing rules set and empting any existing
errors Parameters
						$rulesarray$rules A multi-deminsional array, where the 1st dimension is the index value of
the data given to Input::validates()
See | 
		
			| 
				 public 
				
				
				 | 
			#
			processValidation( mixed & $value, string $key, array $var, integer $max_depth = null, integer $cur_depth = 0, array $path = array() )
				
Invokes Input::validateRule() to process the rule against the given value.
This method formatted for use by array_walk_recusrive to process elements
recusively. 
				
Invokes Input::validateRule() to process the rule against the given value.
This method formatted for use by array_walk_recusrive to process elements
recusively. Parameters
						$valuemixed$value The value to evaluate
$keystring$key The most immediate key to the given value
$vararray$var An array containing the full string index of the rule to evaluate ('index')
and the complete rule ('rule')
$max_depthinteger$max_depth The maximum depth to travel
$cur_depthinteger$cur_depth The current depth traveled
$patharray$path A list of all array indexes encountered
 | 
		
			| 
				 public 
				boolean
				
				 | 
			#
			validates( array & $data )
				
Validates all set rules using the given data, sets any error messages to
Input::$errors Each ruleset attached to a field can have the following indices:
rule, message, negate, last, final, pre_format, post_format 
				
Validates all set rules using the given data, sets any error messages to
Input::$errors Each ruleset attached to a field can have the following indices:
rule, message, negate, last, final, pre_format, post_format pre_format and post_format accept a typical PHP callback parameter,
post_format will only be called if the rule passes validation Parameters
						$dataarray$data An array of data such as POST
Returns
						booleantrue if all rules pass, false if any rule is broken
 
 See | 
		
			| 
				 public 
				
				
				 | 
			#
			setErrors( array $errors )
				
Sets the given errors into the object, overriding existing errors (if
any) 
				
Sets the given errors into the object, overriding existing errors (if
any) Parameters
						$errorsarray$errors An array of errors as returned by Input::errors()
See | 
		
			| 
				 public 
				mixed
				
				 | 
			#
			errors( )
				
Return all errors Returns
						mixedAn array of error messages indexed as their field name, boolean false if no
errors set
 
 |