/** * Create the rule. * * @param string $errorMessage The error message display in the form. */ public function __construct($errorMessage = 'you did not enter a valid date') { parent::__construct($errorMessage); }
/** * @param string $errorMessage The error message display in the form. */ public function __construct($errorMessage = 'invalid input') { parent::__construct($errorMessage); }
/** * Create the rule * * @param array $validationRules the validation rules to join with or. * @param string $errorMessage The error message display in the form. */ public function __construct(array $validationRules, $errorMessage = 'invalid input') { parent::__construct($errorMessage); $this->_validationRules = $validationRules; }
/** * Create the rule. * @param integer $max the maximum valid length to validate the data agains * @param string $errorMessage The error message display in the form. */ public function __construct($min, $errorMessage = 'invalid input') { parent::__construct($errorMessage); $this->_minLength = $min; }
/** * Create the rule * * @param number $max the maximum valid size to validate the data agains * @param string $errorMessage The error message display in the form. */ public function __construct($max, $errorMessage = 'invalid input') { parent::__construct($errorMessage); $this->_maxValue = $max; }
/** * Create the rule * * @param string $errorMessage The error message display in the form. */ public function __construct($errorMessage = 'you did not enter a valid email address') { parent::__construct($errorMessage); }
/** * Create the rule * * @param string $errorMessage The error message display in the form. */ public function __construct($errorMessage = 'you did not enter a valid phone number') { parent::__construct($errorMessage); }
/** * Create the rule * @param array $options the valid value for the data * @param string $errorMessage The error message display in the form. */ public function __construct(array $options, $errorMessage = 'invalid input') { parent::__construct($errorMessage); $this->_options = $options; }
/** * Create the rule * * @param string $value the value the data must be to be valid * @param string $errorMessage The error message display in the form. */ public function __construct($value, $errorMessage = 'invalid input') { parent::__construct($errorMessage); $this->_value = $value; }