Static validation functions.
This class provides static validation functions. Each of these functions checks for some properties in the fields it is fed. If the specified fields don't match these requirements, the function returns an error message. Otherwise, it returns false.
Located in /ecdValidation.inc.php (line 40)
check if the given value exists and is not empty
since we cannot use empty() (which returns true on zero), we need a more specific function.
Check for missing fields.
Block-checks $all_fields, an associative array of $field => $value, for empty/unset values. Optionaly, a restricted list of fields might be provided in $mandatory_fields as a list
Verify if a email is valid.
Verifies if email $field is valid and that it is an email to somebody in bluestar.
Check if mandatory fields are present
Block-checks $all_fields, an associative array of $field => $value, for empty/unset values. Optionaly, a restricted list of fields might be provided in $mandatory_fields as an associative array of $field => $name.
Verifies if the given password is ok. Optionaly, you might provide a confirmation password.
Verifies if the specified phone number is valid.
Validates quantity for a product or openbox item. Optionaly, you might provide a max. quantity.
Documentation generated on Tue, 11 Jan 2005 01:38:24 -0500 by phpDocumentor 1.3.0RC3