26include_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 - low-code and no-code) tool to help developers or advanced users to build their own module/application.";
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=tools',
107 'titre'=>
'ModuleBuilder',
108 'prefix' =>
img_picto(
'', $this->picto,
'class="paddingright pictofixedwidth"'),
110 'leftmenu'=>
'devtools_modulebuilder',
111 'url'=>
'/modulebuilder/index.php?mainmenu=tools&leftmenu=devtools',
112 'langs'=>
'modulebuilder',
114 'perms'=>
'$user->hasRight("modulebuilder", "run")',
116 'enabled'=>
'isModEnabled("modulebuilder")',
117 'target'=>
'_modulebuilder',
Class to describe a ModuleBuilder module.
__construct($db)
Constructor.
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
$conf db name
Only used if Module[ID]Name translation string is not found.