clientValidateAttribute() public method

public clientValidateAttribute ( $model, $attribute, $view )
Exemplo n.º 1
0
 public function clientValidateAttribute($model, $attribute, $view)
 {
     $js = parent::clientValidateAttribute($model, $attribute, $view);
     if (!$this->enableIdn) {
         return $js;
     }
     PunycodeAsset::register($view);
     return "value = punycode.toASCII(value); {$js}";
 }
 /**
  * @inheritdoc
  */
 public function clientValidateAttribute($model, $attribute, $view)
 {
     $return = '';
     if ($this->length) {
         $return .= $this->validatorLength->clientValidateAttribute($model, $attribute, $view);
     }
     if ($this->characters) {
         $return .= $this->validatorCharacters->clientValidateAttribute($model, $attribute, $view);
     }
     if ($this->checksum) {
         $return .= $this->validatorChecksum->clientValidateAttribute($model, $attribute, $view);
     }
     return $return;
 }
 /**
  * @inheritdoc
  */
 public function clientValidateAttribute($model, $attribute, $view)
 {
     $RegularExpressionValidator = new RegularExpressionValidator(['pattern' => $this->pattern, 'message' => $this->message]);
     return $RegularExpressionValidator->clientValidateAttribute($model, $attribute, $view);
 }