From 77e05eb4eb1c71ca6fa6851b9c4e94fb23762aa7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 4 Sep 2005 21:01:32 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20methode=20getLibStatut=20pour=20homog?= =?UTF-8?q?=E9nisation=20du=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/commande.class.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index 7ade0e9c004..fae1efbdf7d 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -906,6 +906,27 @@ class Commande } } + + /** + * \brief Retourne le libellé du statut de la commande + * \return string Libellé + */ + function getLibStatut() + { + return $this->LibStatut($this->statut); + } + + /** + * \brief Renvoi le libellé d'un statut donné + * \param statut id statut + * \return string Libellé + */ + function LibStatut($statut) + { + return $this->status_label_short[$statut]; + } + + /** * \brief Charge les informations d'ordre info dans l'objet commande * \param id Id de la commande a charger