Subversion Repositories eFlore/Archives.herbiers

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 jp_milcent 1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This file is part of Herbier.                                                                        |
9
// |                                                                                                      |
10
// | Foobar is free software; you can redistribute it and/or modify                                       |
11
// | it under the terms of the GNU General Public License as published by                                 |
12
// | the Free Software Foundation; either version 2 of the License, or                                    |
13
// | (at your option) any later version.                                                                  |
14
// |                                                                                                      |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
18
// | GNU General Public License for more details.                                                         |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id: hb_type.class.php,v 1.1 2005-11-23 10:32:32 jp_milcent Exp $
25
/**
26
* Classe H_type
27
*
28
* Classe permettant de récupérer les données concernant les types de la base de données.
29
*
30
*@package Herbier
31
*@subpackage Classes
32
//Auteur original :
33
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
34
//Autres auteurs :
35
*@author        Jean-Pascal MILCENT <jpm@clapas.org>
36
*@copyright     Tela-Botanica 2000-2005
37
*@version       $Revision: 1.1 $ $Date: 2005-11-23 10:32:32 $
38
// +------------------------------------------------------------------------------------------------------+
39
*/
40
 
41
// +------------------------------------------------------------------------------------------------------+
42
// |                                            ENTETE du PROGRAMME                                       |
43
// +------------------------------------------------------------------------------------------------------+
44
 
45
// +------------------------------------------------------------------------------------------------------+
46
// |                                            CORPS du PROGRAMME                                        |
47
// +------------------------------------------------------------------------------------------------------+
48
/**
49
* Classe H_type()
50
*
51
* Contient la structure nécessaire pour
52
* représenter une table HERBIERS_STAFF dont voici
53
* la structure.
54
* @package herbiers
55
*/
56
class H_type {
57
    var $id_type;
58
    /**
59
    * Constructeur de H_type
60
    *
61
    * @param    aucun
62
    * @return    void
63
    * @access    public
64
    */
65
    function H_type()
66
    {
67
 
68
    }
69
    /** Méthode getFromSQL() - Renvoie un objet de type H_equipe
70
    *
71
    * Renvoie un objet de type H_equipe dont
72
    * l'identificateur est spécifié en paramètre.
73
    * L'objet correspond à un membre d'une equipe décrite
74
    * par la table HERBIERS_STAFF
75
    *
76
    * @param    integer $id l'identifiant de la table HERBIERS_STAFF
77
    * @return    H_equipe un objet de la classe H_equipe
78
    * @access    public
79
    */
80
    function getFromSQL($id)
81
    {
82
        $requete =  'SELECT LABEL_TYPE '.
83
                    'FROM HERBIERS_TYPE '.
84
                    'WHERE HERBIERS_TYPE.ID_TYPE = '.$id;
85
 
86
        $resultat = mysql_query($requete) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $requete));
87
 
88
        //return H_Herbier::remplacerEsperluette($ligne);
89
        return;
90
    }
91
}
92
 
93
 
94
// +------------------------------------------------------------------------------------------------------+
95
// |                                            PIED du PROGRAMME                                         |
96
// +------------------------------------------------------------------------------------------------------+
97
 
98
 
99
/* +--Fin du code ----------------------------------------------------------------------------------------+
100
*
101
* $Log: not supported by cvs2svn $
102
* Revision 1.2  2005/04/06 13:29:17  jpm
103
* Ajout et modifications des objets représentant la base de données Herbier.
104
*
105
* Revision 1.1  2005/03/08 14:13:21  jpm
106
* Ajout des classes d'accès à la base de données.
107
*
108
*
109
* +-- Fin du code ----------------------------------------------------------------------------------------+
110
*/
111
?>