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()); }
public function __construct($max = 25, $text = null) { parent::__construct($text); $this->setMaxLength($max); }
public function __construct($text = null) { parent::__construct($text); }
public function __construct($evals = array(), $text = null) { parent::__construct($text); $this->_values = $evals; }