Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2459 Rev 2460
Line 1... Line 1...
1
<?php
1
<?php
-
 
2
// declare(encoding='UTF-8');
2
/**
3
/**
3
 * La classe de gestion de la base de données.
4
 * Classe de gestion de la base de données.
4
 *
5
 *
-
 
6
 * @internal   Mininum PHP version : 5.2
5
 * @category php 5.2
7
 * @category   CEL
6
 * @package cel
8
 * @package    Services
-
 
9
 * @subpackage Bibliothèques
-
 
10
 * @version    0.1
-
 
11
 * @author     Mathias CHOUET <mathias@tela-botanica.org>
7
 * @author Raphaël Droz <raphael@tela-botanica.org>
12
 * @author     Raphaël Droz <raphael@tela-botanica.org>
-
 
13
 * @author     Jean-Pascal MILCENT <jpm@tela-botanica.org>
8
 * @copyright Copyright (c) 2013, Tela Botanica (accueil@tela-botanica.org)
14
 * @author     Aurelien PERONNET <aurelien@tela-botanica.org>
-
 
15
 * @license    GPL v3 <http://www.gnu.org/licenses/gpl.txt>
9
 * @license	http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
16
 * @license    CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
10
 * @license	http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
17
 * @copyright  1999-2014 Tela Botanica <accueil@tela-botanica.org>
11
 */
18
 */
12
class Bdd2 extends PDO {
19
class Bdd2 extends PDO {
Line 13... Line 20...
13
 
20
 
14
	const SQL_MODE_ASSOC = PDO::FETCH_ASSOC;
21
	const SQL_MODE_ASSOC = PDO::FETCH_ASSOC;
Line 130... Line 137...
130
	}
137
	}
Line 131... Line 138...
131
 
138
 
132
	public function obtenirDernierId() {
139
	public function obtenirDernierId() {
133
		return $this->lastInsertId();
140
		return $this->lastInsertId();
134
	}
-
 
135
 
141
	}
136
}
142
}