Subversion Repositories Applications.projet

Rev

Rev 11 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 ddelon 1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU General Public                                                  |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | General Public License for more details.                                                             |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU General Public                                            |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
431 mathias 22
// CVS : $Id: statut_liste.class.php,v 1.2 2005/09/27 16:42:00 alexandre_tb Exp $
2 ddelon 23
/**
24
* Application projet
25
*
26
* La classe statut_liste
27
*
28
*@package projet
29
//Auteur original :
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
//Autres auteurs :
32
*@author        Aucun
33
*@copyright     Tela-Botanica 2000-2004
11 alexandre_ 34
*@version       $Revision: 1.2 $
2 ddelon 35
// +------------------------------------------------------------------------------------------------------+
36
*/
37
 
38
 
39
// +------------------------------------------------------------------------------------------------------+
40
// |                                            ENTETE du PROGRAMME                                       |
41
// +------------------------------------------------------------------------------------------------------+
42
 
43
 
44
 
45
/**
46
 * class statut_liste
47
 *
48
 */
49
class statut_liste
50
{
51
     /*** Attributes: ***/
52
 
53
    /**
54
     * Une ressource PEAR::DB
55
     * @access private
56
     */
57
    var $_db;
58
    /**
59
     *
60
     * @access private
61
     */
62
    var $_id_statut;
63
    /**
64
     *
65
     * @access private
66
     */
67
    var $_label;
68
 
69
    /**
70
     *
71
     *
72
     * @param DB objetDB Une ressource PEAR::DB
73
     * @return void
74
     * @access public
75
     */
76
    function statut_liste( &$objetDB )
77
    {
78
        $this->_db = $objetDB ;
79
    } // end of member function statut_liste
80
 
81
    /**
82
     * Renvoie un tableu avec tous les status d'inscription à une liste 0 => 'Pas
83
     * d'email' 1 => ' ...
84
     *
85
     * @return Array
86
     * @access public
87
     */
88
    function getTousLesStatuts( )
89
    {
90
        $requete = 'select * from projet_liste_statut' ;
91
        $resultat = $this->_db->query ($requete) ;
92
        $tableau_resultat = array();
93
        while ($ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
94
            $tableau_resultat[$ligne->pls_id_statut] = $ligne->pls_statut_nom ;
95
        }
96
        return $tableau_resultat;
97
    } // end of member function getTousLesStatuts
98
 
99
} // end of statut_liste
100
?>