PHP Class Constraint_equalto, silverstripe-zenvalidator

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

Protected Properties

Property Type Description
$targetField string

Public Methods

Method Description
__construct ( string $field )
applyParsley ( )
getDefaultMessage ( )
getTargetField ( ) : FormField
removeParsley ( )
validate ( $value )

Method Details

__construct() public method

public __construct ( string $field )
$field string the Name of the field to match

applyParsley() public method

public applyParsley ( )

getDefaultMessage() public method

public getDefaultMessage ( )

getTargetField() public method

public getTargetField ( ) : FormField
return FormField

removeParsley() public method

public removeParsley ( )

validate() public method

public validate ( $value )

Property Details

$targetField protected property

protected string $targetField
return string