This is the base validation class that contains some basic FormElement validation methods.
Located in Program_Root/form/FormValidation.inc (line 33)
The constructor used to set the form errors object used by this class to do error text lookups
object
This method checks to make sure an array doesn't have an empty element.
This method returns the error code from the last validation error found.
This method returns the error message from the last validation error found.
This function checks if the given string contains alphabetical characters or numbers.
It also checks for the allowed additional characters.
- the string to check
- list of individual characters to allow besides a-zA-Z
This method validates a string as containing only letters and numbers
- the value to validate
This tests a string as a valid credit card expiration date.
You can pass in an optional date delimiter string. The default is -
- the value to validate
This validates a string as a valid Company name.
It is the same as is_name, with the exception of allowing .
- the value to validate
This makes sure that 2 password strings are exactly alike.
- the value to validate
This validates a string as a valid "country code" which is a 2 alphanumerical character string
- the value to validate
This validates a atring as a valid date format You can provide a seperator string that seperates the fields
NOTE: date is in YYYY-MO-DY format
- the value to validate
This validates a string as a valid day of a month It has to be greater then 0 and less then 31
- the value to validate
This validates a string as a valid month of the year between 1 and 12 inclusive is_datemonth - checks whether its a proper month
- the value to validate
This validates an array of values as a valid date time
NOTE: array must contain array( "month" => VALUE, "day" => VALUE, "year" => VALUE, "hour" => VALUE, "minutes" => VALUE, "seconds" => VALUE);
- the value to validate
See if the year is within 1800 and 3000
- the value to validate
This method validates a string for a valid hostname for a machine.
- the value to validate
This function validates a single email address.
It supports email addresses in the format of jane@blah.com or "Jane Doe <jane@blah.com>"
- the value to validate
This is just a wrapper for
- the value to validate
This method validates a string as a valid float formatted number. x.xx
- the value to validate
This method validates a string as a number greater then 0.
- the value to validate
no comment
This method tests a string as a valid hostname value or a valid email string
- the value to validate
This method tries to validate a string as a valid IP address or a hostname
- the value to validate
no comment
This is just a wrapper for is_domainname
- the value to validate
This validates a string as an IP address This should work with either IPv4 or IPv6
- the value to validate
This is just a wrapper for
- the value to validate
This method validates a string as a leap year.
- the value to validate
This function tests a string that may contain many email addresses seperated by commas
- the value to validate
This method tests a string to make sure it is in a valid money format.
either $x or $x.cents
- the value to validate
This validates a string as a valid proper name.
The string can't be longer then VALIDATE_MAXSIZE in length, and it can only contain letters and numbers
- the value to validate
This function makes sure the data is not empty
This function checks if the given string contains numerical digit characters.
It also checks for the allowed additional characters.
- the string to check
- list of individual characters to allow besides a-zA-Z
This tests a string to make sure it is a valid number.
- the value to validate
This method validates a string for a valid partial hostname for a machine.
- the value to validate
This validates a string as a portion of an IP address.
This should work with either IPv4 or IPv6
- the value to validate
This tries to validate a string as a password It can't be empty and has to be less then VALIDATE_MAXSIZE characters in length
NOTE: password is case sensitive, and spaces are ignored.
- the value to validate
This method validates a string as a path to a file.
- the value to validate
This method tries to validate a string as a valid price. It can't be zero (a la free!)
- the value to validate
is_range
This is the range check that the can be used in checks_array. Valarray should be: array('val' => $val, 'size' => $size OPTIONAL 'min' => $min, 'max' => $max, )
this method tests to see if this is a valid hostname value minus the domain name portion.
- the value to validate
This method validates a strict url.
It is the same as is_url, except that it requires the prefix http://
- the value to validate
This validates an array of fields as a valid time of the day
NOTE: array must contain array( "hour" => VALUE, "minutes" => VALUE, "seconds" => VALUE);
- the value to validate
Validate if the string is a good candidate to become an Title
- the value to validate
This method validates a string as a valid url It inclues the prefix, hostname/ip, port number and path.
NOTE: format is in [http://] hostip [:port number] [path]
- the value to validate
This method validates a string as a valid url path to a file
- the value to validate
This method tests to see if a string value
is a valid 'account' name. The string can't be larger then VALIDATE_MAXSIZE, and can only contain alphanum characters
- the value to validate
Validate domain Will check if a domain is valid
- the value to validate
This method makes sure a value lies within a given range of values.
The error message can be customized by passing in a customer error code
- the value u want to check
- the size
- the lower bound value
- the upper bound value
- the error code if any
This validates a string as a valid number between 0 and 100
- the value to validate
This validates a string as a valid zipcode
numbers, whitespace allowed
- the value to validate
A wrapper method to set the error message and error code before returning FALSE
- error code
Documention generated on Thu, 31 Jul 2003 18:32:45 -0700 by phpDocumentor 1.2.0