Validator
classe Validator (Voir la source)
Traits
Propriétés
| protected bool | $fails | The Fails flag  | 
                |
| protected string | $last_message | The last name  | 
                |
| protected array | $errors | The errors list  | 
                |
| protected array | $inputs | The validation DATA  | 
                |
| protected array | $messages | The user messages  | 
                |
| protected array | $rules | Define the valid rule list  | 
                
Méthodes
Validator constructor
Set the user custom message
Détails
        
                    protected        void
    compileExists(string $key, string $masque)
        
    
    Compile Exists Rule
[exists:table,column] Check that the contents of a table field exist
        
                    protected        void
    compileNotExists(string $key, string $masque)
        
    
    Compile Not Exists Rule
[!exists:table,column] Checks that the contents of the field of a table do not exist
        
                    protected        void
    compileUnique(string $key, string $masque)
        
    
    Compile Unique Rule
[unique:table,column] Check that the contents of the field of a table is a single value
        
                    protected        void
    compileDate(string $key, string $masque)
        
    
    Compile Date Rule
[date] Check that the field's content is a valid date
        
                    protected        void
    compileDateTime(string $key, string $masque)
        
    
    Compile Date Time Rule
[datetime] Check that the contents of the field is a valid date time
        dans 
EmailRule à la ligne 20
                    protected        void
    compileEmail(string $key, string $masque)
        
    
    Compile Email Rule
[email] Check that the content of the field is an email
        dans 
NumericRule à la ligne 18
                    protected        void
    compileNumber(string $key, string $masque)
        
    
    Compile Number Rule
[number] Check that the contents of the field is a number
        dans 
NumericRule à la ligne 47
                    protected        void
    compileInt(string $key, string $masque)
        
    
    Compile Int Rule
[int] Check that the contents of the field is an integer number
        dans 
NumericRule à la ligne 76
                    protected        void
    compileFloat(string $key, string $masque)
        
    
    Compile Float Rule
[float] Check that the field content is a float number
        dans 
StringRule à la ligne 18
                    protected        void
    compileRequired(string $key, string $masque)
        
    
    Compile Required Rule
        dans 
StringRule à la ligne 49
                    protected        void
    compileEmpty(string $key, string $masque)
        
    
    Compile Empty Rule
        dans 
StringRule à la ligne 72
                    protected        void
    compileAlphaNum(string $key, string $masque)
        
    
    Compile Alphanum Rule
[alphanum] Check that the field content is an alphanumeric string
        dans 
StringRule à la ligne 101
                    protected        void
    compileIn(string $key, string $masque)
        
    
    Compile In Rule
[in:(value, ...)] Check that the contents of the field are equal to the defined value
        dans 
StringRule à la ligne 140
                    protected        void
    compileSize(string $key, string $masque)
        
    
    Compile Size Rule
[size:value] Check that the contents of the field is a number of character equal to the defined value
        dans 
StringRule à la ligne 174
                    protected        void
    compileLower(string $key, string $masque)
        
    
    Compile Lower Rule
[lower] Check that the content of the field is a string in miniscule
        dans 
StringRule à la ligne 203
                    protected        void
    compileUpper(string $key, string $masque)
        
    
    Compile Upper Rule
[upper] Check that the contents of the field is a string in uppercase
        dans 
StringRule à la ligne 232
                    protected        void
    compileAlpha(string $key, string $masque)
        
    
    Compile Alpha Rule
[alpha] Check that the field content is an alpha
        dans 
StringRule à la ligne 262
                    protected        void
    compileMin(string $key, string $masque)
        
    
    Compile Min Mask
[min:value] Check that the content of the field is a number of minimal character following the defined value
        dans 
StringRule à la ligne 297
                    protected        void
    compileMax(string $key, string $masque)
        
    
    Compile Max Rule
[max:value] Check that the content of the field is a number of maximum character following the defined value
        dans 
StringRule à la ligne 331
                    protected        void
    compileSame(string $key, string $masque)
        
    
    Compile Some Rule
[same:value] Check that the field contents are equal to the mask value
        dans 
RegexRule à la ligne 18
                    protected        void
    compileRegex(string $key, string $masque)
        
    
    Compile Regex Rule
[regex] Check that the contents of the field with a regular expression
        
                            void
    __construct()
        
    
    Validator constructor
        
                static            Validate
    make(array $inputs, array $rules, array $messages = [])
        
    
    Any possible markers.
        
                            
    setCustomMessages(array $messages)
        
    
    Set the user custom message
        
                            Validate
    validate(array $inputs, array $rules)
        
    
    Make validation