26include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
48 $this->family =
"technic";
49 $this->module_position =
'90';
51 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
52 $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.";
54 $this->version =
'dolibarr';
56 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
61 $this->dirs = array();
65 $this->config_page_url = array(
'setup.php@modulebuilder');
69 $this->hidden =
false;
70 $this->depends = array();
71 $this->requiredby = array();
72 $this->conflictwith = array();
73 $this->langfiles = array();
81 $this->tabs = array();
85 $this->boxes = array();
89 $this->rights = array();
90 $this->rights_class =
'modulebuilder';
95 $this->rights[$r][0] = 3301;
96 $this->rights[$r][1] =
'Generate new modules';
97 $this->rights[$r][2] =
'a';
98 $this->rights[$r][3] = 0;
99 $this->rights[$r][4] =
'run';
104 $this->menu = array();
106 $this->menu[$r] = array(
'fk_menu'=>
'fk_mainmenu=tools',
108 'titre'=>
'ModuleBuilder',
109 'prefix' =>
img_picto(
'', $this->picto,
'class="paddingright pictofixedwidth"'),
111 'leftmenu'=>
'devtools_modulebuilder',
112 'url'=>
'/modulebuilder/index.php?mainmenu=tools&leftmenu=devtools',
113 'langs'=>
'modulebuilder',
115 'perms'=>
'$user->hasRight("modulebuilder", "run")',
117 'enabled'=>
'isModEnabled("modulebuilder")',
118 '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=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
$conf db name
Only used if Module[ID]Name translation string is not found.