PHP Class ValidationLogicCriterion, silverstripe-zenvalidator

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

Protected Properties

Свойство Type Description
$master string The name of the form field that is controlling the Validation
$operator string The comparison function to use, e.g. "EqualTo"
$set ValidationLogicCriteria The parent {@link ValidationLogicCriteria}
$value mixed The value to compare to

Méthodes publiques

Méthode Description
__construct ( string $master, string $operator, string $value, ValidationLogicCriteria $set ) Constructor
getMaster ( ) : string Accessor for the master field
phpOperator ( )
toPHP ( ) : string Returns a string of php code to be evaluated

Method Details

__construct() public méthode

Constructor
public __construct ( string $master, string $operator, string $value, ValidationLogicCriteria $set )
$master string The name of the master field
$operator string The name of the comparison function
$value string The value to compare to
$set ValidationLogicCriteria The parent criteria set

getMaster() public méthode

Accessor for the master field
public getMaster ( ) : string
Résultat string

phpOperator() public méthode

public phpOperator ( )

toPHP() public méthode

Returns a string of php code to be evaluated
public toPHP ( ) : string
Résultat string

Property Details

$master protected_oe property

The name of the form field that is controlling the Validation
protected string $master
Résultat string

$operator protected_oe property

The comparison function to use, e.g. "EqualTo"
protected string $operator
Résultat string

$set protected_oe property

The parent {@link ValidationLogicCriteria}
protected ValidationLogicCriteria $set
Résultat ValidationLogicCriteria

$value protected_oe property

The value to compare to
protected mixed $value
Résultat mixed