Example #1
0
 public function __construct($text = null, $regex = null)
 {
     parent::__construct($text);
     if (!is_null($regex)) {
         $this->setRegex($regex);
     }
     $this->addMessage(self::NO_REGEX, 'La stringa %text% non matcha con la regular expression %regex%');
     $this->addPattern('%regex%', $this->getRegex());
 }
Example #2
0
 public function __construct($max = 25, $text = null)
 {
     parent::__construct($text);
     $this->setMaxLength($max);
 }
Example #3
0
 public function __construct($text = null)
 {
     parent::__construct($text);
 }
Example #4
0
 public function __construct($evals = array(), $text = null)
 {
     parent::__construct($text);
     $this->_values = $evals;
 }