示例#1
0
文件: Regex.php 项目: smnDev/pheeca
 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());
 }
示例#2
0
 public function __construct($max = 25, $text = null)
 {
     parent::__construct($text);
     $this->setMaxLength($max);
 }
示例#3
0
 public function __construct($text = null)
 {
     parent::__construct($text);
 }
示例#4
0
 public function __construct($evals = array(), $text = null)
 {
     parent::__construct($text);
     $this->_values = $evals;
 }