Blame | Last modification | View Log | RSS feed
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<meta charset="utf-8"/>
<title>TBFramework - v0.4</title>
<meta name="author" content=""/>
<meta name="description" content=""/>
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
<link href="https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet">
<link href="../css/prism.css" rel="stylesheet" media="all"/>
<link href="../css/template.css" rel="stylesheet" media="all"/>
<!--[if lt IE 9]>
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
<![endif]-->
<script src="https://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="https://code.jquery.com/ui/1.10.3/jquery-ui.min.js" type="text/javascript"></script>
<script src="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<script src="../js/jquery.smooth-scroll.js"></script>
<script src="../js/prism.min.js"></script>
<!-- TODO: Add http://jscrollpane.kelvinluck.com/ to style the scrollbars for browsers not using webkit-->
<script type="text/javascript">
function loadExternalCodeSnippets() {
Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach(function (pre) {
var src = pre.getAttribute('data-src');
var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
var language = 'php';
var code = document.createElement('code');
code.className = 'language-' + language;
pre.textContent = '';
code.textContent = 'Loading…';
pre.appendChild(code);
var xhr = new XMLHttpRequest();
xhr.open('GET', src, true);
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if (xhr.status < 400 && xhr.responseText) {
code.textContent = xhr.responseText;
Prism.highlightElement(code);
}
else if (xhr.status >= 400) {
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
}
else {
code.textContent = '✖ Error: File does not exist or is empty';
}
}
};
xhr.send(null);
});
}
$(document).ready(function(){
loadExternalCodeSnippets();
});
$('#source-view').on('shown', function () {
loadExternalCodeSnippets();
})
</script>
<link rel="shortcut icon" href="../images/favicon.ico"/>
<link rel="apple-touch-icon" href="../images/apple-touch-icon.png"/>
<link rel="apple-touch-icon" sizes="72x72" href="../images/apple-touch-icon-72x72.png"/>
<link rel="apple-touch-icon" sizes="114x114" href="../images/apple-touch-icon-114x114.png"/>
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<i class="icon-ellipsis-vertical"></i>
</a>
<a class="brand" href="../index.html">TBFramework - v0.4</a>
<div class="nav-collapse">
<ul class="nav pull-right">
<li class="dropdown">
<a href="../index.html" class="dropdown-toggle" data-toggle="dropdown">
API Documentation <b class="caret"></b>
</a>
<ul class="dropdown-menu">
</ul>
</li>
<li class="dropdown" id="charts-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Charts <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a href="../graphs/class.html">
<i class="icon-list-alt"></i> Class hierarchy diagram
</a>
</li>
</ul>
</li>
<li class="dropdown" id="reports-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Reports <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a href="../reports/errors.html">
<i class="icon-list-alt"></i> Errors <span class="label label-info pull-right">281</span>
</a>
</li>
<li>
<a href="../reports/markers.html">
<i class="icon-list-alt"></i> Markers <span class="label label-info pull-right">12</span>
</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<!--<div class="go_to_top">-->
<!--<a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a>-->
<!--</div>-->
</div>
<div id="___" class="container-fluid">
<section class="row-fluid">
<div class="span2 sidebar">
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-1898789351"></a>
<a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
</div>
<div id="namespace-1898789351" class="accordion-body collapse in">
<div class="accordion-inner">
<ul>
<li class="class"><a href="../classes/Url.html">Url</a></li>
<li class="class"><a href="../classes/Debug.html">Debug</a></li>
<li class="class"><a href="../classes/Chronometre.html">Chronometre</a></li>
<li class="class"><a href="../classes/RestServeur.html">RestServeur</a></li>
<li class="class"><a href="../classes/SquelettePhp.html">SquelettePhp</a></li>
<li class="class"><a href="../classes/Controleur.html">Controleur</a></li>
<li class="class"><a href="../classes/Cache.html">Cache</a></li>
<li class="class"><a href="../classes/RestClient.html">RestClient</a></li>
<li class="class"><a href="../classes/GestionnaireException.html">GestionnaireException</a></li>
<li class="class"><a href="../classes/Script.html">Script</a></li>
<li class="class"><a href="../classes/Registre.html">Registre</a></li>
<li class="class"><a href="../classes/RestService.html">RestService</a></li>
<li class="class"><a href="../classes/Cli.html">Cli</a></li>
<li class="class"><a href="../classes/Encodage.html">Encodage</a></li>
<li class="class"><a href="../classes/Tableau.html">Tableau</a></li>
<li class="class"><a href="../classes/Pattern.html">Pattern</a></li>
<li class="class"><a href="../classes/Chaine.html">Chaine</a></li>
<li class="class"><a href="../classes/Fichier.html">Fichier</a></li>
<li class="class"><a href="../classes/I18n.html">I18n</a></li>
<li class="class"><a href="../classes/Config.html">Config</a></li>
<li class="class"><a href="../classes/CacheSqlite.html">CacheSqlite</a></li>
<li class="class"><a href="../classes/Bdd.html">Bdd</a></li>
<li class="class"><a href="../classes/Log.html">Log</a></li>
<li class="class"><a href="../classes/CacheFichier.html">CacheFichier</a></li>
<li class="class"><a href="../classes/Framework.html">Framework</a></li>
<li class="class"><a href="../classes/CacheSimple.html">CacheSimple</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="row-fluid">
<div class="span10 offset2">
<div class="row-fluid">
<div class="span8 content class">
<nav>
<a href="../namespaces/default.html">\</a> <i class="icon-level-up"></i>
</nav>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal"><i class="icon-code"></i></a>
<h1><small>\</small>Bdd</h1>
<p><em>Classe Bdd, d'accés au base de données.</em></p>
<p>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.</p>
<section id="summary">
<h2>Summary</h2>
<section class="row-fluid heading">
<section class="span4">
<a href="#methods">Methods</a>
</section>
<section class="span4">
<a href="#properties">Properties</a>
</section>
<section class="span4">
<a href="#constants">Constants</a>
</section>
</section>
<section class="row-fluid public">
<section class="span4">
<a href="../classes/Bdd.html#method___construct" class="">__construct()</a><br />
<a href="../classes/Bdd.html#method_requeter" class="">requeter()</a><br />
<a href="../classes/Bdd.html#method_recuperer" class="">recuperer()</a><br />
<a href="../classes/Bdd.html#method_recupererTous" class="">recupererTous()</a><br />
<a href="../classes/Bdd.html#method_proteger" class="">proteger()</a><br />
<a href="../classes/Bdd.html#method_protegerTableau" class="deprecated">protegerTableau()</a><br />
<a href="../classes/Bdd.html#method_recupererIdDernierAjout" class="">recupererIdDernierAjout()</a><br />
<a href="../classes/Bdd.html#method___destruct" class="">__destruct()</a><br />
</section>
<section class="span4">
<em>No public properties found</em>
</section>
<section class="span4">
<a href="../classes/Bdd.html#constant_ERREUR_REQUETE_TPL" class="">ERREUR_REQUETE_TPL</a><br />
<a href="../classes/Bdd.html#constant_ERREUR_CONNEXION_TPL" class="">ERREUR_CONNEXION_TPL</a><br />
<a href="../classes/Bdd.html#constant_ERREUR_SELECTION_BDD_TPL" class="">ERREUR_SELECTION_BDD_TPL</a><br />
<a href="../classes/Bdd.html#constant_ABSTRACTION_PDO" class="">ABSTRACTION_PDO</a><br />
<a href="../classes/Bdd.html#constant_ABSTRACTION_MYSQL" class="">ABSTRACTION_MYSQL</a><br />
<a href="../classes/Bdd.html#constant_ABSTRACTION_MYSQLI" class="">ABSTRACTION_MYSQLI</a><br />
<a href="../classes/Bdd.html#constant_ABSTRACTION_SQLITE3" class="">ABSTRACTION_SQLITE3</a><br />
<a href="../classes/Bdd.html#constant_MODE_ASSOC" class="">MODE_ASSOC</a><br />
<a href="../classes/Bdd.html#constant_MODE_OBJET" class="">MODE_OBJET</a><br />
</section>
</section>
<section class="row-fluid protected">
<section class="span4">
<a href="../classes/Bdd.html#method_initialiserProtocole" class="">initialiserProtocole()</a><br />
<a href="../classes/Bdd.html#method_connecter" class="">connecter()</a><br />
<a href="../classes/Bdd.html#method_requete" class="deprecated">requete()</a><br />
<a href="../classes/Bdd.html#method_requeteUn" class="deprecated">requeteUn()</a><br />
<a href="../classes/Bdd.html#method_requeteTous" class="deprecated">requeteTous()</a><br />
</section>
<section class="span4">
<a href="../classes/Bdd.html#property_ASSOC" class="">$ASSOC</a><br />
<a href="../classes/Bdd.html#property_OBJECT" class="">$OBJECT</a><br />
<a href="../classes/Bdd.html#property_abstraction" class="">$abstraction</a><br />
<a href="../classes/Bdd.html#property_dsn" class="">$dsn</a><br />
<a href="../classes/Bdd.html#property_type" class="">$type</a><br />
<a href="../classes/Bdd.html#property_hote" class="">$hote</a><br />
<a href="../classes/Bdd.html#property_bdd_nom" class="">$bdd_nom</a><br />
<a href="../classes/Bdd.html#property_utilisateur" class="">$utilisateur</a><br />
<a href="../classes/Bdd.html#property_pass" class="">$pass</a><br />
<a href="../classes/Bdd.html#property_encodage" class="">$encodage</a><br />
<a href="../classes/Bdd.html#property_connexion" class="">$connexion</a><br />
<a href="../classes/Bdd.html#property_parametres_obligatoires" class="">$parametres_obligatoires</a><br />
</section>
<section class="span4">
<em>N/A</em>
</section>
</section>
<section class="row-fluid private">
<section class="span4">
<a href="../classes/Bdd.html#method_protegerChaine" class="">protegerChaine()</a><br />
</section>
<section class="span4">
<em>No private properties found</em>
</section>
<section class="span4">
<em>N/A</em>
</section>
</section>
</section>
</div>
<aside class="span4 detailsbar">
<dl>
<dt>File</dt>
<dd><a href="../files/Bdd.php.html"><div class="path-wrapper">Bdd.php</div></a></dd>
<dt>Package</dt>
<dd><div class="namespace-wrapper">\Framework</div></dd>
<dt>Class hierarchy</dt>
<dd class="hierarchy">
<div class="namespace-wrapper">\Bdd</div>
</dd>
<dt>See also</dt>
<dd><a href="/doc/framework/"><div class="namespace-wrapper">/doc/framework/</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
category
</th>
<td>
<p>php 5.2</p>
</td>
</tr>
<tr>
<th>
author
</th>
<td>
<p>Aurélien PERONNET <a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a></p>
<p>Jean-Pascal MILCENT <a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a></p>
</td>
</tr>
<tr>
<th>
copyright
</th>
<td>
<p>Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)</p>
</td>
</tr>
<tr>
<th>
license
</th>
<td>
<p><a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt</a> Licence CECILL</p>
<p><a href="http://www.gnu.org/licenses/gpl.html">http://www.gnu.org/licenses/gpl.html</a> Licence GNU-GPL</p>
</td>
</tr>
<tr>
<th>
version
</th>
<td>
<p>$Id: Bdd.php 461 2014-03-05 16:13:16Z jpm $</p>
</td>
</tr>
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<a id="constants" name="constants"></a>
<div class="row-fluid">
<div class="span8 content class">
<h2>Constants</h2>
</div>
<aside class="span4 detailsbar"></aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_ERREUR_REQUETE_TPL" name="constant_ERREUR_REQUETE_TPL" class="anchor"></a>
<article id="constant_ERREUR_REQUETE_TPL" class="constant">
<h3 class="">ERREUR_REQUETE_TPL</h3>
<pre class="signature">ERREUR_REQUETE_TPL</pre>
<p><em>Constante stockant le squelette du message en cas d'erreur de requête sql.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_ERREUR_CONNEXION_TPL" name="constant_ERREUR_CONNEXION_TPL" class="anchor"></a>
<article id="constant_ERREUR_CONNEXION_TPL" class="constant">
<h3 class="">ERREUR_CONNEXION_TPL</h3>
<pre class="signature">ERREUR_CONNEXION_TPL</pre>
<p><em>Constante stockant le squelette du message en cas d'erreur de connexion à la base de données.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_ERREUR_SELECTION_BDD_TPL" name="constant_ERREUR_SELECTION_BDD_TPL" class="anchor"></a>
<article id="constant_ERREUR_SELECTION_BDD_TPL" class="constant">
<h3 class="">ERREUR_SELECTION_BDD_TPL</h3>
<pre class="signature">ERREUR_SELECTION_BDD_TPL</pre>
<p><em>Constante stockant le squelette du message en cas d'erreur de sélection de la base de données.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_ABSTRACTION_PDO" name="constant_ABSTRACTION_PDO" class="anchor"></a>
<article id="constant_ABSTRACTION_PDO" class="constant">
<h3 class="">ABSTRACTION_PDO</h3>
<pre class="signature">ABSTRACTION_PDO</pre>
<p><em>Constante stockant le code pour l'abstraction de PDO.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_ABSTRACTION_MYSQL" name="constant_ABSTRACTION_MYSQL" class="anchor"></a>
<article id="constant_ABSTRACTION_MYSQL" class="constant">
<h3 class="">ABSTRACTION_MYSQL</h3>
<pre class="signature">ABSTRACTION_MYSQL</pre>
<p><em>Constante stockant le code pour l'abstraction de mysql.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_ABSTRACTION_MYSQLI" name="constant_ABSTRACTION_MYSQLI" class="anchor"></a>
<article id="constant_ABSTRACTION_MYSQLI" class="constant">
<h3 class="">ABSTRACTION_MYSQLI</h3>
<pre class="signature">ABSTRACTION_MYSQLI</pre>
<p><em>Constante stockant le code pour l'abstraction de mysqli.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_ABSTRACTION_SQLITE3" name="constant_ABSTRACTION_SQLITE3" class="anchor"></a>
<article id="constant_ABSTRACTION_SQLITE3" class="constant">
<h3 class="">ABSTRACTION_SQLITE3</h3>
<pre class="signature">ABSTRACTION_SQLITE3</pre>
<p><em>Constante stockant le code pour l'abstraction de SQLite3.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_MODE_ASSOC" name="constant_MODE_ASSOC" class="anchor"></a>
<article id="constant_MODE_ASSOC" class="constant">
<h3 class="">MODE_ASSOC</h3>
<pre class="signature">MODE_ASSOC</pre>
<p><em>Constante stockant le code pour le mode tableau associatif des résultats des requêtes.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_MODE_OBJET" name="constant_MODE_OBJET" class="anchor"></a>
<article id="constant_MODE_OBJET" class="constant">
<h3 class="">MODE_OBJET</h3>
<pre class="signature">MODE_OBJET</pre>
<p><em>Constante stockant le code pour le mode objet des résultats des requêtes.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<a id="properties" name="properties"></a>
<div class="row-fluid">
<div class="span8 content class">
<h2>Properties</h2>
</div>
<aside class="span4 detailsbar"></aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_ASSOC" name="property_ASSOC" class="anchor"></a>
<article class="property">
<h3 class="protected ">$ASSOC</h3>
<pre class="signature">$ASSOC</pre>
<p><em>Mode de fetch associatif</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_OBJECT" name="property_OBJECT" class="anchor"></a>
<article class="property">
<h3 class="protected ">$OBJECT</h3>
<pre class="signature">$OBJECT</pre>
<p><em>Mode de fetch objet</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_abstraction" name="property_abstraction" class="anchor"></a>
<article class="property">
<h3 class="protected ">$abstraction</h3>
<pre class="signature">$abstraction</pre>
<p><em>abstraction de base de données utilisée</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_dsn" name="property_dsn" class="anchor"></a>
<article class="property">
<h3 class="protected ">$dsn</h3>
<pre class="signature">$dsn</pre>
<p><em>DSN pour accéder à la base de données</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_type" name="property_type" class="anchor"></a>
<article class="property">
<h3 class="protected ">$type</h3>
<pre class="signature">$type</pre>
<p><em>Type de base de données (mysql, mysqli, etc .</em></p>
<p>..)</p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_hote" name="property_hote" class="anchor"></a>
<article class="property">
<h3 class="protected ">$hote</h3>
<pre class="signature">$hote</pre>
<p><em>Hote herbergeant la base de données</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_bdd_nom" name="property_bdd_nom" class="anchor"></a>
<article class="property">
<h3 class="protected ">$bdd_nom</h3>
<pre class="signature">$bdd_nom</pre>
<p><em>Nom de la base de données à laquelle le modèle doit se connecter</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_utilisateur" name="property_utilisateur" class="anchor"></a>
<article class="property">
<h3 class="protected ">$utilisateur</h3>
<pre class="signature">$utilisateur</pre>
<p><em>Nom d'utilisateur</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_pass" name="property_pass" class="anchor"></a>
<article class="property">
<h3 class="protected ">$pass</h3>
<pre class="signature">$pass</pre>
<p><em>Mot de passe</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_encodage" name="property_encodage" class="anchor"></a>
<article class="property">
<h3 class="protected ">$encodage</h3>
<pre class="signature">$encodage</pre>
<p><em>Encodage de la base de données</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_connexion" name="property_connexion" class="anchor"></a>
<article class="property">
<h3 class="protected ">$connexion</h3>
<pre class="signature">$connexion</pre>
<p><em>Connexion à la base de données</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_parametres_obligatoires" name="property_parametres_obligatoires" class="anchor"></a>
<article class="property">
<h3 class="protected ">$parametres_obligatoires</h3>
<pre class="signature">$parametres_obligatoires</pre>
<p><em>Tableau des noms des paramètres à définir dans le fichier de config car obligatoirement nécessaire à cette classe.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<a id="methods" name="methods"></a>
<div class="row-fluid">
<div class="span8 content class"><h2>Methods</h2></div>
<aside class="span4 detailsbar"></aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method___construct" name="method___construct" class="anchor"></a>
<article class="method">
<h3 class="public ">__construct()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">__construct()</pre>
<p><em>Constructeur par défaut, appelé à l'initialisation.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_requeter" name="method_requeter" class="anchor"></a>
<article class="method">
<h3 class="public ">requeter()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">requeter( <span class="argument">$requete</span>) : mixed</pre>
<p><em>Execute une requête et retourne le résultat tel que renvoyé par l'abstraction courante.</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td></td>
<td>$requete</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
mixed
— <p>un objet contenant le résultat de la requête</p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_recuperer" name="method_recuperer" class="anchor"></a>
<article class="method">
<h3 class="public ">recuperer()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">recuperer( <span class="argument">$requete</span>, <span class="argument">$mode</span>) : mixed</pre>
<p><em>Execute une requête et retourne le premier résultat sous forme de tableau (par défaut) ou d'objet.</em></p>
<p>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.</p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td></td>
<td>$requete</td>
<td></td>
</tr>
<tr>
<td></td>
<td>$mode</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
mixed
— <p>un objet ou un tableau contenant le résultat de la requête</p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_recupererTous" name="method_recupererTous" class="anchor"></a>
<article class="method">
<h3 class="public ">recupererTous()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">recupererTous( <span class="argument">$requete</span>, <span class="argument">$mode</span>) : array</pre>
<p><em>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.</em></p>
<p>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.</p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td></td>
<td>$requete</td>
<td></td>
</tr>
<tr>
<td></td>
<td>$mode</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
array
— <p>un tableau contenant les résultats sous forme d'objets ou de tableau (par défaut).</p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_proteger" name="method_proteger" class="anchor"></a>
<article class="method">
<h3 class="public ">proteger()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">proteger( <span class="argument">$donnees</span>) : mixed</pre>
<p><em>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).</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td></td>
<td>$donnees</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
mixed
— <p>la chaine ou le tableau à protégé</p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_protegerTableau" name="method_protegerTableau" class="anchor"></a>
<article class="method">
<h3 class="public deprecated">protegerTableau()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">protegerTableau(array <span class="argument">$tableau</span>)</pre>
<p><em></em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>array</td>
<td>$tableau</td>
<td></td>
</tr>
</table>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<aside class="alert alert-block alert-error">
<h4>Deprecated</h4>
changement de nom. Deviendra "private" dans la version 0.5. Utiliser à la place : @see proteger
</aside>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_recupererIdDernierAjout" name="method_recupererIdDernierAjout" class="anchor"></a>
<article class="method">
<h3 class="public ">recupererIdDernierAjout()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">recupererIdDernierAjout( <span class="argument">$parametres</span>) : mixed</pre>
<p><em>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 :</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td></td>
<td>$parametres</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
mixed
— <p>le dernier identifiant de clé primaire ajouté dans la base de données (string ou int).</p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>See also</dt>
<dd><a href="(http://fr.php.net/manual/fr/pdo.lastinsertid.php,"><span class="namespace-wrapper">PDO::lastInsertId([ string $name = NULL ]))</span></a></dd>
<dd><a href="(http://php.net/manual/en/mysqli.insert-id.php,"><span class="namespace-wrapper">mysqli->insert_id())</span></a></dd>
<dd><a href="(http://fr.php.net/manual/fr/function.mysql-insert-id.php,"><span class="namespace-wrapper">mysql_insert_id())</span></a></dd>
<dd><a href="(http://fr.php.net/manual/fr/sqlite3.lastinsertrowid.php,"><span class="namespace-wrapper">SQLite3::lastInsertRowID())</span></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method___destruct" name="method___destruct" class="anchor"></a>
<article class="method">
<h3 class="public ">__destruct()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">__destruct()</pre>
<p><em>Destructeur de classe, se contente de fermer explicitement la connexion à la base de donnée.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_initialiserProtocole" name="method_initialiserProtocole" class="anchor"></a>
<article class="method">
<h3 class="protected ">initialiserProtocole()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">initialiserProtocole()</pre>
<p><em>Initialise les constantes de classe à leur bonne valeur et déclenche une erreur si le protocole n'est pas bien défini.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_connecter" name="method_connecter" class="anchor"></a>
<article class="method">
<h3 class="protected ">connecter()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">connecter()</pre>
<p><em>Connection à la base de données en utilisant les informations fournies par
le fichier de configuration.</em></p>
<p>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)</p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_requete" name="method_requete" class="anchor"></a>
<article class="method">
<h3 class="protected deprecated">requete()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">requete( <span class="argument">$requete</span>)</pre>
<p><em></em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td></td>
<td>$requete</td>
<td></td>
</tr>
</table>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<span class="label label-info">final</span>
<aside class="alert alert-block alert-error">
<h4>Deprecated</h4>
changement de nom. Disparaîtra dans la version 0.4. Utiliser à la place : @see requeter
</aside>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_requeteUn" name="method_requeteUn" class="anchor"></a>
<article class="method">
<h3 class="protected deprecated">requeteUn()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">requeteUn( <span class="argument">$requete</span>, <span class="argument">$mode</span>)</pre>
<p><em></em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td></td>
<td>$requete</td>
<td></td>
</tr>
<tr>
<td></td>
<td>$mode</td>
<td></td>
</tr>
</table>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<span class="label label-info">final</span>
<aside class="alert alert-block alert-error">
<h4>Deprecated</h4>
changement de nom. Disparaîtra dans la version 0.4. Utiliser à la place : @see recuperer
</aside>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_requeteTous" name="method_requeteTous" class="anchor"></a>
<article class="method">
<h3 class="protected deprecated">requeteTous()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">requeteTous( <span class="argument">$requete</span>, <span class="argument">$mode</span>)</pre>
<p><em></em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td></td>
<td>$requete</td>
<td></td>
</tr>
<tr>
<td></td>
<td>$mode</td>
<td></td>
</tr>
</table>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<span class="label label-info">final</span>
<aside class="alert alert-block alert-error">
<h4>Deprecated</h4>
changement de nom. Disparaîtra dans la version 0.4. Utiliser à la place : @see recupererTous
</aside>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_protegerChaine" name="method_protegerChaine" class="anchor"></a>
<article class="method">
<h3 class="private ">protegerChaine()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">protegerChaine( <span class="argument">$chaine</span>) : string</pre>
<p><em>Protège une chaine de caractères avant l'insertion dans la base de données (ajout de quotes ou guillemets).</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td></td>
<td>$chaine</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
string
— <p>la chaine protégée</p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
</div>
</section>
<div id="source-view" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="source-view-label" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="source-view-label">Bdd.php</h3>
</div>
<div class="modal-body">
<pre data-src="../files/Bdd.php.txt" class="language-php line-numbers"></pre>
</div>
</div>
<footer class="row-fluid">
<section class="span10 offset2">
<section class="row-fluid">
<section class="span10 offset1">
<section class="row-fluid footer-sections">
<section class="span4">
<h1><i class="icon-code"></i></h1>
<div>
<ul>
</ul>
</div>
</section>
<section class="span4">
<h1><i class="icon-bar-chart"></i></h1>
<div>
<ul>
<li><a href="../graphs/class.html">Class Hierarchy Diagram</a></li>
</ul>
</div>
</section>
<section class="span4">
<h1><i class="icon-pushpin"></i></h1>
<div>
<ul>
<li><a href="../reports/errors.html">Errors</a></li>
<li><a href="../reports/markers.html">Markers</a></li>
</ul>
</div>
</section>
</section>
</section>
</section>
<section class="row-fluid">
<section class="span10 offset1">
<hr />
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
on March 12th, 2014 at 15:57.
</section>
</section>
</section>
</footer>
</div>
</body>
</html>