Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function init()
 {
     parent::init();
     if ($this->message === null) {
         $this->message = Yii::t('hipanel', '{attribute} does not look like a valid domain name');
     }
 }
Esempio n. 2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     if ($this->message === null) {
         $this->message = Yii::t('validator', 'A username can consist of alphabetic characters, numbers, dashes and underscores.');
     }
     parent::init();
 }
Esempio n. 3
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     if ($this->message === null) {
         $this->message = Yii::t('validator', "A name can consist of Latin alphabetic characters. It can contain points, apostrophes ['] and ordinals [ºª] as terminators of words, and blank spaces [ ] or dashes [-] as separator characters. A name can not contain more than one successive separator character.");
     }
     parent::init();
 }
 /**
  * @inheritdoc
  */
 public function init()
 {
     $this->pattern = '/^[a-zA-ZÀ-ÖØ-öø-ÿ0-9]+(([,.\'\\/ºª]{1}[\\s]?|[ºª]{1}[\\-]?|[\\s\\-]{1})[a-zA-ZÀ-ÖØ-öø-ÿ0-9]+)*\\.?$/u';
     if ($this->message === null) {
         $this->message = Yii::t('validator', "An address can consist of Latin alphabetic characters. It can contain punctuation marks like points [.], commas [,], slashes [/] and apostrophes ['] followed by a blank space, ordinal [ºª] as terminator of word and blank spaces [ ] or dashes [-] as word separator characters. An address can't contain more than one successive separator character.");
     }
     parent::init();
 }
Esempio n. 5
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     $this->pattern = '/^[a-zA-ZÀ-ÖØ-öø-ÿ]+(([.\'ªº]{1}[\\s]?|[\\s\\-]{1})[a-zA-ZÀ-ÖØ-öø-ÿ]+)*[.ªº]?$/u';
     if ($this->message === null) {
         $this->message = Yii::t('validator', "A name can consist of Latin alphabetic characters. It can contain points, apostrophes ['] and ordinals [ºª] as terminators of words, and blank spaces [ ] or dashes [-] as separator characters. A name can not contain more than one successive separator character.");
     }
     parent::init();
 }
Esempio n. 6
0
 public function init()
 {
     if ($this->message === null) {
         $this->message = "«{attribute}» должен быть в формате {$this->mask}.";
     }
     $qFormat = preg_quote($this->mask, '/');
     $this->pattern = '/^' . strtr($qFormat, ['9' => '\\d']) . '$/';
     parent::init();
 }
 /**
  * @inheritdoc
  */
 public function init()
 {
     $this->pattern = '/^[a-zA-ZÀ-ÖØ-öø-ÿ]+(([.\'ªº]{1}[\\s]?|[\\s\\-]{1})[a-zA-ZÀ-ÖØ-öø-ÿ]+)*[.ªº]?$/u';
     parent::init();
 }
 /**
  * @inheritdoc
  */
 public function init()
 {
     $this->pattern = $this->twelvehour ? self::TWELVEHOUR_PATTERN : self::TWENTYFOURHOUR_PATTERN;
     parent::init();
 }
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->message = \Yii::t('validators', $this->message);
 }
Esempio n. 10
0
 /** @inheritdoc */
 public function init()
 {
     $this->pattern = '#^[a-zA-Z]{2}[0-9]{2}[a-zA-Z0-9]{4}[0-9]{7}([a-zA-Z0-9]?){0,16}$#';
     parent::init();
 }
 /**
  * @inheritdoc
  */
 public function init()
 {
     $this->pattern = '/^[a-zA-ZÀ-ÖØ-öø-ÿ0-9]+(([,.\'\\/ºª]{1}[\\s]?|[ºª]{1}[\\-]?|[\\s\\-]{1})[a-zA-ZÀ-ÖØ-öø-ÿ0-9]+)*\\.?$/u';
     parent::init();
 }
 /**
  * {@inheritdoc}
  */
 public function init()
 {
     parent::init();
     $this->message = Yii::t('hipanel:dns', '{attribute} is not a valid domain name');
 }