O:39:"phpDocumentor\Descriptor\FileDescriptor":21:{s:7:" * hash";s:32:"d5b0ed32373a648148f524ea3cb4fce8";s:7:" * path";s:7:"Bdd.php";s:9:" * source";s:16683:"<?php
// declare(encoding='UTF-8');
/**
 * Classe Bdd, d'accés au base de données.
 * Elle fait office d'abstraction légère de base de données en utilisant diverses possibilités d'accès aux
 * bases de données (PDO, mysql, mysqli, SQLite3).
 * Les valeurs pour le paramètre 'bdd_abstraction' du fichier config.ini sont : pdo, mysql, mysqli, sqlite3
 * Vous pouvez aussi utiliser : "php:Bdd::ABSTRACTION_PDO","php:Bdd::ABSTRACTION_MYSQL", "php:Bdd::ABSTRACTION_MYSQLI",
 * "php:Bdd::ABSTRACTION_SQLITE3".
 * Elle peut être étendue, pour ajouter le support d'autres bases de données où prendre en compte des méthodes spécifique à
 * un type d'abstraction.
 *
 * @category	php 5.2
 * @package	Framework
 * @author		Aurélien PERONNET <aurelien@tela-botanica.org>
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
 * @copyright	Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)
 * @license	http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
 * @license	http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
 * @version	$Id: Bdd.php 461 2014-03-05 16:13:16Z jpm $
 * @link		/doc/framework/
 */
class Bdd {
	/** Constante stockant le squelette du message en cas d'erreur de requête sql. */
	const ERREUR_REQUETE_TPL = 'Requête echec.\nFichier : %s.\nLigne : %s.\nMessage : %s.\nRequête : %s';

	/** Constante stockant le squelette du message en cas d'erreur de connexion à la base de données. */
	const ERREUR_CONNEXION_TPL = 'Erreur de connexion à la base de données, vérifiez les paramètres du fichier de configuration.\nMessage : %S.';

	/** Constante stockant le squelette du message en cas d'erreur de sélection de la base de données. */
	const ERREUR_SELECTION_BDD_TPL = 'Erreur de sélection de la base de données, vérifiez les paramètres du fichier de configuration.\nMessage : %S.';

	/** Constante stockant le code pour l'abstraction de PDO. */
	const ABSTRACTION_PDO = 'pdo';

	/** Constante stockant le code pour l'abstraction de mysql. */
	const ABSTRACTION_MYSQL = 'mysql';

	/** Constante stockant le code pour l'abstraction de mysqli. */
	const ABSTRACTION_MYSQLI = 'mysqli';

	/** Constante stockant le code pour l'abstraction de SQLite3. */
	const ABSTRACTION_SQLITE3 = 'sqlite3';

	/** Constante stockant le code pour le mode tableau associatif des résultats des requêtes. */
	const MODE_ASSOC = 'ASSOC';

	/** Constante stockant le code pour le mode objet des résultats des requêtes. */
	const MODE_OBJET = 'OBJECT';

	/** Mode de fetch associatif */
	protected $ASSOC = '';

	/** Mode de fetch objet */
	protected $OBJECT = '';

	/** abstraction de base de données utilisée */
	protected $abstraction;

	/** DSN pour accéder à la base de données */
	protected $dsn;

	/** Type de base de données (mysql, mysqli, etc ...) */
	protected $type;

	/** Hote herbergeant la base de données */
	protected $hote;

	/** Nom de la base de données à laquelle le modèle doit se connecter */
	protected $bdd_nom;

	/** Nom d'utilisateur */
	protected $utilisateur;

	/** Mot de passe */
	protected $pass;

	/** Encodage de la base de données */
	protected $encodage = null;

	/** Connexion à la base de données */
	protected $connexion = null;

	/** Tableau des noms des paramètres à définir dans le fichier de config car obligatoirement nécessaire à cette classe.*/
	protected $parametres_obligatoires = array('bdd_abstraction', 'bdd_protocole', 'bdd_serveur', 'bdd_nom',
		'bdd_utilisateur', 'bdd_mot_de_passe', 'bdd_encodage');

	/** Constructeur par défaut, appelé à l'initialisation. */
	public function __construct() {
		Config::verifierPresenceParametres($this->parametres_obligatoires);
		$this->abstraction = strtolower(Config::get('bdd_abstraction'));
		$this->type = Config::get('bdd_protocole');
		$this->hote = Config::get('bdd_serveur');
		$this->bdd_nom = Config::get('bdd_nom');
		$this->utilisateur = Config::get('bdd_utilisateur');
		$this->pass = Config::get('bdd_mot_de_passe');

		$this->encodage = Config::get('bdd_encodage');

		if ($this->type == 'sqlite' || $this->type == 'sqlite2') {
			$this->dsn = $this->type.':'.$this->hote;
		} else {
			$this->dsn = $this->type.':dbname='.$this->bdd_nom.';host='.$this->hote;
		}
		$this->initialiserProtocole();
	}

	/** Initialise les constantes de classe à leur bonne valeur et déclenche une erreur si le protocole n'est pas bien défini. */
	protected function initialiserProtocole() {
		switch ($this->abstraction) {
			case self::ABSTRACTION_PDO :
				$this->ASSOC = PDO::FETCH_ASSOC;
				$this->OBJECT = PDO::FETCH_OBJ;
				break;
			case self::ABSTRACTION_MYSQL :
				$this->ASSOC = 'mysql_fetch_assoc';
				$this->OBJECT = 'mysql_fetch_object';
				break;
			case self::ABSTRACTION_MYSQLI :
				$this->ASSOC = 'fetch_assoc';
				$this->OBJECT = 'fetch_object';
				break;
			case self::ABSTRACTION_SQLITE3 :
				$this->ASSOC = 'SQLITE3_ASSOC';
				$this->OBJECT = 'SQLITE3_OBJECT';
				break;
			default:
				$m = "Erreur : l'abstraction '{$this->abstraction}' n'est pas prise en charge";
				trigger_error($m, E_USER_WARNING);
		}
	}

	/**
	 * Connection à la base de données en utilisant les informations fournies par
	 * le fichier de configuration.
	 * Cette méthode est private et final car elle n'a pas vocation a être appelée par l'utilisateur.
	 * TODO : il est peut être nécessaire pour MYSQL, MYSQLi et SQLITE3 afin d'éviter les boucles infinis
	 * d'erreur quand la bdd n'est pas configuré d'utiliser : $this->connexion->query (comme pour PDO)
	 */
	protected function connecter() {
		if ($this->connexion == null) {
			switch ($this->abstraction) {
				case self::ABSTRACTION_PDO :
					try {
						$this->connexion = new PDO($this->dsn, $this->utilisateur, $this->pass);
						$this->connexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
					} catch (PDOException $e) {
						$e = sprintf(self::ERREUR_CONNEXION_TPL, $e->getMessage());
						trigger_error($e, E_USER_WARNING);
					}
					if ($this->encodage != null && $this->type == 'mysql') {
						$this->connexion->query("SET names '".$this->encodage."'");
					} else if ($this->type == 'sqlite') {
						$this->connexion->query("PRAGMA case_sensitive_like = false");
					}
					break;
				case self::ABSTRACTION_MYSQL :
					$this->connexion = mysql_connect($this->hote, $this->utilisateur, $this->pass);
					if ($this->connexion !== false) {
						$selection = mysql_select_db($this->bdd_nom, $this->connexion);
						if ($selection === false) {
							$e = sprintf(self::ERREUR_SELECTION_BDD_TPL, mysql_error());
							trigger_error($e, E_USER_WARNING);
						}
					} else {
						$e = sprintf(self::ERREUR_CONNEXION_TPL, mysql_error());
						trigger_error($e, E_USER_WARNING);
					}
					if ($this->encodage != null) {
						$this->requeter("SET names '".$this->encodage."'");
					}
					break;
				case self::ABSTRACTION_MYSQLI :
					$this->connexion = @new mysqli($this->hote, $this->utilisateur, $this->pass, $this->bdd_nom);
					if ($this->connexion->connect_errno) {
						$e = sprintf(self::ERREUR_CONNEXION_TPL, $this->connexion->connect_error);
						trigger_error($e, E_USER_WARNING);
					}
					if ($this->encodage != null) {
						$this->requeter("SET names '".$this->encodage."'");
					}
					break;
				case self::ABSTRACTION_SQLITE3 :
					// cas particulier de sqllite, on considère que le nom de la base de données correspond au fichier à ouvrir
					$this->connexion = new SQLite3($this->bdd_nom);
					if (!$this->connexion) {
						$e = sprintf(self::ERREUR_CONNEXION_TPL, '');
						trigger_error($e, E_USER_WARNING);
					}
					$this->requeter("PRAGMA case_sensitive_like = false");
					break;
				default:
					$this->connexion = null;
			}

			if ($this->encodage != null) {
				$this->requete("SET names '".$this->encodage."'");
			}
		}
	}

	/**
	 * @deprecated changement de nom. Disparaîtra dans la version 0.4. Utiliser à la place : @see requeter
	 */
	final protected function requete($requete) {
		return $this->requeter($requete);
	}

	/**
	 * Execute une requête et retourne le résultat tel que renvoyé par l'abstraction courante.
	 *
	 * @param string la requête à effectuer
	 * @return mixed un objet contenant le résultat de la requête
	 */
	public function requeter($requete) {
		$this->connecter();

		$retour = null;
		switch ($this->abstraction) {
			case self::ABSTRACTION_PDO :
				try {
					$retour = $this->connexion->query($requete);
				} catch (PDOException $e) {
					$m = sprintf(self::ERREUR_REQUETE_TPL, $e->getFile(), $e->getLine(), $e->getMessage(), $requete);
					trigger_error($m, E_USER_WARNING);
				}
				break;
			case self::ABSTRACTION_MYSQL :
				$retour = mysql_query($requete, $this->connexion);
				break;
			case self::ABSTRACTION_MYSQLI :
				$retour = $this->connexion->query($requete);
				break;
			case self::ABSTRACTION_SQLITE3 :
				$retour = $this->connexion->exec($requete);
				break;
		}
		return $retour;
	}

	/**
	 * @deprecated changement de nom. Disparaîtra dans la version 0.4. Utiliser à la place : @see recuperer
	 */
	final protected function requeteUn($requete, $mode = self::MODE_ASSOC) {
		return $this->recuperer($requete, $mode);
	}

	/**
	 * Execute une requête et retourne le premier résultat sous forme de tableau (par défaut) ou d'objet.
	 * Les noms des champs de la base de données correspondent aux noms des clés du tableau ou aux noms des attributs de l'objet.
	 *
	 * @param string la requête à effectuer
	 * @param string le mode de retour ASSOC (Bdd::MODE_ASSOC) pour un tableau ou OBJECT (Bdd::MODE_OBJET) pour un objet.
	 * @return mixed un objet ou un tableau contenant le résultat de la requête
	 */
	public function recuperer($requete, $mode = self::MODE_ASSOC) {
		$this->connecter();

		$retour = null;
		switch ($this->abstraction) {
			case self::ABSTRACTION_PDO :
				try {
					$resultat = $this->connexion->query($requete);
					$retour = ($resultat !== false) ? $resultat->fetch($this->$mode) : $resultat;
				} catch (PDOException $e) {
					$m = sprintf(self::ERREUR_REQUETE_TPL, $e->getFile(), $e->getLine(), $e->getMessage(), $requete);
					trigger_error($m, E_USER_WARNING);
				}
				break;
			case self::ABSTRACTION_MYSQL :
				$res = mysql_query($requete, $this->connexion);
				$fonction_fetch = $this->$mode;
				$retour = $fonction_fetch($res);
				break;
			case self::ABSTRACTION_MYSQLI :
				$res = $this->connexion->query($requete);
				$fonction_fetch = $this->$mode;
				$retour = $res->$fonction_fetch();
				break;
			case self::ABSTRACTION_SQLITE3 :
				$retour = $this->connexion->querySingle($requete);
				break;
		}
		return $retour;
	}

	/**
	 * @deprecated changement de nom. Disparaîtra dans la version 0.4. Utiliser à la place : @see recupererTous
	 */
	final protected function requeteTous($requete, $mode = self::MODE_ASSOC) {
		return $this->recupererTous($requete, $mode);
	}

	/**
	 * Execute une requête et retourne un tableau de résultats. Un résultat peut être présentés sous forme
	 * de tableau (par défaut) ou d'objet.
	 * Les noms des champs de la base de données correspondent aux noms des clés du tableau résultat ou
	 * aux noms des attributs de l'objet résultat.
	 *
	 * @param string la requête à effectuer
	 * @param string le mode de retour des résultats : ASSOC (Bdd::MODE_ASSOC) pour un tableau ou OBJECT (Bdd::MODE_OBJET) pour un objet.
	 * @return array un tableau contenant les résultats sous forme d'objets ou de tableau (par défaut).
	 */
	public function recupererTous($requete, $mode = self::MODE_ASSOC) {
		$this->connecter();

		$retour = null;
		switch ($this->abstraction) {
			case self::ABSTRACTION_PDO :
				try {
					$resultat = $this->connexion->query($requete);
					$retour = ($resultat !== false) ? $resultat->fetchAll($this->$mode) : $resultat;
				} catch (PDOException $e) {
					$m = sprintf(self::ERREUR_REQUETE_TPL, $e->getFile(), $e->getLine(), $e->getMessage(), $requete);
					trigger_error($m, E_USER_WARNING);
				}
				break;
			case self::ABSTRACTION_MYSQL :
				$resultat = mysql_query($requete, $this->connexion);
				$fonction_fetch = $this->$mode;
				while ($ligne = $fonction_fetch($resultat)) {
					$retour[] = $ligne;
				}
				break;
			case self::ABSTRACTION_MYSQLI :
				$resultat = $this->connexion->query($requete);
				$function_fetch = $this->$mode;
				while ($ligne = $resultat->$function_fetch()) {
					$retour[] = $ligne;
				}
				break;
			case self::ABSTRACTION_SQLITE3 :
				$resultat = $this->connexion->query($requete);
				while ($ligne = $resultat->fetch_array($this->ASSOC)) {
					if ($mode == self::MODE_OBJET) {
						// Cas particulier de sqllite qui n'a pas de fonction fetch_object
						$ligneObjet = new stdClass();
						foreach ($ligne as $colonne => $valeur) {
							$ligneObjet->$colonne = $valeur;
						}
						$ligne = $ligneObjet;
					}
					$retour[] = $ligne;
				}
				break;
		}
		return $retour;
	}

	/**
	 * Protège une chaine de caractères ou le contenu d'un tablea avant l'insertion dans la base de données
	 * (ajout de quotes ou guillemets).
	 * @param Mixed une chaine ou un tableau à protéger
	 * @return mixed la chaine ou le tableau à protégé
	 */
	public function proteger($donnees) {
		$this->connecter();
		if (is_array($donnees)) {
			$retour = $this->protegerTableau($donnees);
		} else {
			$retour = $this->protegerChaine($donnees);
		}
		return $retour;
	}

	/**
	 * Protège une chaine de caractères avant l'insertion dans la base de données (ajout de quotes ou guillemets).
	 * @param string la chaine à protéger
	 * @return string la chaine protégée
	 */
	private function protegerChaine($chaine) {
		$retour = $chaine;
		switch ($this->abstraction) {
			case self::ABSTRACTION_PDO :
				$retour = $this->connexion->quote($chaine);
				break;
			case self::ABSTRACTION_MYSQL :
				$retour = '"'.mysql_real_escape_string($chaine, $this->connexion).'"';
				break;
			case self::ABSTRACTION_MYSQLI :
				$retour = '"'.$this->connexion->real_escape_string($chaine).'"';
				break;
			case self::ABSTRACTION_SQLITE3 :
				$retour = $this->connexion->escapeString($chaine);
				break;
		}
		return $retour;
	}

	/**
	 * @deprecated changement de nom. Deviendra "private" dans la version 0.5. Utiliser à la place : @see proteger
	 */
	public function protegerTableau(Array $tableau) {
		foreach ($tableau as $id => $val) {
			if (is_array($val)) {
				$tableau[$id] = $this->protegerTableau($val);
			} else {
				$tableau[$id] = $this->protegerChaine($val);
			}
		}
		return $tableau;
	}

	/**
	 * Retourne l'identifiant de la dernière ligne insérée, ou la dernière valeur d'une séquence d'objets, dépendamment, dans
	 * le cas de PDO, du driver utilisé. Les méthodes utilisées pour retourner l'identifiant peuvent avoir des comportements
	 * différent. Consulter la documentation PHP correspondant à l'abstraction choisie avant de l'utiliser :
	 * @link(http://fr.php.net/manual/fr/pdo.lastinsertid.php, PDO::lastInsertId([ string $name = NULL ]))
	 * @link(http://php.net/manual/en/mysqli.insert-id.php, mysqli->insert_id())
	 * @link(http://fr.php.net/manual/fr/function.mysql-insert-id.php, mysql_insert_id())
	 * @link(http://fr.php.net/manual/fr/sqlite3.lastinsertrowid.php, SQLite3::lastInsertRowID())
	 * @param mixed un paramètre éventuel à transmettre (en fonction de l'abstraction de BDD utilisée).
	 * @return mixed le dernier identifiant de clé primaire ajouté dans la base de données (string ou int).
	 */
	public function recupererIdDernierAjout($parametres = null) {
		$this->connecter();

		$retour = null;
		switch ($this->abstraction) {
			case self::ABSTRACTION_PDO :
				$retour = $this->connexion->lastInsertId($parametres);
				break;
			case self::ABSTRACTION_MYSQL :
				$retour = mysql_insert_id($this->connexion);
				break;
			case self::ABSTRACTION_MYSQLI :
				$retour = $this->connexion->insert_id();
				break;
			case self::ABSTRACTION_SQLITE3 :
				$retour = $this->connexion->lastInsertRowID();
				break;
		}
		return $retour;
	}

	/**
	 * Destructeur de classe, se contente de fermer explicitement la connexion à la base de donnée.
	 */
	public function __destruct() {
		if (isset($this->connexion)) {
			switch ($this->abstraction) {
				case self::ABSTRACTION_PDO :
					$this->connexion = null;
					break;
				case self::ABSTRACTION_MYSQL :
					if (isset($this->connexion)) {
						return mysql_close($this->connexion);
					}
					break;
				case self::ABSTRACTION_MYSQLI :
					$this->connexion->close();
					break;
				case self::ABSTRACTION_SQLITE3 :
					$this->connexion->close();
					break;
			}
		}
	}
}
?>";s:19:" * namespaceAliases";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:11:" * includes";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:12:" * constants";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:12:" * functions";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:10:" * classes";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:4:"\Bdd";O:40:"phpDocumentor\Descriptor\ClassDescriptor":18:{s:9:" * parent";s:0:"";s:13:" * implements";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:11:" * abstract";b:0;s:8:" * final";b:0;s:12:" * constants";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:9:{s:18:"ERREUR_REQUETE_TPL";O:43:"phpDocumentor\Descriptor\ConstantDescriptor":13:{s:9:" * parent";r:15;s:8:" * types";N;s:8:" * value";s:75:"'Requête echec.\nFichier : %s.\nLigne : %s.\nMessage : %s.\nRequête : %s'";s:8:" * fqsen";s:24:"\Bdd::ERREUR_REQUETE_TPL";s:7:" * name";s:18:"ERREUR_REQUETE_TPL";s:12:" * namespace";s:1:"\";s:10:" * package";s:0:"";s:10:" * summary";s:75:"Constante stockant le squelette du message en cas d'erreur de requête sql.";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:25;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:20:"ERREUR_CONNEXION_TPL";O:43:"phpDocumentor\Descriptor\ConstantDescriptor":13:{s:9:" * parent";r:15;s:8:" * types";N;s:8:" * value";s:115:"'Erreur de connexion à la base de données, vérifiez les paramètres du fichier de configuration.\nMessage : %S.'";s:8:" * fqsen";s:26:"\Bdd::ERREUR_CONNEXION_TPL";s:7:" * name";s:20:"ERREUR_CONNEXION_TPL";s:12:" * namespace";s:1:"\";s:10:" * package";s:0:"";s:10:" * summary";s:95:"Constante stockant le squelette du message en cas d'erreur de connexion à la base de données.";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:28;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:24:"ERREUR_SELECTION_BDD_TPL";O:43:"phpDocumentor\Descriptor\ConstantDescriptor":13:{s:9:" * parent";r:15;s:8:" * types";N;s:8:" * value";s:116:"'Erreur de sélection de la base de données, vérifiez les paramètres du fichier de configuration.\nMessage : %S.'";s:8:" * fqsen";s:30:"\Bdd::ERREUR_SELECTION_BDD_TPL";s:7:" * name";s:24:"ERREUR_SELECTION_BDD_TPL";s:12:" * namespace";s:1:"\";s:10:" * package";s:0:"";s:10:" * summary";s:96:"Constante stockant le squelette du message en cas d'erreur de sélection de la base de données.";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:31;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:15:"ABSTRACTION_PDO";O:43:"phpDocumentor\Descriptor\ConstantDescriptor":13:{s:9:" * parent";r:15;s:8:" * types";N;s:8:" * value";s:5:"'pdo'";s:8:" * fqsen";s:21:"\Bdd::ABSTRACTION_PDO";s:7:" * name";s:15:"ABSTRACTION_PDO";s:12:" * namespace";s:1:"\";s:10:" * package";s:0:"";s:10:" * summary";s:53:"Constante stockant le code pour l'abstraction de PDO.";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:34;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:17:"ABSTRACTION_MYSQL";O:43:"phpDocumentor\Descriptor\ConstantDescriptor":13:{s:9:" * parent";r:15;s:8:" * types";N;s:8:" * value";s:7:"'mysql'";s:8:" * fqsen";s:23:"\Bdd::ABSTRACTION_MYSQL";s:7:" * name";s:17:"ABSTRACTION_MYSQL";s:12:" * namespace";s:1:"\";s:10:" * package";s:0:"";s:10:" * summary";s:55:"Constante stockant le code pour l'abstraction de mysql.";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:37;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:18:"ABSTRACTION_MYSQLI";O:43:"phpDocumentor\Descriptor\ConstantDescriptor":13:{s:9:" * parent";r:15;s:8:" * types";N;s:8:" * value";s:8:"'mysqli'";s:8:" * fqsen";s:24:"\Bdd::ABSTRACTION_MYSQLI";s:7:" * name";s:18:"ABSTRACTION_MYSQLI";s:12:" * namespace";s:1:"\";s:10:" * package";s:0:"";s:10:" * summary";s:56:"Constante stockant le code pour l'abstraction de mysqli.";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:40;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:19:"ABSTRACTION_SQLITE3";O:43:"phpDocumentor\Descriptor\ConstantDescriptor":13:{s:9:" * parent";r:15;s:8:" * types";N;s:8:" * value";s:9:"'sqlite3'";s:8:" * fqsen";s:25:"\Bdd::ABSTRACTION_SQLITE3";s:7:" * name";s:19:"ABSTRACTION_SQLITE3";s:12:" * namespace";s:1:"\";s:10:" * package";s:0:"";s:10:" * summary";s:57:"Constante stockant le code pour l'abstraction de SQLite3.";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:43;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:10:"MODE_ASSOC";O:43:"phpDocumentor\Descriptor\ConstantDescriptor":13:{s:9:" * parent";r:15;s:8:" * types";N;s:8:" * value";s:7:"'ASSOC'";s:8:" * fqsen";s:16:"\Bdd::MODE_ASSOC";s:7:" * name";s:10:"MODE_ASSOC";s:12:" * namespace";s:1:"\";s:10:" * package";s:0:"";s:10:" * summary";s:88:"Constante stockant le code pour le mode tableau associatif des résultats des requêtes.";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:46;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:10:"MODE_OBJET";O:43:"phpDocumentor\Descriptor\ConstantDescriptor":13:{s:9:" * parent";r:15;s:8:" * types";N;s:8:" * value";s:8:"'OBJECT'";s:8:" * fqsen";s:16:"\Bdd::MODE_OBJET";s:7:" * name";s:10:"MODE_OBJET";s:12:" * namespace";s:1:"\";s:10:" * package";s:0:"";s:10:" * summary";s:75:"Constante stockant le code pour le mode objet des résultats des requêtes.";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:49;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:13:" * properties";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:12:{s:5:"ASSOC";O:43:"phpDocumentor\Descriptor\PropertyDescriptor":15:{s:9:" * parent";r:15;s:8:" * types";N;s:10:" * default";s:2:"''";s:9:" * static";b:0;s:13:" * visibility";s:9:"protected";s:8:" * fqsen";s:11:"\Bdd::ASSOC";s:7:" * name";s:5:"ASSOC";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:24:"Mode de fetch associatif";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:52;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:3:"var";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:6:"OBJECT";O:43:"phpDocumentor\Descriptor\PropertyDescriptor":15:{s:9:" * parent";r:15;s:8:" * types";N;s:10:" * default";s:2:"''";s:9:" * static";b:0;s:13:" * visibility";s:9:"protected";s:8:" * fqsen";s:12:"\Bdd::OBJECT";s:7:" * name";s:6:"OBJECT";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:19:"Mode de fetch objet";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:55;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:3:"var";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:11:"abstraction";O:43:"phpDocumentor\Descriptor\PropertyDescriptor":15:{s:9:" * parent";r:15;s:8:" * types";N;s:10:" * default";N;s:9:" * static";b:0;s:13:" * visibility";s:9:"protected";s:8:" * fqsen";s:17:"\Bdd::abstraction";s:7:" * name";s:11:"abstraction";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:41:"abstraction de base de données utilisée";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:58;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:3:"var";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:3:"dsn";O:43:"phpDocumentor\Descriptor\PropertyDescriptor":15:{s:9:" * parent";r:15;s:8:" * types";N;s:10:" * default";N;s:9:" * static";b:0;s:13:" * visibility";s:9:"protected";s:8:" * fqsen";s:9:"\Bdd::dsn";s:7:" * name";s:3:"dsn";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:40:"DSN pour accéder à la base de données";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:61;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:3:"var";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:4:"type";O:43:"phpDocumentor\Descriptor\PropertyDescriptor":15:{s:9:" * parent";r:15;s:8:" * types";N;s:10:" * default";N;s:9:" * static";b:0;s:13:" * visibility";s:9:"protected";s:8:" * fqsen";s:10:"\Bdd::type";s:7:" * name";s:4:"type";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:46:"Type de base de données (mysql, mysqli, etc .";s:14:" * description";s:3:"..)";s:17:" * fileDescriptor";N;s:7:" * line";i:64;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:3:"var";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:4:"hote";O:43:"phpDocumentor\Descriptor\PropertyDescriptor":15:{s:9:" * parent";r:15;s:8:" * types";N;s:10:" * default";N;s:9:" * static";b:0;s:13:" * visibility";s:9:"protected";s:8:" * fqsen";s:10:"\Bdd::hote";s:7:" * name";s:4:"hote";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:36:"Hote herbergeant la base de données";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:67;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:3:"var";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:7:"bdd_nom";O:43:"phpDocumentor\Descriptor\PropertyDescriptor":15:{s:9:" * parent";r:15;s:8:" * types";N;s:10:" * default";N;s:9:" * static";b:0;s:13:" * visibility";s:9:"protected";s:8:" * fqsen";s:13:"\Bdd::bdd_nom";s:7:" * name";s:7:"bdd_nom";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:67:"Nom de la base de données à laquelle le modèle doit se connecter";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:70;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:3:"var";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:11:"utilisateur";O:43:"phpDocumentor\Descriptor\PropertyDescriptor":15:{s:9:" * parent";r:15;s:8:" * types";N;s:10:" * default";N;s:9:" * static";b:0;s:13:" * visibility";s:9:"protected";s:8:" * fqsen";s:17:"\Bdd::utilisateur";s:7:" * name";s:11:"utilisateur";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:17:"Nom d'utilisateur";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:73;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:3:"var";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:4:"pass";O:43:"phpDocumentor\Descriptor\PropertyDescriptor":15:{s:9:" * parent";r:15;s:8:" * types";N;s:10:" * default";N;s:9:" * static";b:0;s:13:" * visibility";s:9:"protected";s:8:" * fqsen";s:10:"\Bdd::pass";s:7:" * name";s:4:"pass";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:12:"Mot de passe";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:76;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:3:"var";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:8:"encodage";O:43:"phpDocumentor\Descriptor\PropertyDescriptor":15:{s:9:" * parent";r:15;s:8:" * types";N;s:10:" * default";s:4:"null";s:9:" * static";b:0;s:13:" * visibility";s:9:"protected";s:8:" * fqsen";s:14:"\Bdd::encodage";s:7:" * name";s:8:"encodage";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:31:"Encodage de la base de données";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:79;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:3:"var";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:9:"connexion";O:43:"phpDocumentor\Descriptor\PropertyDescriptor":15:{s:9:" * parent";r:15;s:8:" * types";N;s:10:" * default";s:4:"null";s:9:" * static";b:0;s:13:" * visibility";s:9:"protected";s:8:" * fqsen";s:15:"\Bdd::connexion";s:7:" * name";s:9:"connexion";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:32:"Connexion à la base de données";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:82;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:3:"var";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:23:"parametres_obligatoires";O:43:"phpDocumentor\Descriptor\PropertyDescriptor":15:{s:9:" * parent";r:15;s:8:" * types";N;s:10:" * default";s:122:"array('bdd_abstraction', 'bdd_protocole', 'bdd_serveur', 'bdd_nom', 'bdd_utilisateur', 'bdd_mot_de_passe', 'bdd_encodage')";s:9:" * static";b:0;s:13:" * visibility";s:9:"protected";s:8:" * fqsen";s:29:"\Bdd::parametres_obligatoires";s:7:" * name";s:23:"parametres_obligatoires";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:119:"Tableau des noms des paramètres à définir dans le fichier de config car obligatoirement nécessaire à cette classe.";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:85;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:3:"var";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:10:" * methods";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:14:{s:11:"__construct";O:41:"phpDocumentor\Descriptor\MethodDescriptor":16:{s:9:" * parent";r:15;s:11:" * abstract";b:0;s:8:" * final";b:0;s:9:" * static";b:0;s:13:" * visibility";s:6:"public";s:12:" * arguments";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:8:" * fqsen";s:19:"\Bdd::__construct()";s:7:" * name";s:11:"__construct";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:54:"Constructeur par défaut, appelé à l'initialisation.";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:89;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{s:6:"return";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:5:"param";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:20:"initialiserProtocole";O:41:"phpDocumentor\Descriptor\MethodDescriptor":16:{s:9:" * parent";r:15;s:11:" * abstract";b:0;s:8:" * final";b:0;s:9:" * static";b:0;s:13:" * visibility";s:9:"protected";s:12:" * arguments";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:8:" * fqsen";s:28:"\Bdd::initialiserProtocole()";s:7:" * name";s:20:"initialiserProtocole";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:121:"Initialise les constantes de classe à leur bonne valeur et déclenche une erreur si le protocole n'est pas bien défini.";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:109;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{s:6:"return";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:5:"param";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:9:"connecter";O:41:"phpDocumentor\Descriptor\MethodDescriptor":16:{s:9:" * parent";r:15;s:11:" * abstract";b:0;s:8:" * final";b:0;s:9:" * static";b:0;s:13:" * visibility";s:9:"protected";s:12:" * arguments";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:8:" * fqsen";s:17:"\Bdd::connecter()";s:7:" * name";s:9:"connecter";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:105:"Connection à la base de données en utilisant les informations fournies par
le fichier de configuration.";s:14:" * description";s:296:"Cette méthode est private et final car elle n'a pas vocation a être appelée par l'utilisateur.
TODO : il est peut être nécessaire pour MYSQL, MYSQLi et SQLITE3 afin d'éviter les boucles infinis
d'erreur quand la bdd n'est pas configuré d'utiliser : $this->connexion->query (comme pour PDO)";s:17:" * fileDescriptor";N;s:7:" * line";i:140;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{s:6:"return";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:5:"param";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:7:"requete";O:41:"phpDocumentor\Descriptor\MethodDescriptor":16:{s:9:" * parent";r:15;s:11:" * abstract";b:0;s:8:" * final";b:1;s:9:" * static";b:0;s:13:" * visibility";s:9:"protected";s:12:" * arguments";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:8:"$requete";O:43:"phpDocumentor\Descriptor\ArgumentDescriptor":13:{s:8:" * types";a:0:{}s:10:" * default";N;s:14:" * byReference";b:0;s:8:" * fqsen";s:0:"";s:7:" * name";s:8:"$requete";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:0;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:8:" * fqsen";s:15:"\Bdd::requete()";s:7:" * name";s:7:"requete";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:205;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:3:{s:10:"deprecated";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:49:"phpDocumentor\Descriptor\Tag\DeprecatedDescriptor":4:{s:10:" * version";s:0:"";s:7:" * name";s:10:"deprecated";s:14:" * description";s:89:"changement de nom. Disparaîtra dans la version 0.4. Utiliser à la place : @see requeter";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:5:"param";a:0:{}s:6:"return";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{i:0;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50015";s:7:" * line";i:205;s:10:" * context";a:2:{i:0;s:8:"$requete";i:1;s:9:"requete()";}}i:1;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50008";s:7:" * line";i:205;s:10:" * context";a:1:{i:0;s:9:"requete()";}}}}}s:8:"requeter";O:41:"phpDocumentor\Descriptor\MethodDescriptor":16:{s:9:" * parent";r:15;s:11:" * abstract";b:0;s:8:" * final";b:0;s:9:" * static";b:0;s:13:" * visibility";s:6:"public";s:12:" * arguments";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:8:"$requete";O:43:"phpDocumentor\Descriptor\ArgumentDescriptor":13:{s:8:" * types";a:0:{}s:10:" * default";N;s:14:" * byReference";b:0;s:8:" * fqsen";s:0:"";s:7:" * name";s:8:"$requete";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:0;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:8:" * fqsen";s:16:"\Bdd::requeter()";s:7:" * name";s:8:"requeter";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:90:"Execute une requête et retourne le résultat tel que renvoyé par l'abstraction courante.";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:215;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{s:5:"param";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:44:"phpDocumentor\Descriptor\Tag\ParamDescriptor":5:{s:15:" * variableName";s:0:"";s:8:" * types";a:1:{i:0;s:6:"string";}s:7:" * name";s:5:"param";s:14:" * description";s:24:"la requête à effectuer";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:6:"return";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:45:"phpDocumentor\Descriptor\Tag\ReturnDescriptor":4:{s:8:" * types";a:1:{i:0;s:5:"mixed";}s:7:" * name";s:6:"return";s:14:" * description";s:46:"un objet contenant le résultat de la requête";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50015";s:7:" * line";i:215;s:10:" * context";a:2:{i:0;s:8:"$requete";i:1;s:10:"requeter()";}}}}}s:9:"requeteUn";O:41:"phpDocumentor\Descriptor\MethodDescriptor":16:{s:9:" * parent";r:15;s:11:" * abstract";b:0;s:8:" * final";b:1;s:9:" * static";b:0;s:13:" * visibility";s:9:"protected";s:12:" * arguments";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{s:8:"$requete";O:43:"phpDocumentor\Descriptor\ArgumentDescriptor":13:{s:8:" * types";a:0:{}s:10:" * default";N;s:14:" * byReference";b:0;s:8:" * fqsen";s:0:"";s:7:" * name";s:8:"$requete";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:0;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:5:"$mode";O:43:"phpDocumentor\Descriptor\ArgumentDescriptor":13:{s:8:" * types";a:0:{}s:10:" * default";s:16:"self::MODE_ASSOC";s:14:" * byReference";b:0;s:8:" * fqsen";s:0:"";s:7:" * name";s:5:"$mode";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:0;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:8:" * fqsen";s:17:"\Bdd::requeteUn()";s:7:" * name";s:9:"requeteUn";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:244;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:3:{s:10:"deprecated";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:49:"phpDocumentor\Descriptor\Tag\DeprecatedDescriptor":4:{s:10:" * version";s:0:"";s:7:" * name";s:10:"deprecated";s:14:" * description";s:90:"changement de nom. Disparaîtra dans la version 0.4. Utiliser à la place : @see recuperer";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:5:"param";a:0:{}s:6:"return";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:3:{i:0;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50015";s:7:" * line";i:244;s:10:" * context";a:2:{i:0;s:8:"$requete";i:1;s:11:"requeteUn()";}}i:1;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50015";s:7:" * line";i:244;s:10:" * context";a:2:{i:0;s:5:"$mode";i:1;s:11:"requeteUn()";}}i:2;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50008";s:7:" * line";i:244;s:10:" * context";a:1:{i:0;s:11:"requeteUn()";}}}}}s:9:"recuperer";O:41:"phpDocumentor\Descriptor\MethodDescriptor":16:{s:9:" * parent";r:15;s:11:" * abstract";b:0;s:8:" * final";b:0;s:9:" * static";b:0;s:13:" * visibility";s:6:"public";s:12:" * arguments";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{s:8:"$requete";O:43:"phpDocumentor\Descriptor\ArgumentDescriptor":13:{s:8:" * types";a:0:{}s:10:" * default";N;s:14:" * byReference";b:0;s:8:" * fqsen";s:0:"";s:7:" * name";s:8:"$requete";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:0;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:5:"$mode";O:43:"phpDocumentor\Descriptor\ArgumentDescriptor":13:{s:8:" * types";a:0:{}s:10:" * default";s:16:"self::MODE_ASSOC";s:14:" * byReference";b:0;s:8:" * fqsen";s:0:"";s:7:" * name";s:5:"$mode";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:0;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:8:" * fqsen";s:17:"\Bdd::recuperer()";s:7:" * name";s:9:"recuperer";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:101:"Execute une requête et retourne le premier résultat sous forme de tableau (par défaut) ou d'objet.";s:14:" * description";s:124:"Les noms des champs de la base de données correspondent aux noms des clés du tableau ou aux noms des attributs de l'objet.";s:17:" * fileDescriptor";N;s:7:" * line";i:256;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{s:5:"param";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{i:0;O:44:"phpDocumentor\Descriptor\Tag\ParamDescriptor":5:{s:15:" * variableName";s:0:"";s:8:" * types";a:1:{i:0;s:6:"string";}s:7:" * name";s:5:"param";s:14:" * description";s:24:"la requête à effectuer";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}i:1;O:44:"phpDocumentor\Descriptor\Tag\ParamDescriptor":5:{s:15:" * variableName";s:0:"";s:8:" * types";a:1:{i:0;s:6:"string";}s:7:" * name";s:5:"param";s:14:" * description";s:100:"le mode de retour ASSOC (Bdd::MODE_ASSOC) pour un tableau ou OBJECT (Bdd::MODE_OBJET) pour un objet.";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:6:"return";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:45:"phpDocumentor\Descriptor\Tag\ReturnDescriptor":4:{s:8:" * types";a:1:{i:0;s:5:"mixed";}s:7:" * name";s:6:"return";s:14:" * description";s:60:"un objet ou un tableau contenant le résultat de la requête";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{i:0;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50015";s:7:" * line";i:256;s:10:" * context";a:2:{i:0;s:8:"$requete";i:1;s:11:"recuperer()";}}i:1;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50015";s:7:" * line";i:256;s:10:" * context";a:2:{i:0;s:5:"$mode";i:1;s:11:"recuperer()";}}}}}s:11:"requeteTous";O:41:"phpDocumentor\Descriptor\MethodDescriptor":16:{s:9:" * parent";r:15;s:11:" * abstract";b:0;s:8:" * final";b:1;s:9:" * static";b:0;s:13:" * visibility";s:9:"protected";s:12:" * arguments";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{s:8:"$requete";O:43:"phpDocumentor\Descriptor\ArgumentDescriptor":13:{s:8:" * types";a:0:{}s:10:" * default";N;s:14:" * byReference";b:0;s:8:" * fqsen";s:0:"";s:7:" * name";s:8:"$requete";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:0;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:5:"$mode";O:43:"phpDocumentor\Descriptor\ArgumentDescriptor":13:{s:8:" * types";a:0:{}s:10:" * default";s:16:"self::MODE_ASSOC";s:14:" * byReference";b:0;s:8:" * fqsen";s:0:"";s:7:" * name";s:5:"$mode";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:0;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:8:" * fqsen";s:19:"\Bdd::requeteTous()";s:7:" * name";s:11:"requeteTous";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:290;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:3:{s:10:"deprecated";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:49:"phpDocumentor\Descriptor\Tag\DeprecatedDescriptor":4:{s:10:" * version";s:0:"";s:7:" * name";s:10:"deprecated";s:14:" * description";s:94:"changement de nom. Disparaîtra dans la version 0.4. Utiliser à la place : @see recupererTous";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:5:"param";a:0:{}s:6:"return";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:3:{i:0;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50015";s:7:" * line";i:290;s:10:" * context";a:2:{i:0;s:8:"$requete";i:1;s:13:"requeteTous()";}}i:1;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50015";s:7:" * line";i:290;s:10:" * context";a:2:{i:0;s:5:"$mode";i:1;s:13:"requeteTous()";}}i:2;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50008";s:7:" * line";i:290;s:10:" * context";a:1:{i:0;s:13:"requeteTous()";}}}}}s:13:"recupererTous";O:41:"phpDocumentor\Descriptor\MethodDescriptor":16:{s:9:" * parent";r:15;s:11:" * abstract";b:0;s:8:" * final";b:0;s:9:" * static";b:0;s:13:" * visibility";s:6:"public";s:12:" * arguments";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{s:8:"$requete";O:43:"phpDocumentor\Descriptor\ArgumentDescriptor":13:{s:8:" * types";a:0:{}s:10:" * default";N;s:14:" * byReference";b:0;s:8:" * fqsen";s:0:"";s:7:" * name";s:8:"$requete";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:0;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}s:5:"$mode";O:43:"phpDocumentor\Descriptor\ArgumentDescriptor":13:{s:8:" * types";a:0:{}s:10:" * default";s:16:"self::MODE_ASSOC";s:14:" * byReference";b:0;s:8:" * fqsen";s:0:"";s:7:" * name";s:5:"$mode";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:0;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:8:" * fqsen";s:21:"\Bdd::recupererTous()";s:7:" * name";s:13:"recupererTous";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:142:"Execute une requête et retourne un tableau de résultats. Un résultat peut être présentés sous forme
de tableau (par défaut) ou d'objet.";s:14:" * description";s:144:"Les noms des champs de la base de données correspondent aux noms des clés du tableau résultat ou
aux noms des attributs de l'objet résultat.";s:17:" * fileDescriptor";N;s:7:" * line";i:304;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{s:5:"param";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{i:0;O:44:"phpDocumentor\Descriptor\Tag\ParamDescriptor":5:{s:15:" * variableName";s:0:"";s:8:" * types";a:1:{i:0;s:6:"string";}s:7:" * name";s:5:"param";s:14:" * description";s:24:"la requête à effectuer";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}i:1;O:44:"phpDocumentor\Descriptor\Tag\ParamDescriptor":5:{s:15:" * variableName";s:0:"";s:8:" * types";a:1:{i:0;s:6:"string";}s:7:" * name";s:5:"param";s:14:" * description";s:117:"le mode de retour des résultats : ASSOC (Bdd::MODE_ASSOC) pour un tableau ou OBJECT (Bdd::MODE_OBJET) pour un objet.";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:6:"return";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:45:"phpDocumentor\Descriptor\Tag\ReturnDescriptor":4:{s:8:" * types";a:1:{i:0;s:5:"array";}s:7:" * name";s:6:"return";s:14:" * description";s:84:"un tableau contenant les résultats sous forme d'objets ou de tableau (par défaut).";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{i:0;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50015";s:7:" * line";i:304;s:10:" * context";a:2:{i:0;s:8:"$requete";i:1;s:15:"recupererTous()";}}i:1;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50015";s:7:" * line";i:304;s:10:" * context";a:2:{i:0;s:5:"$mode";i:1;s:15:"recupererTous()";}}}}}s:8:"proteger";O:41:"phpDocumentor\Descriptor\MethodDescriptor":16:{s:9:" * parent";r:15;s:11:" * abstract";b:0;s:8:" * final";b:0;s:9:" * static";b:0;s:13:" * visibility";s:6:"public";s:12:" * arguments";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:8:"$donnees";O:43:"phpDocumentor\Descriptor\ArgumentDescriptor":13:{s:8:" * types";a:0:{}s:10:" * default";N;s:14:" * byReference";b:0;s:8:" * fqsen";s:0:"";s:7:" * name";s:8:"$donnees";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:0;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:8:" * fqsen";s:16:"\Bdd::proteger()";s:7:" * name";s:8:"proteger";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:136:"Protège une chaine de caractères ou le contenu d'un tablea avant l'insertion dans la base de données
(ajout de quotes ou guillemets).";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:356;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{s:5:"param";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:44:"phpDocumentor\Descriptor\Tag\ParamDescriptor":5:{s:15:" * variableName";s:0:"";s:8:" * types";a:1:{i:0;s:5:"Mixed";}s:7:" * name";s:5:"param";s:14:" * description";s:37:"une chaine ou un tableau à protéger";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:6:"return";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:45:"phpDocumentor\Descriptor\Tag\ReturnDescriptor":4:{s:8:" * types";a:1:{i:0;s:5:"mixed";}s:7:" * name";s:6:"return";s:14:" * description";s:36:"la chaine ou le tableau à protégé";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50015";s:7:" * line";i:356;s:10:" * context";a:2:{i:0;s:8:"$donnees";i:1;s:10:"proteger()";}}}}}s:14:"protegerChaine";O:41:"phpDocumentor\Descriptor\MethodDescriptor":16:{s:9:" * parent";r:15;s:11:" * abstract";b:0;s:8:" * final";b:0;s:9:" * static";b:0;s:13:" * visibility";s:7:"private";s:12:" * arguments";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:7:"$chaine";O:43:"phpDocumentor\Descriptor\ArgumentDescriptor":13:{s:8:" * types";a:0:{}s:10:" * default";N;s:14:" * byReference";b:0;s:8:" * fqsen";s:0:"";s:7:" * name";s:7:"$chaine";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:0;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:8:" * fqsen";s:22:"\Bdd::protegerChaine()";s:7:" * name";s:14:"protegerChaine";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:110:"Protège une chaine de caractères avant l'insertion dans la base de données (ajout de quotes ou guillemets).";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:371;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{s:5:"param";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:44:"phpDocumentor\Descriptor\Tag\ParamDescriptor":5:{s:15:" * variableName";s:0:"";s:8:" * types";a:1:{i:0;s:6:"string";}s:7:" * name";s:5:"param";s:14:" * description";s:22:"la chaine à protéger";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:6:"return";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:45:"phpDocumentor\Descriptor\Tag\ReturnDescriptor":4:{s:8:" * types";a:1:{i:0;s:6:"string";}s:7:" * name";s:6:"return";s:14:" * description";s:20:"la chaine protégée";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50015";s:7:" * line";i:371;s:10:" * context";a:2:{i:0;s:7:"$chaine";i:1;s:16:"protegerChaine()";}}}}}s:15:"protegerTableau";O:41:"phpDocumentor\Descriptor\MethodDescriptor":16:{s:9:" * parent";r:15;s:11:" * abstract";b:0;s:8:" * final";b:0;s:9:" * static";b:0;s:13:" * visibility";s:6:"public";s:12:" * arguments";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:8:"$tableau";O:43:"phpDocumentor\Descriptor\ArgumentDescriptor":13:{s:8:" * types";a:1:{i:0;s:5:"array";}s:10:" * default";N;s:14:" * byReference";b:0;s:8:" * fqsen";s:0:"";s:7:" * name";s:8:"$tableau";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:0;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:8:" * fqsen";s:23:"\Bdd::protegerTableau()";s:7:" * name";s:15:"protegerTableau";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:393;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:3:{s:10:"deprecated";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:49:"phpDocumentor\Descriptor\Tag\DeprecatedDescriptor":4:{s:10:" * version";s:0:"";s:7:" * name";s:10:"deprecated";s:14:" * description";s:96:"changement de nom. Deviendra "private" dans la version 0.5. Utiliser à la place : @see proteger";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:5:"param";a:0:{}s:6:"return";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50008";s:7:" * line";i:393;s:10:" * context";a:1:{i:0;s:17:"protegerTableau()";}}}}}s:23:"recupererIdDernierAjout";O:41:"phpDocumentor\Descriptor\MethodDescriptor":16:{s:9:" * parent";r:15;s:11:" * abstract";b:0;s:8:" * final";b:0;s:9:" * static";b:0;s:13:" * visibility";s:6:"public";s:12:" * arguments";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:11:"$parametres";O:43:"phpDocumentor\Descriptor\ArgumentDescriptor":13:{s:8:" * types";a:0:{}s:10:" * default";s:4:"null";s:14:" * byReference";b:0;s:8:" * fqsen";s:0:"";s:7:" * name";s:11:"$parametres";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:0;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:8:" * fqsen";s:31:"\Bdd::recupererIdDernierAjout()";s:7:" * name";s:23:"recupererIdDernierAjout";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:349:"Retourne l'identifiant de la dernière ligne insérée, ou la dernière valeur d'une séquence d'objets, dépendamment, dans
le cas de PDO, du driver utilisé. Les méthodes utilisées pour retourner l'identifiant peuvent avoir des comportements
différent. Consulter la documentation PHP correspondant à l'abstraction choisie avant de l'utiliser :";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:415;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:3:{s:4:"link";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:4:{i:0;O:43:"phpDocumentor\Descriptor\Tag\LinkDescriptor":4:{s:7:" * link";s:50:"(http://fr.php.net/manual/fr/pdo.lastinsertid.php,";s:7:" * name";s:4:"link";s:14:" * description";s:43:"PDO::lastInsertId([ string $name = NULL ]))";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}i:1;O:43:"phpDocumentor\Descriptor\Tag\LinkDescriptor":4:{s:7:" * link";s:47:"(http://php.net/manual/en/mysqli.insert-id.php,";s:7:" * name";s:4:"link";s:14:" * description";s:20:"mysqli->insert_id())";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}i:2;O:43:"phpDocumentor\Descriptor\Tag\LinkDescriptor":4:{s:7:" * link";s:58:"(http://fr.php.net/manual/fr/function.mysql-insert-id.php,";s:7:" * name";s:4:"link";s:14:" * description";s:18:"mysql_insert_id())";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}i:3;O:43:"phpDocumentor\Descriptor\Tag\LinkDescriptor":4:{s:7:" * link";s:57:"(http://fr.php.net/manual/fr/sqlite3.lastinsertrowid.php,";s:7:" * name";s:4:"link";s:14:" * description";s:27:"SQLite3::lastInsertRowID())";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:5:"param";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:44:"phpDocumentor\Descriptor\Tag\ParamDescriptor":5:{s:15:" * variableName";s:0:"";s:8:" * types";a:1:{i:0;s:5:"mixed";}s:7:" * name";s:5:"param";s:14:" * description";s:87:"un paramètre éventuel à transmettre (en fonction de l'abstraction de BDD utilisée).";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:6:"return";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:45:"phpDocumentor\Descriptor\Tag\ReturnDescriptor":4:{s:8:" * types";a:1:{i:0;s:5:"mixed";}s:7:" * name";s:6:"return";s:14:" * description";s:89:"le dernier identifiant de clé primaire ajouté dans la base de données (string ou int).";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50015";s:7:" * line";i:415;s:10:" * context";a:2:{i:0;s:11:"$parametres";i:1;s:25:"recupererIdDernierAjout()";}}}}}s:10:"__destruct";O:41:"phpDocumentor\Descriptor\MethodDescriptor":16:{s:9:" * parent";r:15;s:11:" * abstract";b:0;s:8:" * final";b:0;s:9:" * static";b:0;s:13:" * visibility";s:6:"public";s:12:" * arguments";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:8:" * fqsen";s:18:"\Bdd::__destruct()";s:7:" * name";s:10:"__destruct";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:94:"Destructeur de classe, se contente de fermer explicitement la connexion à la base de donnée.";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:439;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{s:6:"return";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:5:"param";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:13:" * usedTraits";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:8:" * fqsen";s:4:"\Bdd";s:7:" * name";s:3:"Bdd";s:12:" * namespace";s:0:"";s:10:" * package";s:9:"Framework";s:10:" * summary";s:41:"Classe Bdd, d'accés au base de données.";s:14:" * description";s:563:"Elle fait office d'abstraction légère de base de données en utilisant diverses possibilités d'accès aux
bases de données (PDO, mysql, mysqli, SQLite3).
Les valeurs pour le paramètre 'bdd_abstraction' du fichier config.ini sont : pdo, mysql, mysqli, sqlite3
Vous pouvez aussi utiliser : "php:Bdd::ABSTRACTION_PDO","php:Bdd::ABSTRACTION_MYSQL", "php:Bdd::ABSTRACTION_MYSQLI",
"php:Bdd::ABSTRACTION_SQLITE3".
Elle peut être étendue, pour ajouter le support d'autres bases de données où prendre en compte des méthodes spécifique à
un type d'abstraction.";s:17:" * fileDescriptor";r:1;s:7:" * line";i:23;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:8:{s:8:"category";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:38:"phpDocumentor\Descriptor\TagDescriptor":3:{s:7:" * name";s:8:"category";s:14:" * description";s:7:"php 5.2";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:7:"package";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:38:"phpDocumentor\Descriptor\TagDescriptor":3:{s:7:" * name";s:7:"package";s:14:" * description";s:9:"Framework";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:6:"author";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{i:0;O:45:"phpDocumentor\Descriptor\Tag\AuthorDescriptor":3:{s:7:" * name";s:6:"author";s:14:" * description";s:47:"Aurélien PERONNET <aurelien@tela-botanica.org>";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}i:1;O:45:"phpDocumentor\Descriptor\Tag\AuthorDescriptor":3:{s:7:" * name";s:6:"author";s:14:" * description";s:43:"Jean-Pascal MILCENT <jpm@tela-botanica.org>";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:9:"copyright";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:38:"phpDocumentor\Descriptor\TagDescriptor":3:{s:7:" * name";s:9:"copyright";s:14:" * description";s:61:"Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:7:"license";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{i:0;O:38:"phpDocumentor\Descriptor\TagDescriptor":3:{s:7:" * name";s:7:"license";s:14:" * description";s:71:"http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}i:1;O:38:"phpDocumentor\Descriptor\TagDescriptor":3:{s:7:" * name";s:7:"license";s:14:" * description";s:52:"http://www.gnu.org/licenses/gpl.html Licence GNU-GPL";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:7:"version";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:46:"phpDocumentor\Descriptor\Tag\VersionDescriptor":4:{s:10:" * version";s:0:"";s:7:" * name";s:7:"version";s:14:" * description";s:43:"$Id: Bdd.php 461 2014-03-05 16:13:16Z jpm $";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:4:"link";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:43:"phpDocumentor\Descriptor\Tag\LinkDescriptor":4:{s:7:" * link";s:15:"/doc/framework/";s:7:" * name";s:4:"link";s:14:" * description";s:15:"/doc/framework/";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:10:"subpackage";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:13:" * interfaces";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * traits";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:10:" * markers";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:8:" * fqsen";s:0:"";s:7:" * name";s:7:"Bdd.php";s:12:" * namespace";N;s:10:" * package";s:7:"Default";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:0;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{s:7:"package";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:10:"subpackage";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50000";s:7:" * line";i:0;s:10:" * context";a:1:{i:0;s:0:"";}}}}}