From 39bcf8bd636ecacfe016ab938bd8cf883a44c0a3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 18 May 2011 16:42:59 +0000 Subject: [PATCH] Doxygen --- htdocs/product/class/product.class.php | 18 +++++++++--------- htdocs/product/stock/class/entrepot.class.php | 19 ++++++++++--------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index c3647d76ac0..ce423163812 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -2224,10 +2224,10 @@ class Product extends CommonObject } /** - * \brief Return label of status of object - * \param mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto - * \param type 0=Shell, 1=Buy - * \return string Label of status + * Return label of status of object + * @param mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto + * @param type 0=Shell, 1=Buy + * @return string Label of status */ function getLibStatut($mode=0, $type=0) { @@ -2238,11 +2238,11 @@ class Product extends CommonObject } /** - * \brief Return label of a given status - * \param status Statut - * \param mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto - * \param type 0=Status "to sell", 1=Status "to buy" - * \return string Label of status + * Return label of a given status + * @param status Statut + * @param mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto + * @param type 0=Status "to sell", 1=Status "to buy" + * @return string Label of status */ function LibStatut($status,$mode=0,$type=0) { diff --git a/htdocs/product/stock/class/entrepot.class.php b/htdocs/product/stock/class/entrepot.class.php index 939ca52a5a2..2548095ea48 100644 --- a/htdocs/product/stock/class/entrepot.class.php +++ b/htdocs/product/stock/class/entrepot.class.php @@ -369,8 +369,7 @@ class Entrepot extends CommonObject $obj = $this->db->fetch_object($result); $ret['nb']=$obj->nb; $ret['value']=$obj->value; - - $this->db->free(); + $this->db->free($result); } else { @@ -382,9 +381,10 @@ class Entrepot extends CommonObject } /** - * \brief Retourne le libell� du statut d'un entrepot (ouvert, ferme) - * \param mode 0=libell� long, 1=libell� court, 2=Picto + Libell� court, 3=Picto, 4=Picto + Libell� long - * \return string Libelle + * Return label of status of object + * @param mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto + * @param type 0=Closed, 1=Opened + * @return string Label of status */ function getLibStatut($mode=0) { @@ -392,10 +392,11 @@ class Entrepot extends CommonObject } /** - * \brief Renvoi le libell� d'un statut donn� - * \param statut Id statut - * \param mode 0=libell� long, 1=libell� court, 2=Picto + Libell� court, 3=Picto, 4=Picto + Libell� long, 5=Libell� court + Picto - * \return string Libell� du statut + * Return label of a given status + * @param status Statut + * @param mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto + * @param type 0=Status "closed", 1=Status "opened" + * @return string Label of status */ function LibStatut($statut,$mode=0) {