SHARE
TWEET

Untitled

a guest Aug 20th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php  
  2.  
  3. // check if we're in PS or exit to prevent malicious direct load of the module
  4. if (!defined('_PS_VERSION_'))
  5.     exit;
  6.  
  7. class FooBar extends Module
  8. {
  9.     public function __construct()
  10.     {
  11.         $this->name = 'foobar';
  12.         $this->tab = 'content_management';
  13.         $this->version = '1.0.0';
  14.         $this->author = 'foo';
  15.         $this->need_instance = 0;
  16.         $this->ps_versions_compliancy = array('min' => 1.7, 'max' => _PS_VERSION_);
  17.         $this->bootstrap = true;
  18.  
  19.         parent::__construct();
  20.  
  21.         $this->displayName = $this->l('Foo Bar');
  22.         $this->description = $this->l('Whatever');
  23.     }
  24.  
  25.     public function install()
  26.     {
  27.         if (!parent::install())
  28.             return false;
  29.  
  30.         return false;
  31.     }
  32.  
  33.     public function uninstall()
  34.     {
  35.         if (!parent::uninstall())
  36.                 return false;
  37.  
  38.         return true;
  39.     }
  40. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top