A Utility Class for Validating all kinds of data.
General order of arguments for all methods:
The string to operate on is always the first argument.
Located in /code/framework/RSValidation/RSValidation.php (line 42)
Validate | --RSValidation
Returns true if the passed argument is valid credit card number.
This method is just a simple front-end for Validate::creditCard. Thanks to Ondrej Jombik.
Returns true if the string passed as first argument ends with the string passed as second argument. Otherwise false is returned.
Returns true if the passed string contains only alpha characters.
Returns true if the passed string contains only alpha-numeric characters.
Returns true if the passed string contains only alpha-numeric characters and underscores (_)
This method is especially useful to find out if a value is avalid identifier for let's say a database object. If you want do find out just that use {@see isValidDatabaseObjectName}.
Returns true if the passed string contains only alphanumeric characters of the Western alphabets
Checks if a string contains only a subset of alphanumerics characters allowed in the Western alphabets. Useful for validation of names.
Validate date and times. The default format is YYYY-MM-DD.
This method is just a simple front-end for Validate::date. Thanks to Tomas V.V.Cox and Pierre-Alain Joye.
This method is just like RSValidation::isDate but with a default format of YYYY-MM-DD HH:MM:SS.
Returns true if the passed string is formatted as a valid e-mail adress.
This method is just a simple front-end for Validate::email. Thanks to Tomas V.V.Cox and Pierre-Alain Joye.
Returns true if the first argument is a float.
This method is just a simple front-end for Validate::number. Thanks to Tomas V.V.Cox and Pierre-Alain Joye.
Returns true if the first argument is a number of a numeric string and has the maximum and/or minumum size as specified by the second and third argument.
This method is just a simple front-end for Validate::number. Thanks to Tomas V.V.Cox and Pierre-Alain Joye.
Returns true if the passed argument is a number or a numeric string.
In fact just a nicer way to call the native function http://www.php.net/is_numeric.
An alias for isStringExt.
Returns true if the first argument is a string (http://www.php.net/is_string) and has a minimum and/or maximum length.
This method is just like RSValidation::isDate but with a default format of HH:MM:SS.
This method is just like RSValidation::isDate but with a default format of YYYYMMDDHHMMSS.
Returns true if the passed string is valid database object name.
Returns true if the passed string contains only alpha-numeric characters and underscores. {@see isAlphanumericIncludingUnderscore} is called to find that out.
Returns true if the string passed as first argument starts with the string passed as second argument. Otherwise false is returned.
Documentation generated on Mon, 8 Dec 2003 13:13:11 +0100 by phpDocumentor 1.2.3