Merge pull request #3160 from marcosgdf/more-oop2
Created abstract functions DolibarrModules::__construct, DolibarrModules::init and DolibarrModules::remove
This commit is contained in:
commit
f0cc620296
@ -38,7 +38,7 @@ class modMyModule extends DolibarrModules
|
|||||||
*
|
*
|
||||||
* @param DoliDB $db Database handler
|
* @param DoliDB $db Database handler
|
||||||
*/
|
*/
|
||||||
function __construct($db)
|
public function __construct($db)
|
||||||
{
|
{
|
||||||
global $langs,$conf;
|
global $langs,$conf;
|
||||||
|
|
||||||
@ -249,11 +249,11 @@ class modMyModule extends DolibarrModules
|
|||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
* @param string $options Options when enabling module ('', 'noboxes')
|
||||||
* @return int 1 if OK, 0 if KO
|
* @return int 1 if OK, 0 if KO
|
||||||
*/
|
*/
|
||||||
function init($options='')
|
public function init($options='')
|
||||||
{
|
{
|
||||||
$sql = array();
|
$sql = array();
|
||||||
|
|
||||||
$result=$this->_load_tables('/mymodule/sql/');
|
//$this->_load_tables('/mymodule/sql/');
|
||||||
|
|
||||||
return $this->_init($sql, $options);
|
return $this->_init($sql, $options);
|
||||||
}
|
}
|
||||||
@ -266,7 +266,7 @@ class modMyModule extends DolibarrModules
|
|||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
* @param string $options Options when enabling module ('', 'noboxes')
|
||||||
* @return int 1 if OK, 0 if KO
|
* @return int 1 if OK, 0 if KO
|
||||||
*/
|
*/
|
||||||
function remove($options='')
|
public function remove($options = '')
|
||||||
{
|
{
|
||||||
$sql = array();
|
$sql = array();
|
||||||
|
|
||||||
|
|||||||
@ -194,6 +194,13 @@ abstract class DolibarrModules
|
|||||||
*/
|
*/
|
||||||
public $core_enabled;
|
public $core_enabled;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor. Define names, constants, directories, boxes, permissions
|
||||||
|
*
|
||||||
|
* @param DoliDB $db Database handler
|
||||||
|
*/
|
||||||
|
abstract public function __construct($db);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enables a module.
|
* Enables a module.
|
||||||
* Inserts all informations into database
|
* Inserts all informations into database
|
||||||
@ -1672,4 +1679,30 @@ print $sql;
|
|||||||
return $err;
|
return $err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
public function init($options = '')
|
||||||
|
{
|
||||||
|
return $this->_init(array(), $options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Function called when module is disabled.
|
||||||
|
* Remove from database constants, boxes and permissions from Dolibarr database.
|
||||||
|
* Data directories are not deleted
|
||||||
|
*
|
||||||
|
* @param string $options Options when enabling module ('', 'noboxes')
|
||||||
|
* @return int 1 if OK, 0 if KO
|
||||||
|
*/
|
||||||
|
public function remove($options = '')
|
||||||
|
{
|
||||||
|
return $this->_remove(array(), $options);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -272,35 +272,4 @@ class modAccounting extends DolibarrModules
|
|||||||
$this->menus = array();
|
$this->menus = array();
|
||||||
$r = 0;
|
$r = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -230,37 +230,4 @@ class modAdherent extends DolibarrModules
|
|||||||
$this->import_regex_array[$r]=array('a.civility'=>'code@'.MAIN_DB_PREFIX.'c_civility','a.fk_adherent_type'=>'rowid@'.MAIN_DB_PREFIX.'adherent_type','a.morphy'=>'(phy|mor)','a.statut'=>'^[0|1]','a.datec'=>'^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]$','a.datefin'=>'^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]$');
|
$this->import_regex_array[$r]=array('a.civility'=>'code@'.MAIN_DB_PREFIX.'c_civility','a.fk_adherent_type'=>'rowid@'.MAIN_DB_PREFIX.'adherent_type','a.morphy'=>'(phy|mor)','a.statut'=>'^[0|1]','a.datec'=>'^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]$','a.datefin'=>'^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]$');
|
||||||
$this->import_examplevalues_array[$r]=array('a.civility'=>"MR",'a.lastname'=>'Smith','a.firstname'=>'John','a.login'=>'jsmith','a.pass'=>'passofjsmith','a.fk_adherent_type'=>'1','a.morphy'=>'"mor" or "phy"','a.societe'=>'JS company','a.address'=>'21 jump street','a.zip'=>'55000','a.town'=>'New York','a.country'=>'1','a.email'=>'jsmith@example.com','a.birth'=>'1972-10-10','a.statut'=>"0 or 1",'a.note_public'=>"This is a public comment on member",'a.note_private'=>"This is private comment on member",'a.datec'=>dol_print_date($now,'%Y-%m-%d'),'a.datefin'=>dol_print_date(dol_time_plus_duree($now, 1, 'y'),'%Y-%m-%d'));
|
$this->import_examplevalues_array[$r]=array('a.civility'=>"MR",'a.lastname'=>'Smith','a.firstname'=>'John','a.login'=>'jsmith','a.pass'=>'passofjsmith','a.fk_adherent_type'=>'1','a.morphy'=>'"mor" or "phy"','a.societe'=>'JS company','a.address'=>'21 jump street','a.zip'=>'55000','a.town'=>'New York','a.country'=>'1','a.email'=>'jsmith@example.com','a.birth'=>'1972-10-10','a.statut'=>"0 or 1",'a.note_public'=>"This is a public comment on member",'a.note_private'=>"This is private comment on member",'a.datec'=>dol_print_date($now,'%Y-%m-%d'),'a.datefin'=>dol_print_date(dol_time_plus_duree($now, 1, 'y'),'%Y-%m-%d'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -399,39 +399,4 @@ class modAgenda extends DolibarrModules
|
|||||||
$this->export_sql_end[$r] .=' ORDER BY ac.datep';
|
$this->export_sql_end[$r] .=' ORDER BY ac.datep';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
// Prevent pb of modules not correctly disabled
|
|
||||||
//$this->remove($options);
|
|
||||||
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -232,21 +232,5 @@ class modApi extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql, $options);
|
return $this->_init($sql, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql, $options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -221,20 +221,4 @@ class modAskPriceSupplier extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql, $options);
|
return $this->_init($sql, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -209,20 +209,4 @@ class modBanque extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -146,20 +146,4 @@ class modBarcode extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql, $options);
|
return $this->_init($sql, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql, $options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -99,35 +99,4 @@ class modBookmark extends DolibarrModules
|
|||||||
$this->rights[$r][4] = 'supprimer';
|
$this->rights[$r][4] = 'supprimer';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -139,20 +139,4 @@ class modCashDesk extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted.
|
|
||||||
*
|
|
||||||
* @param string $options Options
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -363,20 +363,4 @@ class modCategorie extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -74,37 +74,4 @@ class modClickToDial extends DolibarrModules
|
|||||||
$this->rights = array();
|
$this->rights = array();
|
||||||
$this->rights_class = 'clicktodial';
|
$this->rights_class = 'clicktodial';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
global $conf;
|
|
||||||
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -237,21 +237,4 @@ class modCommande extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'newboxdefonly', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -115,20 +115,4 @@ class modComptabilite extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -199,20 +199,4 @@ class modContrat extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -137,39 +137,4 @@ class modCron extends DolibarrModules
|
|||||||
'user'=>2); // 0=Menu for internal users, 1=external users, 2=both
|
'user'=>2); // 0=Menu for internal users, 1=external users, 2=both
|
||||||
$r++;
|
$r++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
// Prevent pb of modules not correctly disabled
|
|
||||||
//$this->remove($options);
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -145,20 +145,4 @@ class modDeplacement extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -114,21 +114,4 @@ class modDocumentGeneration extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -158,20 +158,4 @@ class modDon extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -84,39 +84,4 @@ class modDynamicPrices extends DolibarrModules
|
|||||||
$this->rights_class = 'dynamicprices';
|
$this->rights_class = 'dynamicprices';
|
||||||
$r=0;
|
$r=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
// Prevent pb of modules not correctly disabled
|
|
||||||
//$this->remove($options);
|
|
||||||
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -179,36 +179,5 @@ class modECM extends DolibarrModules
|
|||||||
'user'=>2); // 0=Menu for internal users, 1=external users, 2=both
|
'user'=>2); // 0=Menu for internal users, 1=external users, 2=both
|
||||||
$r++;
|
$r++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -277,20 +277,4 @@ class modExpedition extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -345,19 +345,4 @@ class modExpenseReport extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted.
|
|
||||||
*
|
|
||||||
* @param string $options Options
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@ -89,35 +89,4 @@ class modExport extends DolibarrModules
|
|||||||
$this->rights[$r][3] = 0;
|
$this->rights[$r][3] = 0;
|
||||||
$this->rights[$r][4] = 'creer';
|
$this->rights[$r][4] = 'creer';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -117,36 +117,5 @@ class modExternalSite extends DolibarrModules
|
|||||||
$r++;
|
$r++;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -126,36 +126,5 @@ class modFTP extends DolibarrModules
|
|||||||
'user'=>2); // 0=Menu for internal users, 1=external users, 2=both
|
'user'=>2); // 0=Menu for internal users, 1=external users, 2=both
|
||||||
$r++;
|
$r++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -342,20 +342,4 @@ class modFacture extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'newboxdefonly', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -82,37 +82,4 @@ class modFckeditor extends DolibarrModules
|
|||||||
$this->rights = array();
|
$this->rights = array();
|
||||||
$this->rights_class = 'fckeditor';
|
$this->rights_class = 'fckeditor';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
global $conf;
|
|
||||||
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -175,20 +175,4 @@ class modFicheinter extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -564,20 +564,4 @@ class modFournisseur extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -85,35 +85,4 @@ class modGeoIPMaxmind extends DolibarrModules
|
|||||||
$this->rights_class = 'geoipmaxmind';
|
$this->rights_class = 'geoipmaxmind';
|
||||||
$r=0;
|
$r=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -183,38 +183,5 @@ class modGravatar extends DolibarrModules
|
|||||||
// $this->export_sql_end[$r] .=' WHERE f.fk_soc = s.rowid AND f.rowid = fd.fk_facture';
|
// $this->export_sql_end[$r] .=' WHERE f.fk_soc = s.rowid AND f.rowid = fd.fk_facture';
|
||||||
// $r++;
|
// $r++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
//$result=$this->_load_tables('');
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -278,36 +278,5 @@ class modHoliday extends DolibarrModules
|
|||||||
// $this->export_sql_end[$r] .=' WHERE f.fk_soc = s.rowid AND f.rowid = fd.fk_facture';
|
// $this->export_sql_end[$r] .=' WHERE f.fk_soc = s.rowid AND f.rowid = fd.fk_facture';
|
||||||
// $r++;
|
// $r++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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.
|
|
||||||
*
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function init()
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
//$result=$this->_load_tables('');
|
|
||||||
|
|
||||||
return $this->_init($sql);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted.
|
|
||||||
*
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove()
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -85,35 +85,4 @@ class modImport extends DolibarrModules
|
|||||||
$this->rights[$r][3] = 0;
|
$this->rights[$r][3] = 0;
|
||||||
$this->rights[$r][4] = 'run';
|
$this->rights[$r][4] = 'run';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -109,34 +109,4 @@ class modIncoterm extends DolibarrModules
|
|||||||
$this->menus = array(); // List of menus to add
|
$this->menus = array(); // List of menus to add
|
||||||
$r=0;
|
$r=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql, $options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql, $options);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -89,7 +89,6 @@ class modLabel extends DolibarrModules
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function called when module is enabled.
|
* Function called when module is enabled.
|
||||||
* The init function add constants, boxes, permissions and menus (defined in constructor) into Dolibarr database.
|
* The init function add constants, boxes, permissions and menus (defined in constructor) into Dolibarr database.
|
||||||
@ -107,20 +106,4 @@ class modLabel extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -90,35 +90,4 @@ class modLdap extends DolibarrModules
|
|||||||
$this->rights = array();
|
$this->rights = array();
|
||||||
$this->rights_class = 'ldap';
|
$this->rights_class = 'ldap';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -162,20 +162,4 @@ class modLoan extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -147,20 +147,4 @@ class modMailing extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -77,37 +77,4 @@ class modMailmanSpip extends DolibarrModules
|
|||||||
$this->rights = array();
|
$this->rights = array();
|
||||||
$this->rights_class = 'clicktodial';
|
$this->rights_class = 'clicktodial';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
global $conf;
|
|
||||||
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -139,36 +139,5 @@ class modMargin extends DolibarrModules
|
|||||||
$this->rights[$r][4] = 'read';
|
$this->rights[$r][4] = 'read';
|
||||||
$this->rights[$r][5] = 'all';
|
$this->rights[$r][5] = 'all';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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.
|
|
||||||
*
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function init()
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
//$result=$this->_load_tables();
|
|
||||||
|
|
||||||
return $this->_init($sql);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted.
|
|
||||||
*
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove()
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -90,20 +90,4 @@ class modNotification extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -195,20 +195,5 @@ class modOpenSurvey extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -172,38 +172,5 @@ class modPayBox extends DolibarrModules
|
|||||||
// $this->export_sql_end[$r] .=' WHERE f.fk_soc = s.rowid AND f.rowid = fd.fk_facture';
|
// $this->export_sql_end[$r] .=' WHERE f.fk_soc = s.rowid AND f.rowid = fd.fk_facture';
|
||||||
// $r++;
|
// $r++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
//$result=$this->_load_tables('');
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -164,38 +164,5 @@ class modPaypal extends DolibarrModules
|
|||||||
// $this->export_sql_end[$r] .=' WHERE f.fk_soc = s.rowid AND f.rowid = fd.fk_facture';
|
// $this->export_sql_end[$r] .=' WHERE f.fk_soc = s.rowid AND f.rowid = fd.fk_facture';
|
||||||
// $r++;
|
// $r++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
//$result=$this->_load_tables('');
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -141,20 +141,4 @@ class modPrelevement extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -120,35 +120,4 @@ class modPrinting extends DolibarrModules
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql, $options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql, $options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -343,20 +343,4 @@ class modProduct extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'newboxdefonly', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -124,21 +124,5 @@ class modProductBatch extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql, $options);
|
return $this->_init($sql, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql, $options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -361,20 +361,4 @@ class modProjet extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -231,20 +231,4 @@ class modPropale extends DolibarrModules
|
|||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -360,21 +360,6 @@ class modResource extends DolibarrModules
|
|||||||
return $this->_init($sql, $options);
|
return $this->_init($sql, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
public function remove($options = '')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql, $options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create tables, keys and data required by module
|
* Create tables, keys and data required by module
|
||||||
* Files llx_table1.sql, llx_table1.key.sql llx_data.sql with create table, create keys
|
* Files llx_table1.sql, llx_table1.key.sql llx_data.sql with create table, create keys
|
||||||
|
|||||||
@ -168,20 +168,4 @@ class modSalaries extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -327,20 +327,4 @@ class modService extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'newboxdefonly', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -87,39 +87,4 @@ class modSkype extends DolibarrModules
|
|||||||
//------------------
|
//------------------
|
||||||
$this->menu = array();
|
$this->menu = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
// Prevent pb of modules not correctly disabled
|
|
||||||
//$this->remove($options);
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -505,20 +505,4 @@ class modSociete extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -198,35 +198,4 @@ class modStock extends DolibarrModules
|
|||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -83,39 +83,4 @@ class modSyncSupplierWebServices extends DolibarrModules
|
|||||||
$this->rights_class = 'syncsupplierwebservices';
|
$this->rights_class = 'syncsupplierwebservices';
|
||||||
$r=0;
|
$r=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
// Prevent pb of modules not correctly disabled
|
|
||||||
//$this->remove($options);
|
|
||||||
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -80,37 +80,4 @@ class modSyslog extends DolibarrModules
|
|||||||
$this->rights = array();
|
$this->rights = array();
|
||||||
$this->rights_class = 'syslog';
|
$this->rights_class = 'syslog';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -156,20 +156,4 @@ class modTax extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -242,20 +242,4 @@ class modUser extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -83,39 +83,4 @@ class modWebServices extends DolibarrModules
|
|||||||
$this->rights_class = 'webservices';
|
$this->rights_class = 'webservices';
|
||||||
$r=0;
|
$r=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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($options='')
|
|
||||||
{
|
|
||||||
// Prevent pb of modules not correctly disabled
|
|
||||||
//$this->remove($options);
|
|
||||||
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_init($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -148,20 +148,4 @@ class modWorkflow extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called when module is disabled.
|
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
|
||||||
* Data directories are not deleted
|
|
||||||
*
|
|
||||||
* @param string $options Options when enabling module ('', 'noboxes')
|
|
||||||
* @return int 1 if OK, 0 if KO
|
|
||||||
*/
|
|
||||||
function remove($options='')
|
|
||||||
{
|
|
||||||
$sql = array();
|
|
||||||
|
|
||||||
return $this->_remove($sql,$options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user