コード例 #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
ファイル: MaxLength.php プロジェクト: smnDev/pheeca
 public function __construct($max = 25, $text = null)
 {
     parent::__construct($text);
     $this->setMaxLength($max);
 }
コード例 #3
0
ファイル: EmptyText.php プロジェクト: smnDev/pheeca
 public function __construct($text = null)
 {
     parent::__construct($text);
 }
コード例 #4
0
ファイル: ListOfValues.php プロジェクト: smnDev/pheeca
 public function __construct($evals = array(), $text = null)
 {
     parent::__construct($text);
     $this->_values = $evals;
 }