2
0
forked from Wavyzz/dolibarr

Qual: Remove checkstyle warnings

This commit is contained in:
Laurent Destailleur
2012-01-04 21:23:50 +01:00
parent 69c4cbd872
commit 3f8d2cbef8
60 changed files with 972 additions and 795 deletions

View File

@@ -36,11 +36,11 @@ class modNotification extends DolibarrModules
/**
* Constructor. Define names, constants, directories, boxes, permissions
*
* @param DoliDB $DB Database handler
* @param DoliDB $db Database handler
*/
function modNotification($DB)
function modNotification($db)
{
$this->db = $DB ;
$this->db = $db;
$this->numero = 600;
$this->family = "technic";
@@ -76,17 +76,21 @@ class modNotification 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='')
{
// Permissions
$this->remove();
$sql = array();
return $this->_init($sql);
return $this->_init($sql,$options);
}
/**