From 9e4a8224725c6bc8e0b53514f77b22a8b3cb019d Mon Sep 17 00:00:00 2001 From: eldy Date: Wed, 12 Oct 2011 01:44:59 +0200 Subject: [PATCH] doxygen --- htdocs/includes/modules/modCashDesk.class.php | 35 ++++++++++--------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/htdocs/includes/modules/modCashDesk.class.php b/htdocs/includes/modules/modCashDesk.class.php index 141084133eb..f7281dabc5a 100644 --- a/htdocs/includes/modules/modCashDesk.class.php +++ b/htdocs/includes/modules/modCashDesk.class.php @@ -127,32 +127,35 @@ class modCashDesk extends DolibarrModules } - /** - * \brief 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 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() + function init($options='') { $sql = array(); - //$result=$this->load_tables(); + // Remove permissions and default values + $this->remove($options); - return $this->_init($sql); + return $this->_init($sql,$options); } - /** - * \brief 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() + /** + * 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($options='') { $sql = array(); - return $this->_remove($sql); + return $this->_remove($sql,$options); } }