PHP Class Constraint_check, silverstripe-zenvalidator

Inheritance: extends ZenValidatorConstraint
Show file Open project: sheadawson/silverstripe-zenvalidator

Protected Properties

Property Type Description
$type string
$val1
$val2

Public Methods

Method Description
__construct ( string $type, integer $val1, integer $val2 = null )
applyParsley ( )
getConstraintName ( )
getDefaultMessage ( )
removeParsley ( )
validate ( $value )

Method Details

__construct() public method

public __construct ( string $type, integer $val1, integer $val2 = null )
$type string (min,max,check)
$val1 integer
$val2 integer

applyParsley() public method

public applyParsley ( )

getConstraintName() public method

public getConstraintName ( )

getDefaultMessage() public method

public getDefaultMessage ( )

removeParsley() public method

public removeParsley ( )

validate() public method

public validate ( $value )

Property Details

$type protected property

protected string $type
return string

$val1 protected property

protected $val1

$val2 protected property

protected $val2