PHP Class Constraint_dimension, silverstripe-zenvalidator

Inheritance: extends ZenValidatorConstraint
Afficher le fichier Open project: sheadawson/silverstripe-zenvalidator Class Usage Examples

Protected Properties

Свойство Type Description
$type string
$val1 integer
$val2 integer

Méthodes publiques

Méthode Description
__construct ( string $type, integer $val1, integer $val2 = null ) Constructor
getDefaultMessage ( ) : string Gets the default message for the validator
validate ( Mixed $value ) : boolean Validate function called for validator.

Method Details

__construct() public méthode

Constructor
public __construct ( string $type, integer $val1, integer $val2 = null )
$type string Type of validation
$val1 integer First value
$val2 integer Second value

getDefaultMessage() public méthode

Gets the default message for the validator
public getDefaultMessage ( ) : string
Résultat string the validation message

validate() public méthode

Validate function called for validator.
public validate ( Mixed $value ) : boolean
$value Mixed the value of the field being validated.
Résultat boolean

Property Details

$type protected_oe property

protected string $type
Résultat string

$val1 protected_oe property

protected int $val1
Résultat integer

$val2 protected_oe property

protected int $val2
Résultat integer