From fc7dfdf8638e45650c8372649dbb46ca2bbd3934 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 19 Jun 2006 16:50:51 +0000 Subject: [PATCH] =?UTF-8?q?ajout=20de=20la=20fonction=20fetch=5Fcontact=20?= =?UTF-8?q?pour=20r=E9cup=E9rer=20le=20d=E9tail=20d'un=20contact=20propal,?= =?UTF-8?q?=20commande,=20=20facture...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commonobject.class.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/htdocs/commonobject.class.php b/htdocs/commonobject.class.php index 6bc4505f3cc..5a19181d63f 100644 --- a/htdocs/commonobject.class.php +++ b/htdocs/commonobject.class.php @@ -319,6 +319,19 @@ class CommonObject return $result; } + + /** + * \brief Retourne le détail d'un contact + * \param id id du contact + * \return array détail du contact + */ + function fetch_contact($id) + { + $idcontact = $id; + $contact = new Contact($this->db); + $contact->fetch($idcontact); + $this->contact = $contact; + } }