SHARE
TWEET

Untitled

a guest May 22nd, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     /**
  2.      * Installe les onglets du module
  3.      */
  4.     private function installTabs()
  5.     {
  6.         $parent_tab = new Tab();
  7.         $parent_tab->active = 1;
  8.         $parent_tab->name[$this->context->language->id] = $this->l('Devis');
  9.         $parent_tab->class_name = 'moduledevistitre';
  10.         $parent_tab->id_parent = 0; // Home tab
  11.         $parent_tab->module = $this->name;
  12.         $parent_tab->add();
  13.  
  14.         /** @var TabCore $tab */
  15.         $tab = new Tab();
  16.         $tab->active = 1;
  17.         // Need a foreach for the language
  18.         $tab->name[$this->context->language->id] = $this->l('Liste des devis');
  19.         $tab->class_name = 'AdminListe';
  20.         $tab->id_parent = $parent_tab->id;
  21.         $tab->module = $this->name;
  22.         $tab->add();
  23.     }
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
 
Top