From 1dc6dbca3478fab0dee39255454bc10616911e67 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 30 Jun 2006 11:29:12 +0000 Subject: [PATCH] =?UTF-8?q?ajout=20du=20fetch=5Fuser=20pour=20r=E9cup=E9re?= =?UTF-8?q?r=20les=20infos=20d'un=20contact=20interne?= 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 03453205c94..ec45b8c702f 100644 --- a/htdocs/commonobject.class.php +++ b/htdocs/commonobject.class.php @@ -354,6 +354,19 @@ class CommonObject $this->projet = $projet; } + /** + * \brief Retourne le détail d'un utilisateur + * \param id id du contact + * \return array détail du contact + */ + function fetch_user($id) + { + $iduser = $id; + $user = new User($this->db, $iduser); + $user->fetch(); + $this->user = $user; + } + } ?>