PHP Class Fuel\Validation\Rule\Enum

Since: 2.0
Author: Fuel Development Team
Inheritance: extends Fuel\Validation\AbstractRule
Afficher le fichier Open project: fuelphp/validation

Protected Properties

Свойство Type Description
$message string Contains the rule failure message
$strict boolean Strict check mode

Méthodes publiques

Méthode Description
isStrict ( ) : boolean Check strict mode
setParameter ( string $params ) Sets the value(s) and mode to check against
setStrict ( boolean $strict ) Set strict mode
validate ( mixed $value, string $field = null, array $allFields = null ) : boolean Performs validation on the given value

Method Details

isStrict() public méthode

Check strict mode
Since: 2.0
public isStrict ( ) : boolean
Résultat boolean

setParameter() public méthode

Sets the value(s) and mode to check against
Since: 2.0
public setParameter ( string $params )
$params string

setStrict() public méthode

Set strict mode
Since: 2.0
public setStrict ( boolean $strict )
$strict boolean

validate() public méthode

Performs validation on the given value
Since: 2.0
public validate ( mixed $value, string $field = null, array $allFields = null ) : boolean
$value mixed Value to validate
$field string Unused by this rule
$allFields array Unused by this rule
Résultat boolean

Property Details

$message protected_oe property

Contains the rule failure message
protected string $message
Résultat string

$strict protected_oe property

Strict check mode
protected bool $strict
Résultat boolean