PHP Класс ValidationLogicCriterion, silverstripe-zenvalidator

Наследование: extends Object
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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() публичный Метод

Accessor for the master field
public getMaster ( ) : string
Результат string

phpOperator() публичный Метод

public phpOperator ( )

toPHP() публичный Метод

Returns a string of php code to be evaluated
public toPHP ( ) : string
Результат string

Описание свойств

$master защищенное свойство

The name of the form field that is controlling the Validation
protected string $master
Результат string

$operator защищенное свойство

The comparison function to use, e.g. "EqualTo"
protected string $operator
Результат string

$set защищенное свойство

The parent {@link ValidationLogicCriteria}
protected ValidationLogicCriteria $set
Результат ValidationLogicCriteria

$value защищенное свойство

The value to compare to
protected mixed $value
Результат mixed