Exemplo n.º 1
0
 public function __construct()
 {
     global $smarty;
     $this->name = 'trustedshops';
     $this->tab = 'payment_security';
     $this->version = '1.3.3';
     parent::__construct();
     if (empty(self::$objects_list)) {
         TSBuyerProtection::setTranslationObject($this);
         $obj_ts_rating = new TrustedShopsRating();
         $obj_ts_buyerprotection = new TSBuyerProtection();
         $obj_ts_buyerprotection->_setEnvApi(TSBuyerProtection::ENV_PROD);
         self::$objects_list = array($obj_ts_rating, $obj_ts_buyerprotection);
         self::$objects_list[0]->setModuleName($this->name);
         self::$objects_list[0]->setSmarty($smarty);
     }
     if (!extension_loaded('soap')) {
         $this->warnings[] = $this->l('This module requires the SOAP PHP extension to function properly.');
     }
     foreach (self::$objects_list as $object) {
         $this->limited_countries = array_merge($this->limited_countries, $object->limited_countries);
         if (!empty($object->warnings)) {
             $this->warnings = array_merge($this->warnings, $object->warnings);
         }
     }
     if (!empty($this->warnings)) {
         $this->warning = implode(',<br />', $this->warnings) . '.';
     }
     $this->displayName = $this->l('Trusted Shops trust solutions');
     $this->description = $this->l('Build confidence in your online shop with the Trusted Shops quality seal, buyer protection and customer rating.');
     $this->confirmUninstall = $this->l('Are you sure you want to delete all your settings?');
 }