메소드 |
설명 |
|
getAttributes ( string $attributes ) : array |
Return the defined attributes. |
|
ksesAllowedHtml ( array $attributes ) : array |
Set the allowed HTML tags for kses validation. |
|
parseRule ( string $rule ) : array |
Parse validation rule and return an array containing the rule and its attributes. |
|
validate_alnum ( string $data, array $attributes = [] ) : string |
Validate a value with alphanumeric characters. |
|
validate_alpha ( string $data, array $attributes = [] ) : string |
Validate a value with only alphabetic characters. |
|
validate_bool ( string $data, array $attributes = [] ) : string |
Validate a boolean value. |
|
validate_color ( string $data, array $attributes = [] ) : string |
Validate a color hexadecimal value. |
|
validate_email ( string $data, array $attributes = [] ) : string |
Validate an email value. |
|
validate_file ( string $data, array $attributes = [] ) : string |
Validate a file extension. |
|
validate_hex ( string $data, array $attributes = [] ) : string |
Validate an hexadecimal value. |
|
validate_html ( string $data, array $attributes = [] ) : string |
Encode a HTML value. |
|
validate_kses ( string $data, array $attributes = [] ) : string |
Strips Evil Scripts. |
|
validate_max ( string $data, array $attributes = [] ) : string |
Validate a MAX length of string. |
|
validate_min ( string $data, array $attributes = [] ) : string |
Validate a MIN length of string. |
|
validate_negnum ( string $data, array $attributes = [] ) : string |
Validate a negative full number. |
|
validate_num ( string $data, array $attributes = [] ) : string |
Validate a value with only numeric characters. |
|
validate_required ( string | array $data, array $attributes = [] ) : string | array |
Validate a required data. |
|
validate_textarea ( string $data, array $attributes = [] ) : string |
Encode a textarea value. |
|
validate_textfield ( string $data, array $attributes = [] ) : string |
Validate a text field value. |
|
validate_url ( string $data, array $attributes = [] ) : string |
Validate a URL value. |
|