PHP Class Fuel\Validation\Rule\Enum

Since: 2.0
Author: Fuel Development Team
Inheritance: extends Fuel\Validation\AbstractRule
Datei anzeigen Open project: fuelphp/validation

Protected Properties

Property Type Description
$message string Contains the rule failure message
$strict boolean Strict check mode

Public Methods

Method 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 method

Check strict mode
Since: 2.0
public isStrict ( ) : boolean
return boolean

setParameter() public method

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

setStrict() public method

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

validate() public method

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
return boolean

Property Details

$message protected_oe property

Contains the rule failure message
protected string $message
return string

$strict protected_oe property

Strict check mode
protected bool $strict
return boolean