PHP Class eZ\Publish\Core\FieldType\Validator\StringLengthValidator

Inheritance: extends eZ\Publish\Core\FieldType\Validator
Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Свойство Type Description
$constraints
$constraintsSchema

Méthodes publiques

Méthode Description
validate ( Value $value ) : boolean Checks if the string $value is in desired range.
validateConstraints ( $constraints )

Méthodes protégées

Méthode Description
validateConstraintsOrder ( $constraints ) : boolean Check if max string length is greater or equal than min string length in case both are set. Returns also true in case one of them is not set.

Method Details

validate() public méthode

The range is determined by $maxStringLength and $minStringLength.
public validate ( Value $value ) : boolean
$value eZ\Publish\Core\FieldType\Value
Résultat boolean

validateConstraints() public méthode

public validateConstraints ( $constraints )

validateConstraintsOrder() protected méthode

Check if max string length is greater or equal than min string length in case both are set. Returns also true in case one of them is not set.
protected validateConstraintsOrder ( $constraints ) : boolean
$constraints
Résultat boolean

Property Details

$constraints protected_oe property

protected $constraints

$constraintsSchema protected_oe property

protected $constraintsSchema