From d88aaa27caedc198afcb1d1a0088fab90e9e576f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 10 Feb 2005 23:25:05 +0000 Subject: [PATCH] New: Ajout fonction fetch_projet --- htdocs/fichinter/fichinter.class.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/htdocs/fichinter/fichinter.class.php b/htdocs/fichinter/fichinter.class.php index 3d4918c0349..1761e8271a8 100644 --- a/htdocs/fichinter/fichinter.class.php +++ b/htdocs/fichinter/fichinter.class.php @@ -249,9 +249,9 @@ class Fichinter } } + /* - * - * + * \brief Charge la liste des clients depuis la base * */ function fetch_client() @@ -260,6 +260,18 @@ class Fichinter $client->fetch($this->societe_id); $this->client = $client; } + + /* + * \brief Charge les infos du projet depuis la base + * + */ + function fetch_projet() + { + $projet = new Project($this->db); + $projet->fetch($this->projet_id); + $this->projet = $projet->title; + } + } ?>