This is the base validation class that contains some basic FormElement validation methods.
Located in /form/FormValidation.inc (line 33)
The constructor used to set the form errors object used by this class to do error text lookups
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.
This method validates a string as containing only letters and numbers
This tests a string as a valid credit card expiration date.
You can pass in an optional date delimiter string. The default is -
This validates a string as a valid Company name.
It is the same as is_name, with the exception of allowing .
This makes sure that 2 password strings are exactly alike.
This validates a string as a valid "country code" which is a 2 alphanumerical character string
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
This validates a string as a valid day of a month It has to be greater then 0 and less then 31
This validates a string as a valid month of the year between 1 and 12 inclusive is_datemonth - checks whether its a proper month
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);
See if the year is within 1800 and 3000
This method validates a string for a valid hostname for a machine.
This function validates a single email address.
It supports email addresses in the format of jane@blah.com or "Jane Doe <jane@blah.com>"
This is just a wrapper for
This method validates a string as a valid float formatted number. x.xx
This method validates a string as a number greater then 0.
no comment
This method tests a string as a valid hostname value or a valid email string
This method tries to validate a string as a valid IP address or a hostname
no comment
This is just a wrapper for is_domainname
This validates a string as an IP address This should work with either IPv4 or IPv6
This is just a wrapper for
This method validates a string as a leap year.
This function tests a string that may contain many email addresses seperated by commas
This method tests a string to make sure it is in a valid money format.
either $x or $x.cents
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
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.
This tests a string to make sure it is a valid number.
This method validates a string for a valid partial hostname for a machine.
This validates a string as a portion of an IP address.
This should work with either IPv4 or IPv6
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.
This method validates a string as a path to a file.
This method tries to validate a string as a valid price. It can't be zero (a la free!)
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, )
Validate if the string matches a regex
this method tests to see if this is a valid hostname value minus the domain name portion.
This method validates a strict url.
It is the same as is_url, except that it requires the prefix http://
This validates an array of fields as a valid time of the day
NOTE: array must contain array( "hour" => VALUE, "minutes" => VALUE, "seconds" => VALUE);
Validate if the string is a good candidate to become an Title
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]
This method validates a string as a valid url path to a file
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
Validate domain Will check if a domain is valid
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
This validates a string as a valid number between 0 and 100
This validates a string as a valid zipcode
numbers, whitespace allowed
A singleton method for only creating one instance of this per request.
A wrapper method to set the error message and error code before returning FALSE
Documentation generated on Fri, 28 Jan 2011 08:53:07 -0500 by phpDocumentor 1.4.3