Seznam předpřipravených validátorů

Type Class Purpose
Validator::TYPE_COLOR Jet\Validator_Color Checks whether the input is a color in classic HTML / CSS format (e.g. #c9c9c9).
Validator::TYPE_DATE Jet\Validator_Date Verifies whether the input is a valid date.
Validator::TYPE_DATE_TIME Jet\Validator_DateTime Verifies whether the input is a valid date and time.
Validator::TYPE_EMAIL Jet\Validator_Email Verifies whether the input is a valid email regarding format and performs validation of MX records for the domain.
Validator::TYPE_FILE Jet\Validator_File Verifies the uploaded file (size, allowed type).
Validator::TYPE_FILE_IMAGE Jet\Validator_FileImage Verifies whether the uploaded file is an allowed image type and meets maximum size and dimensions.
Validator::TYPE_FLOAT Jet\Validator_Float Verifies whether the input is a floating-point number.
Validator::TYPE_INT Jet\Validator_Int Verifies whether the input is an integer.
Validator::TYPE_MONTH Jet\Validator_Month Verifies whether the input is a valid month number of the year.
Validator::TYPE_NULL Jet\Validator_Null Null validator - performs no validation.
Validator::TYPE_OPTION Jet\Validator_Option Verifies whether the input is one of the valid defined values.
Validator::TYPE_OPTIONS Jet\Validator_Options Verifies whether the set of input values corresponds to the set of valid values.
Validator::TYPE_PASSWORD Jet\Validator_Password Verifies password strength using Zxcvbn.
Validator::TYPE_REGEXP Jet\Validator_RegExp Verifies whether the input matches the given regular expression.
Validator::TYPE_TEL Jet\Validator_Tel Verifies whether the input is a valid phone number according to the given national conventions (Locale).
Validator::TYPE_TIME Jet\Validator_Time Verifies whether the input is a valid time specification.
Validator::TYPE_URL Jet\Validator_Url Verifies whether the input is a valid URL specification.
Validator::TYPE_WEEK Jet\Validator_Week Verifies whether the input is a valid week number of the year.
Previous chapter
Validator
Next chapter
Jet\Validator_Color