First version template
This commit is contained in:
64
psmodule/psmodule.php
Normal file
64
psmodule/psmodule.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2025 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2025 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
use Websmid\Muller\WsMullerModule\Module\Helper\Config;
|
||||
use Websmid\Muller\WsMullerModule\Module\Helper\ConfigForm;
|
||||
use Websmid\Muller\WsMullerModule\Module\Helper\Install;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
class psmodule extends Module
|
||||
{
|
||||
// use hooks
|
||||
use Config;
|
||||
use Install;
|
||||
use ConfigForm;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->name = 'psmodule';
|
||||
$this->tab = 'administration';
|
||||
$this->version = '0.0.1';
|
||||
$this->author = 'George van Engers | De Websmid';
|
||||
$this->need_instance = 0;
|
||||
$this->ps_versions_compliancy = [
|
||||
'min' => '8.2.0',
|
||||
'max' => _PS_VERSION_,
|
||||
];
|
||||
$this->bootstrap = true;
|
||||
|
||||
parent::__construct();
|
||||
|
||||
$this->displayName = $this->trans('Ps Module', [], 'Modules.PsModule.Module');
|
||||
$this->description = $this->trans('Ps Module', [], 'Modules.PsModule.Module');
|
||||
|
||||
$this->confirmUninstall = $this->trans('Are you sure you want to uninstall?', [], 'Modules.PsModule.Module');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user