72 $this->hidden = false; // A condition to hide module
73 $this->depends = array(); // List of modules id that must be enabled if this module is enabled
74 $this->requiredby = array(); // List of modules id to disable if this one is disabled
75 $this->phpmin = array(5, 6); // Minimum version of PHP required by module
76 $this->need_dolibarr_version = array(5, 0); // Minimum version of Dolibarr required by module
77 $this->langfiles = array("stripe");
78
79// Constants
80 $this->const = array(); // List of particular constants to add when module is enabled
81
82// New pages on tabs
83 $this->tabs = array();
84
85// List of boxes
86 $this->boxes = array();
87 $r = 0;
88
89// Permissions
90 $this->rights = array(); // Permission array used by this module
91 $r = 0;
92
93// Main menu entries
94 $r = 0;
95/* $this->menu[$r]=array(
96 'fk_menu'=>'fk_mainmenu=billing,fk_leftmenu=customers_bills_payment', // Use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
97 'mainmenu'=>'billing',
98 'leftmenu'=>'customers_bills_payment_stripe',
99 'type'=>'left', // This is a Left menu entry
100 'titre'=>'StripeImportPayment',
101 'url'=>'/stripe/importpayments.php',
102 'langs'=>'stripe', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
103 'position'=>500,
104 'enabled'=>'$conf->stripe->enabled && $conf->banque->enabled && $conf->global->MAIN_FEATURES_LEVEL >= 2', // Define condition to show or hide menu entry. Use '$conf->mymodule->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
105 'perms'=>'$user->rights->banque->modifier', // Use 'perms'=>'$user->rights->mymodule->level1->level2' if you want your menu with a permission rules
106 'target'=>'',
107 'user'=>2
108 ); // 0=Menu for internal users, 1=external users, 2=both