예제 #1
0
 public function vatnumVal($attribute, $params)
 {
     $value = $this->{$attribute};
     if (\app\helpers\Linet3Helper::vatnumVal($value)) {
         $this->addError($attribute, Yii::t('app', 'Not a valid VAT id'));
     }
 }
예제 #2
0
 public function vatnumVal($attribute, $value)
 {
     if (Linet3Helper::vatnumVal($value)) {
         $this->addError($attribute, Yii::t('app', 'Not a valid VAT id'));
     }
 }