Subversion Repositories Applications.framework

Rev

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

Rev 120 Rev 122
Line 12... Line 12...
12
* @package   Framework
12
* @package   Framework
13
* @author	aurelien <aurelien@tela-botanica.org>
13
* @author	aurelien <aurelien@tela-botanica.org>
14
* @copyright 2009 Tela-Botanica
14
* @copyright 2009 Tela-Botanica
15
* @license   http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
15
* @license   http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
16
* @license   http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
16
* @license   http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
17
* @version   SVN: $$Id: Modele.php 120 2009-09-01 12:21:14Z aurelien $$
17
* @version   SVN: $$Id: Modele.php 122 2009-09-01 15:00:35Z aurelien $$
18
* @link	  /doc/framework/
18
* @link	  /doc/framework/
19
*
19
*
20
*/
20
*/
21
abstract class Modele {
21
abstract class Modele {
Line 95... Line 95...
95
	 *
95
	 *
96
	 * @throws PDOException une exception dans le cas ou là connexion échoue
96
	 * @throws PDOException une exception dans le cas ou là connexion échoue
97
	 */
97
	 */
98
	final private function connecter() {
98
	final private function connecter() {
Line -... Line 99...
-
 
99
 
99
 
100
            trigger_error('oh oh oh o une erreur ',E_USER_WARNING);
100
			$this->connexion = new PDO($this->dsn, $this->utilisateur, $this->pass);
101
			$this->connexion = new PDO($this->dsn, $this->utilisateur, $this->pass);
101
			if($this->encodage != null) {
102
			if($this->encodage != null) {
102
				$this->requete("SET names '".$this->encodage."'");
103
				$this->requete("SET names '".$this->encodage."'");
103
			}
104
			}