PHP 클래스 ValidationLogicCriterion, silverstripe-zenvalidator

상속: extends Object
파일 보기 프로젝트 열기: sheadawson/silverstripe-zenvalidator 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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