PHP Class Constraint_remote, silverstripe-zenvalidator

See readme for example
Inheritance: extends ZenValidatorConstraint
Afficher le fichier Open project: sheadawson/silverstripe-zenvalidator

Protected Properties

Свойство Type Description
$method string
$options array
$params array
$url string
$validator string

Méthodes publiques

Méthode Description
__construct ( string $url, array $params = [], string $options = true, boolean | string $validator = null )
applyParsley ( )
getDefaultMessage ( )
removeParsley ( )
validate ( $value )

Method Details

__construct() public méthode

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 méthode

public applyParsley ( )

getDefaultMessage() public méthode

public getDefaultMessage ( )

removeParsley() public méthode

public removeParsley ( )

validate() public méthode

public validate ( $value )

Property Details

$method protected_oe property

protected string $method
Résultat string

$options protected_oe property

protected array $options
Résultat array

$params protected_oe property

protected array $params
Résultat array

$url protected_oe property

protected string $url
Résultat string

$validator protected_oe property

protected string $validator
Résultat string