Serveur preprod f0c0c48223 first push
2016-04-14 16:14:31 +02:00

44 lines
862 B
PHP
Executable File

<?php
if (!defined('_PS_VERSION_'))
exit;
class DigitalKeys extends Module
{
public function __construct()
{
$this->name = 'digitalkeys';
$this->tab = 'advertising_marketing';
$this->version = '1.0.0';
$this->author = 'Antadis';
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->l('Digital Keys');
$this->description = $this->l('Digital Keys WS');
}
public function install()
{
return (
Configuration::updateValue('DIGITALKEYS_TOKEN', Tools::encrypt($this->name.Tools::passwdGen())) &&
parent::install()
);
}
public function uninstall()
{
return (
parent::uninstall() &&
Configuration::deleteByName('DIGITALKEYS_TOKEN')
);
}
public function getContent()
{
$this->_html = '';
$this->_html = $this->l('Token:').Configuration::get('DIGITALKEYS_TOKEN');
return $this->_html;
}
}