Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1688 Rev 1803
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.10 2007-06-26 09:32:33 neiluj Exp $
22
// CVS : $Id: projet.class.php,v 1.10.2.1 2008-02-08 08:41:00 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.10 $
34
*@version       $Revision: 1.10.2.1 $
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 (isset($this) && isset ($this->_projet_exclu) && count($this->_projet_exclu)) {
479
        if (is_object($this) && 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] = ')';