Files
drmaterac.pl/modules/x13gpsr/x13gpsr.php
2025-03-21 20:24:43 +01:00

58 lines
1.5 KiB
PHP

<?php
if (!defined('_PS_VERSION_')) {
exit;
}
require_once dirname(__FILE__) . '/x13gpsr.ion.php';
/**
* Module to comply with the General Product Safety Regulation.
*/
class x13gpsr extends x13gpsr\GPSRModuleCore
{
/**
* @var array
*/
public static $x13Translations = [];
/**
* X13Gpsr.
*
* {@inheritDoc}
*/
public function __construct()
{
$this->name = 'x13gpsr';
$this->tab = 'front_office_features';
$this->version = '1.1.0';
$this->author = 'X13.pl';
$this->need_instance = 0;
$this->bootstrap = true;
$this->ps_versions_compliancy = [
'min' => '1.6.1.0',
'max' => '8.99.99',
];
parent::__construct();
$this->displayName = $this->l('GPSR - General Product Safety Regulation');
$this->description = $this->l('Helps adapt your store to the General Product Safety Regulation (GPSR), enabling the inclusion of complete manufacturer and responsible person details, warnings, certifications, instructions, technical data, and attachments.');
}
/**
* Translation keys available outside ioncube files
*
* @return void
*/
public function initTranslations()
{
static::$x13Translations = [
'Settings' => $this->l('Settings'),
'Enabled' => $this->l('Enabled'),
'Disabled' => $this->l('Disabled'),
'Save' => $this->l('Save')
];
}
}