Subversion Repositories Applications.papyrus

Rev

Rev 1388 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1388 Rev 1470
Line 17... Line 17...
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU General Public                                            |
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                                  |
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                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: projet.class.php,v 1.8.2.1 2007-05-11 13:49:14 alexandre_tb Exp $
22
// CVS : $Id: projet.class.php,v 1.8.2.2 2007-06-25 10:07:05 alexandre_tb Exp $
23
/**
23
/**
24
* Application projet
24
* Application projet
25
*
25
*
26
* La classe projet
26
* La classe projet
27
*
27
*
Line 29... Line 29...
29
//Auteur original :
29
//Auteur original :
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
//Autres auteurs :
31
//Autres auteurs :
32
*@author        Aucun
32
*@author        Aucun
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.8.2.1 $
34
*@version       $Revision: 1.8.2.2 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
Line 474... Line 474...
474
     * @access public
474
     * @access public
475
     */
475
     */
476
    function getTousLesProjets(&$objetDB, $exclu = '')
476
    function getTousLesProjets(&$objetDB, $exclu = '')
477
    {
477
    {
478
    	$sql = '';
478
    	$sql = '';
479
        if (count($this->_projet_exclu)) {
479
        if (isset ($this->_projet_exclu) && count($this->_projet_exclu)) {
480
        	$sql = 'where p_id not in (';
480
        	$sql = 'where p_id not in (';
481
            foreach ($this->_projet_exclu as $valeur) {
481
            foreach ($this->_projet_exclu as $valeur) {
482
            	$sql .= $valeur.',' ;
482
            	$sql .= $valeur.',' ;
483
            }
483
            }
484
            $sql[count($sql)-1] = ')';
484
            $sql[count($sql)-1] = ')';