package Gems
subpackage Validate
copyright Copyright (c) 2015 Erasmus MC
license New BSD License
since Class available since version 1.7.1 8-mei-2015 19:55:39

 Methods

__construct()

__construct($minField, $minUnit, $maxUnit, $message) 

Parameters

$minField

$minUnit

$maxUnit

$message

Defined by \Zend_Validate_Interface

isValid(mixed $value, $context = array()) : boolean

Returns true if and only if a token has been set and the provided value matches that token.

Parameters

$value

mixed

$context

Returns

boolean

 Properties

 

$_messageTemplates

$_messageTemplates 

Default

array(self::DIRECTION_NEG => "End difference must earlier than start difference.", self::DIRECTION_POS => "End difference must later than start difference.")
 

$_minField

$_minField 

Default

 Constants

 

Error codes

DIRECTION_NEG = 'dirNeg' 
const string
 

DIRECTION_POS

DIRECTION_POS = 'dirPos'