PHP 클래스 Constraint_remote, silverstripe-zenvalidator

See readme for example
상속: extends ZenValidatorConstraint
파일 보기 프로젝트 열기: sheadawson/silverstripe-zenvalidator

보호된 프로퍼티들

프로퍼티 타입 설명
$method string
$options array
$params array
$url string
$validator string

공개 메소드들

메소드 설명
__construct ( string $url, array $params = [], string $options = true, boolean | string $validator = null )
applyParsley ( )
getDefaultMessage ( )
removeParsley ( )
validate ( $value )

메소드 상세

__construct() 공개 메소드

public __construct ( string $url, array $params = [], string $options = true, boolean | string $validator = null )
$url string - the url to call via ajax
$params array - request vars
$options string - array of options like { "type": "POST", "dataType": "jsonp", "data": { "token": "value" } }
$validator boolean | string - custom validator or "reverse" By default, all 2xx ajax returs are considered valid, all others failure. You can show frontend server-side specific error messages by returning a 404 error with the error message in the body of the response

applyParsley() 공개 메소드

public applyParsley ( )

getDefaultMessage() 공개 메소드

public getDefaultMessage ( )

removeParsley() 공개 메소드

public removeParsley ( )

validate() 공개 메소드

public validate ( $value )

프로퍼티 상세

$method 보호되어 있는 프로퍼티

protected string $method
리턴 string

$options 보호되어 있는 프로퍼티

protected array $options
리턴 array

$params 보호되어 있는 프로퍼티

protected array $params
리턴 array

$url 보호되어 있는 프로퍼티

protected string $url
리턴 string

$validator 보호되어 있는 프로퍼티

protected string $validator
리턴 string