garancia/modules/antadis_export/antadis_export.php
2016-10-10 15:24:25 +02:00

40 lines
754 B
PHP
Executable File

<?php
if (!defined('_CAN_LOAD_FILES_'))
exit;
class Antadis_Export extends Module
{
public function __construct()
{
$this->name = 'antadis_export';
$this->tab = 'administration';
$this->version = '1.0';
$this->author = 'Antadis';
$this->need_instance = 0;
parent::__construct();
$this->displayName = $this->l('Antadis Export');
$this->description = $this->l('Realiser des exports en CSV des commandes');
$this->secure_key = Tools::encrypt($this->name);
$this->confirmUninstall = $this->l('Are you sure ?');
}
public function install()
{
if (Shop::isFeatureActive())
Shop::setContext(Shop::CONTEXT_ALL);
if (!parent::install())
return false;
return true;
}
public function getContent(){
return true;
}
}