mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Qual: Remove checkstyle warnings
This commit is contained in:
@@ -40,12 +40,12 @@ class modProjet extends DolibarrModules
|
||||
/**
|
||||
* Constructor. Define names, constants, directories, boxes, permissions
|
||||
*
|
||||
* @param DoliDB $DB Database handler
|
||||
* @param DoliDB $db Database handler
|
||||
*/
|
||||
function modProjet($DB)
|
||||
function modProjet($db)
|
||||
{
|
||||
$this->db = $DB ;
|
||||
$this->numero = 400 ;
|
||||
$this->db = $db;
|
||||
$this->numero = 400;
|
||||
|
||||
$this->family = "projects";
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
@@ -140,10 +140,14 @@ class modProjet extends DolibarrModules
|
||||
|
||||
|
||||
/**
|
||||
* \brief Fonction appelee lors de l'activation du module. Insere en base les constantes, boites, permissions du module.
|
||||
* Definit egalement les repertoires de donnees a creer pour ce module.
|
||||
* Function called when module is enabled.
|
||||
* The init function add constants, boxes, permissions and menus (defined in constructor) into Dolibarr database.
|
||||
* It also creates data directories
|
||||
*
|
||||
* @param string $options Options when enabling module ('', 'noboxes')
|
||||
* @return int 1 if OK, 0 if KO
|
||||
*/
|
||||
function init()
|
||||
function init($options='')
|
||||
{
|
||||
global $conf;
|
||||
|
||||
@@ -155,7 +159,7 @@ class modProjet extends DolibarrModules
|
||||
"INSERT INTO ".MAIN_DB_PREFIX."document_model (nom, type, entity) VALUES('".$this->const[0][2]."','project',".$conf->entity.")",
|
||||
);
|
||||
|
||||
return $this->_init($sql);
|
||||
return $this->_init($sql,$options);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user