예제 #1
0
 /**
  * Construtor
  * 
  * @param string $field
  * @param string $errorMessage
  * @param float $min
  * @param float $max
  * @author Hugo Ferreira da Silva
  */
 public function __construct($field, $errorMessage, $min = null, $max = null)
 {
     parent::__construct($field, $errorMessage);
     $this->min = $min;
     $this->max = $max;
 }
예제 #2
0
 /**
  * Construtor
  * 
  * @param string $field
  * @param string $errorMessage
  * @param string $minDate
  * @param string $maxDate
  * @author Hugo Ferreira da Silva
  */
 public function __construct($field, $errorMessage, $minDate = null, $maxDate = null)
 {
     parent::__construct($field, $errorMessage);
     $this->minDate = $minDate;
     $this->maxDate = $maxDate;
 }
예제 #3
0
 /**
  * Construtor
  * 
  * @param string $field
  * @param string $errorMessage
  * @param mixed $callback
  * @author Hugo Ferreira da Silva
  * @see Lumine_Validator_AbstractValidator::__construct()
  */
 public function __construct($field, $errorMessage, $callback)
 {
     parent::__construct($field, $errorMessage);
     $this->callback = $callback;
 }
예제 #4
0
 /**
  * Construtor
  * 
  * @param string $field
  * @param string $errorMessage
  * @param int $minLength
  * @param int $maxLength
  * @author Hugo Ferreira da Silva
  */
 public function __construct($field, $errorMessage, $minLength = null, $maxLength = null)
 {
     parent::__construct($field, $errorMessage);
     $this->minLength = $minLength;
     $this->maxLength = $maxLength;
 }