Add: can defined submodule name (ex: $conf->module->submodule->dir_output)

Add: can change the module name if different (ex: $conf->newmodulename->dir_output)
This commit is contained in:
Regis Houssin
2009-04-30 00:49:56 +00:00
parent c71c2f39fb
commit 432632a6e9

View File

@@ -71,12 +71,18 @@ class modMyModule extends DolibarrModules
// Data directories to create when module is enabled.
$this->dirs = array();
$r=0;
//$this->dirs[$r][0] = "mymodule";
//$this->dirs[$r][0] = "output";
//$this->dirs[$r][1] = "/mymodule";
//$this->dirs[$r][2] = 1; // Create constante in database if different of "output" and "temp" (ex: MAIN_MODULE_MYMODULE_DIR_OUTPUT)
//$this->dirs[$r][3] = "submodule"; // Add submodule name (ex: $conf->mymodule->submodule->dir_output)
//$this->dirs[$r][4] = "newmodulename"; // Change the module name if different (ex: $conf->newmodulename->dir_output)
//$r++;
//$this->dirs[$r][0] = "temp";
//$this->dirs[$r][1] = "/mymodule/temp";
//$this->dirs[$r][2] = 1; // Create constante in database if different of "output" and "temp" (ex: MAIN_MODULE_MYMODULE_DIR_TEMP)
//$this->dirs[$r][3] = "submodule"; // Add submodule name (ex: $conf->mymodule->submodule->dir_temp)
//$this->dirs[$r][4] = "newmodulename"; // Change the module name if different (ex: $conf->newmodulename->dir_temp)
// Relative path to module style sheet if exists. Example: '/mymodule/mycss.css'.
$this->style_sheet = '';