From 62d8003a28f5748d3d2471f36fddf2eebb1865fd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 15 Aug 2005 01:03:43 +0000 Subject: [PATCH] Qual: Mise en transaction de la creation des cotisations --- htdocs/adherents/adherent.class.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/htdocs/adherents/adherent.class.php b/htdocs/adherents/adherent.class.php index e1c5d951b3b..a66787600bf 100644 --- a/htdocs/adherents/adherent.class.php +++ b/htdocs/adherents/adherent.class.php @@ -1257,6 +1257,18 @@ class Adherent } } + /** + * \brief Retourne le nom complet de l'adhérent + * \return string Nom complet + */ + function getFullname() + { + if ($this->nom && $this->prenom) return $this->nom.' '.$this->prenom; + if ($this->nom) return $this->nom; + if ($this->prenom) return $this->prenom; + return ''; + } + /** * \brief Retourne le libellé du statut d'un adhérent (brouillon, validé, résilié) * \return string Libellé