Line 15... |
Line 15... |
15 |
* @author Aurélien PERONNET <aurelien@tela-botanica.org>
|
15 |
* @author Aurélien PERONNET <aurelien@tela-botanica.org>
|
16 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
16 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
17 |
* @copyright Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)
|
17 |
* @copyright Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)
|
18 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
18 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
19 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
19 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
20 |
* @version $Id: Bdd.php 459 2014-03-05 16:05:54Z jpm $
|
20 |
* @version $Id: Bdd.php 461 2014-03-05 16:13:16Z jpm $
|
21 |
* @link /doc/framework/
|
21 |
* @link /doc/framework/
|
22 |
*/
|
22 |
*/
|
23 |
class Bdd {
|
23 |
class Bdd {
|
24 |
/** Constante stockant le squelette du message en cas d'erreur de requête sql. */
|
24 |
/** Constante stockant le squelette du message en cas d'erreur de requête sql. */
|
25 |
const ERREUR_REQUETE_TPL = 'Requête echec.\nFichier : %s.\nLigne : %s.\nMessage : %s.\nRequête : %s';
|
25 |
const ERREUR_REQUETE_TPL = 'Requête echec.\nFichier : %s.\nLigne : %s.\nMessage : %s.\nRequête : %s';
|
Line 388... |
Line 388... |
388 |
}
|
388 |
}
|
Line 389... |
Line 389... |
389 |
|
389 |
|
390 |
/**
|
390 |
/**
|
391 |
* @deprecated changement de nom. Deviendra "private" dans la version 0.5. Utiliser à la place : @see proteger
|
391 |
* @deprecated changement de nom. Deviendra "private" dans la version 0.5. Utiliser à la place : @see proteger
|
392 |
*/
|
392 |
*/
|
393 |
public function protegerTableau($tableau) {
|
393 |
public function protegerTableau(Array $tableau) {
|
394 |
foreach ($tableau as $id => $val) {
|
394 |
foreach ($tableau as $id => $val) {
|
395 |
if (is_array($val)) {
|
395 |
if (is_array($val)) {
|
396 |
$tableau[$id] = $this->protegerTableau($val);
|
396 |
$tableau[$id] = $this->protegerTableau($val);
|
397 |
} else {
|
397 |
} else {
|