26 include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
47 $this->family =
"technic";
48 $this->module_position =
'90';
50 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
51 $this->
description =
"A RAD (Rapid Application Development) tool to help developers to build their own module.";
53 $this->version =
'dolibarr';
55 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
60 $this->dirs = array();
64 $this->config_page_url = array(
'setup.php@modulebuilder');
68 $this->hidden =
false;
69 $this->depends = array();
70 $this->requiredby = array();
71 $this->conflictwith = array();
72 $this->langfiles = array();
80 $this->tabs = array();
84 $this->boxes = array();
88 $this->rights = array();
89 $this->rights_class =
'modulebuilder';
94 $this->rights[$r][0] = 3301;
95 $this->rights[$r][1] =
'Generate new modules';
96 $this->rights[$r][2] =
'a';
97 $this->rights[$r][3] = 0;
98 $this->rights[$r][4] =
'run';
103 $this->menu = array();
105 $this->menu[$r] = array(
'fk_menu'=>
'fk_mainmenu=home,fk_leftmenu=admintools',
107 'titre'=>
'ModuleBuilder',
109 'leftmenu'=>
'admintools_modulebuilder',
110 'url'=>
'/modulebuilder/index.php?mainmenu=home&leftmenu=admintools',
111 'langs'=>
'modulebuilder',
114 'enabled'=>
'$conf->modulebuilder->enabled && preg_match(\'/^(admintools|all)/\',$leftmenu) && ($user->admin || $conf->global->MODULEBUILDER_FOREVERYONE)',
115 'target'=>
'_modulebuilder',