示例#1
0
 /**
  * @see ObjectModel::validateController()
  */
 public function validateController($htmlentities = true)
 {
     $errors = parent::validateController($htmlentities);
     if (!Configuration::get('VATNUMBER_MANAGEMENT') || !Configuration::get('VATNUMBER_CHECKING')) {
         return $errors;
     }
     include_once _PS_MODULE_DIR_ . 'vatnumber/vatnumber.php';
     if (class_exists('VatNumber', false)) {
         return array_merge($errors, VatNumber::WebServiceCheck($this->vat_number));
     }
     return $errors;
 }