예제 #1
0
파일: Name.php 프로젝트: brussens/cogear2
 /**
  * Конструктор
  */
 public function __construct()
 {
     $regexp = '([a-zA-Zа-яА-Я\\d]+)';
     parent::__construct($regexp, t('Значение поля может включать в себя только буквы и пробелы.'));
 }
예제 #2
0
 /**
  * Конструктор
  */
 public function __construct()
 {
     parent::__construct('([\\w_-]+)', t('Значение поля может содержать только буквы и цифры.'));
 }
예제 #3
0
파일: Num.php 프로젝트: brussens/cogear2
 /**
  * Конструктор
  */
 public function __construct()
 {
     parent::__construct('(\\d+)', t('Значение поля может быть только числовым.'));
 }
예제 #4
0
파일: Name.php 프로젝트: romartyn/cogear
 /**
  * Constructor
  */
 public function __construct()
 {
     $regexp = '([a-zа-я\\s]+)';
     parent::__construct($regexp, t('Value must contain only alphabetical characters and spaces.'));
 }
예제 #5
0
파일: Word.php 프로젝트: romartyn/cogear
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('([\\w_-]+)', t('Value must contain only alphabetic characters, digits or "_-" symbols.'));
 }
예제 #6
0
파일: Word.php 프로젝트: brussens/cogear2
 /**
  * Конструктор
  */
 public function __construct()
 {
     parent::__construct('([\\w_-]+)', t('Значение поля должно содержать только буквы алфавита, цифры или символы "_-".'));
 }
예제 #7
0
파일: Alpha.php 프로젝트: romartyn/cogear
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('(\\w^\\d_-]+)', t('Value must contain only alphabetical characters.'));
 }
예제 #8
0
파일: Num.php 프로젝트: romartyn/cogear
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('(\\d+)', t('Value must contain only digits.'));
 }