PHP Class Constraint_words, silverstripe-zenvalidator

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

Protected Properties

Property Type Description
$type type
$val1 integer
$val2 integer

Public Methods

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

Method Details

__construct() public method

public __construct ( string $type, integer $val1, integer $val2 = null )
$type string type of validation
$val1 integer number of words
$val2 integer maximum number of words

applyParsley() public method

public applyParsley ( )

getDefaultMessage() public method

public getDefaultMessage ( )

removeParsley() public method

public removeParsley ( )

validate() public method

public validate ( $value )

Property Details

$type protected property

protected type $type
return type

$val1 protected property

protected int $val1
return integer

$val2 protected property

protected int $val2
return integer