Method |
Description |
|
filter_basic_tags ( string $value, array $params = null ) : string |
Filter out all HTML tags except the defined basic tags. |
|
filter_htmlencode ( string $value, array $params = null ) : string |
Sanitize the string by converting HTML characters to their HTML entities. |
|
filter_ms_word_characters ( string $value, array $params = null ) : string |
Convert MS Word special characters to web safe characters. |
|
filter_noise_words ( string $value, array $params = null ) : string |
Replace noise words in a string (http://tax.cchgroup.com/help/Avoiding_noise_words_in_your_search.htm). |
|
filter_rmpunctuation ( string $value, array $params = null ) : string |
Remove all known punctuation from a string. |
|
filter_sanitize_email ( string $value, array $params = null ) : string |
Sanitize the string by removing illegal characters from emails. |
|
filter_sanitize_floats ( string $value, array $params = null ) : string |
Sanitize the string by removing illegal characters from float numbers. |
|
filter_sanitize_numbers ( string $value, array $params = null ) : string |
Sanitize the string by removing illegal characters from numbers. |
|
filter_sanitize_string ( string $value, array $params = null ) : string |
Sanitize the string by removing any script tags. |
|
filter_urlencode ( string $value, array $params = null ) : string |
Sanitize the string by urlencoding characters. |
|
filter_whole_number ( string $value, array $params = null ) : string |
Convert the provided numeric value to a whole number. |
|
shouldRunValidation ( array $input, $rules, $field ) : boolean |
Overloadable method to invoke validation. |
|
validate_alpha ( string $field, array $input, null $param = null ) : mixed |
Determine if the provided value contains only alpha characters. |
|
validate_alpha_dash ( string $field, array $input, null $param = null ) : mixed |
Determine if the provided value contains only alpha characters with dashed and underscores. |
|
validate_alpha_numeric ( string $field, array $input, null $param = null ) : mixed |
Determine if the provided value contains only alpha-numeric characters. |
|
validate_alpha_space ( string $field, array $input, null $param = null ) : mixed |
Determine if the provided value contains only alpha numeric characters with spaces. |
|
validate_boolean ( string $field, array $input, null $param = null ) : mixed |
Determine if the provided value is a PHP accepted boolean. |
|
validate_contains ( string $field, array $input, null $param = null ) : mixed |
Verify that a value is contained within the pre-defined value set. |
|
validate_contains_list ( string $field, array $input, $param = null ) : mixed |
Verify that a value is contained within the pre-defined value set. |
|
validate_date ( string $field, string $input, null $param = null ) : mixed |
Determine if the provided input is a valid date (ISO 8601). |
|
validate_doesnt_contain_list ( string $field, array $input, $param = null ) : mixed |
Verify that a value is NOT contained within the pre-defined value set. |
|
validate_equalsfield ( string $field, string $input, string $param = null ) : mixed |
Determine if the provided field value equals current field value. |
|
validate_exact_len ( string $field, array $input, null $param = null ) : mixed |
Determine if the provided value length matches a specific value. |
|
validate_extension ( string $field, array $input, $param = null ) : mixed |
check the uploaded file for extension
for now checks onlt the ext should add mime type check. |
|
validate_float ( string $field, array $input, null $param = null ) : mixed |
Determine if the provided value is a valid float. |
|
validate_guidv4 ( string $field, string $input, string $param = null ) : mixed |
Determine if the provided field value is a valid GUID (v4) |
|
validate_iban ( string $field, array $input, $param = null ) : mixed |
Determine if the provided value is a valid IBAN. |
|
validate_integer ( string $field, array $input, null $param = null ) : mixed |
Determine if the provided value is a valid integer. |
|
validate_max_len ( string $field, array $input, null $param = null ) : mixed |
Determine if the provided value length is less or equal to a specific value. |
|
validate_max_numeric ( string $field, array $input, null $param = null ) : mixed |
Determine if the provided numeric value is lower or equal to a specific value. |
|
validate_min_age ( string $field, string $input, string $param = null ) : mixed |
Determine if the provided input meets age requirement (ISO 8601). |
|
validate_min_len ( string $field, array $input, null $param = null ) : mixed |
Determine if the provided value length is more or equal to a specific value. |
|
validate_min_numeric ( string $field, array $input, null $param = null ) : mixed |
Determine if the provided numeric value is higher or equal to a specific value. |
|
validate_numeric ( string $field, array $input, null $param = null ) : mixed |
Determine if the provided value is a valid number or numeric string. |
|
validate_phone_number ( string $field, array $input, $param = null ) : mixed |
Determine if the provided value is a valid phone number. |
|
validate_regex ( string $field, array $input, $param = null ) : mixed |
Custom regex validator. |
|
validate_required ( string $field, array $input, null $param = null ) : mixed |
Check if the specified key is present and not empty. |
|
validate_required_file ( string $field, array $input, $param = null ) : mixed |
checks if a file was uploaded. |
|
validate_starts ( string $field, array $input, $param = null ) : mixed |
Determine if the provided value starts with param. |
|
validate_street_address ( string $field, array $input, $param = null ) : mixed |
Determine if the provided input is likely to be a street address using weak detection. |
|
validate_url_exists ( string $field, array $input, null $param = null ) : mixed |
Determine if a URL exists & is accessible. |
|
validate_valid_cc ( string $field, array $input, $param = null ) : mixed |
Determine if the input is a valid credit card number. |
|
validate_valid_email ( string $field, array $input, null $param = null ) : mixed |
Determine if the provided email is valid. |
|
validate_valid_ip ( string $field, array $input, $param = null ) : mixed |
Determine if the provided value is a valid IP address. |
|
validate_valid_ipv4 ( $field, $input, $param = null ) |
*
What about private networks? http://en.wikipedia.org/wiki/Private_network
What about loop-back address? 127.0.0.1 |
|
validate_valid_ipv6 ( string $field, array $input, $param = null ) : mixed |
Determine if the provided value is a valid IPv6 address. |
|
validate_valid_json_string ( string $field, array $input, $param = null ) : mixed |
Json validatior. |
|
validate_valid_name ( string $field, array $input, $param = null ) : mixed |
Determine if the input is a valid human name [Credits to http://github.com/ben-s]. |
|
validate_valid_url ( string $field, array $input, null $param = null ) : mixed |
Determine if the provided value is a valid URL. |
|