Пример #1
0
 /**
  * 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);
 }
Пример #2
0
 /**
  * @param string $errorMessage The error message display in the form.
  */
 public function __construct($errorMessage = 'invalid input')
 {
     parent::__construct($errorMessage);
 }
Пример #3
0
 /**
  * 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;
 }
Пример #4
0
 /**
  * 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;
 }
Пример #5
0
 /**
  * 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;
 }
Пример #6
0
 /**
  * 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);
 }
Пример #7
0
 /**
  * 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);
 }
Пример #8
0
 /**
  * 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;
 }
Пример #9
0
 /**
  * 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;
 }