Subversion Repositories Applications.framework

Rev

Rev 300 | Blame | Last modification | View Log | RSS feed

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
                <head>
                        <!-- template designed by Marco Von Ballmoos  -->
                        <title>Docs For Class Bdd</title>
                        <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
                        <link rel="stylesheet" href="../media/stylesheet.css" />
                                                <script src="../media/lib/classTree.js"></script>
                                                                                                <script language="javascript" type="text/javascript">
                                var imgPlus = new Image();
                                var imgMinus = new Image();
                                imgPlus.src = "../media/images/plus.png";
                                imgMinus.src = "../media/images/minus.png";
                                
                                function showNode(Node){
                                                        switch(navigator.family){
                                                                case 'nn4':
                                                                        // Nav 4.x code fork...
                                                        var oTable = document.layers["span" + Node];
                                                        var oImg = document.layers["img" + Node];
                                                                        break;
                                                                case 'ie4':
                                                                        // IE 4/5 code fork...
                                                        var oTable = document.all["span" + Node];
                                                        var oImg = document.all["img" + Node];
                                                                        break;
                                                                case 'gecko':
                                                                        // Standards Compliant code fork...
                                                        var oTable = document.getElementById("span" + Node);
                                                        var oImg = document.getElementById("img" + Node);
                                                                        break;
                                                        }
                                        oImg.src = imgMinus.src;
                                        oTable.style.display = "block";
                                }
                                
                                function hideNode(Node){
                                                        switch(navigator.family){
                                                                case 'nn4':
                                                                        // Nav 4.x code fork...
                                                        var oTable = document.layers["span" + Node];
                                                        var oImg = document.layers["img" + Node];
                                                                        break;
                                                                case 'ie4':
                                                                        // IE 4/5 code fork...
                                                        var oTable = document.all["span" + Node];
                                                        var oImg = document.all["img" + Node];
                                                                        break;
                                                                case 'gecko':
                                                                        // Standards Compliant code fork...
                                                        var oTable = document.getElementById("span" + Node);
                                                        var oImg = document.getElementById("img" + Node);
                                                                        break;
                                                        }
                                        oImg.src = imgPlus.src;
                                        oTable.style.display = "none";
                                }
                                
                                function nodeIsVisible(Node){
                                                        switch(navigator.family){
                                                                case 'nn4':
                                                                        // Nav 4.x code fork...
                                                        var oTable = document.layers["span" + Node];
                                                                        break;
                                                                case 'ie4':
                                                                        // IE 4/5 code fork...
                                                        var oTable = document.all["span" + Node];
                                                                        break;
                                                                case 'gecko':
                                                                        // Standards Compliant code fork...
                                                        var oTable = document.getElementById("span" + Node);
                                                                        break;
                                                        }
                                        return (oTable && oTable.style.display == "block");
                                }
                                
                                function toggleNodeVisibility(Node){
                                        if (nodeIsVisible(Node)){
                                                hideNode(Node);
                                        }else{
                                                showNode(Node);
                                        }
                                }
                        </script>
                                        </head>
                <body>
                        <div class="page-body">                 
<h2 class="class-name">Class Bdd</h2>

<a name="sec-description"></a>
<div class="info-box">
        <div class="info-box-title">Description</div>
        <div class="nav-bar">
                                        <span class="disabled">Description</span> |
                                                                                                        <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
                                                |                                                                                       <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
                                                
                                                                                        <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
                                                
                        </div>
        <div class="info-box-body">
                        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Classe Bdd, d'accés au base de données.</p>
<p class="description"><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 : &quot;php:Bdd::ABSTRACTION_PDO&quot;,&quot;php:Bdd::ABSTRACTION_MYSQL&quot;, &quot;php:Bdd::ABSTRACTION_MYSQLI&quot;,  &quot;php:Bdd::ABSTRACTION_SQLITE3&quot;.  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></p>
        <ul class="tags">
                                <li><span class="field">author:</span> Jean-Pascal MILCENT &lt;<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>&gt;</li>
                                <li><span class="field">author:</span> Aurélien PERONNET &lt;<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>&gt;</li>
                                <li><span class="field">version:</span> $Id: Bdd.php 247 2010-12-16 16:47:52Z jpm $</li>
                                <li><span class="field">copyright:</span> Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)</li>
                                <li><span class="field">link:</span> /doc/framework/</li>
                                <li><span class="field">license:</span> <a href="http://www.gnu.org/licenses/gpl.html">Licence GNU-GPL</a></li>
                                <li><span class="field">license:</span> <a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL</a></li>
                        </ul>
                <p class="notes">
                        Located in <a class="field" href="_Bdd.php.html">/Bdd.php</a> (line <span class="field"><a href="../__filesource/fsource_Framework__Bdd.php.html#a23">23</a></span>)
                </p>
                
                                
                <pre></pre>
        
                        </div>
</div>


        <a name="sec-const-summary"></a>
        <div class="info-box">
                <div class="info-box-title">Class Constant Summary</span></div>
                <div class="nav-bar">
                        <a href="#sec-description">Description</a> |
                                                <span class="disabled">Constants</span> (<a href="#sec-consts">details</a>)
                                                                                                <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
                                 
                                |
                                                                                | 
                                                                        <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
                                                        
                                        </div>
                <div class="info-box-body">
                        <div class="const-summary">
                                                                <div class="const-title">
                                        <img src="../media/images/Constant.png" alt=" " />
                                        <a href="#ABSTRACTION_MYSQL" title="details" class="const-name">ABSTRACTION_MYSQL</a> =                                         <span class="var-type"> 'mysql'</span>

                                </div>
                                                                <div class="const-title">
                                        <img src="../media/images/Constant.png" alt=" " />
                                        <a href="#ABSTRACTION_MYSQLI" title="details" class="const-name">ABSTRACTION_MYSQLI</a> =                                       <span class="var-type"> 'mysqli'</span>

                                </div>
                                                                <div class="const-title">
                                        <img src="../media/images/Constant.png" alt=" " />
                                        <a href="#ABSTRACTION_PDO" title="details" class="const-name">ABSTRACTION_PDO</a> =                                     <span class="var-type"> 'pdo'</span>

                                </div>
                                                                <div class="const-title">
                                        <img src="../media/images/Constant.png" alt=" " />
                                        <a href="#ABSTRACTION_SQLITE3" title="details" class="const-name">ABSTRACTION_SQLITE3</a> =                                     <span class="var-type"> 'sqlite3'</span>

                                </div>
                                                                <div class="const-title">
                                        <img src="../media/images/Constant.png" alt=" " />
                                        <a href="#ERREUR_CONNEXION_TPL" title="details" class="const-name">ERREUR_CONNEXION_TPL</a> =                                   <span class="var-type"> 'Erreur de connexion à la base de données, vérifiez les paramètres du fichier de configuration.\nMessage : %S.'</span>

                                </div>
                                                                <div class="const-title">
                                        <img src="../media/images/Constant.png" alt=" " />
                                        <a href="#ERREUR_REQUETE_TPL" title="details" class="const-name">ERREUR_REQUETE_TPL</a> =                                       <span class="var-type"> 'Requête echec.\nFichier : %s.\nLigne : %s.\nMessage : %s.\nRequête : %s'</span>

                                </div>
                                                                <div class="const-title">
                                        <img src="../media/images/Constant.png" alt=" " />
                                        <a href="#ERREUR_SELECTION_BDD_TPL" title="details" class="const-name">ERREUR_SELECTION_BDD_TPL</a> =                                   <span class="var-type"> 'Erreur de sélection de la base de données, vérifiez les paramètres du fichier de configuration.\nMessage : %S.'</span>

                                </div>
                                                                <div class="const-title">
                                        <img src="../media/images/Constant.png" alt=" " />
                                        <a href="#MODE_ASSOC" title="details" class="const-name">MODE_ASSOC</a> =                                       <span class="var-type"> 'ASSOC'</span>

                                </div>
                                                                <div class="const-title">
                                        <img src="../media/images/Constant.png" alt=" " />
                                        <a href="#MODE_OBJET" title="details" class="const-name">MODE_OBJET</a> =                                       <span class="var-type"> 'OBJECT'</span>

                                </div>
                                                        </div>
                </div>
        </div>

        <a name="sec-var-summary"></a>
        <div class="info-box">
                <div class="info-box-title">Variable Summary</span></div>
                <div class="nav-bar">
                        <a href="#sec-description">Description</a> |
                                                <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
                                                        | 
                                                                        <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
                                                        
                                                                                                                        <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
                                                        
                                        </div>
                <div class="info-box-body">
                        <div class="var-summary">
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <div class="var-title">
                                        <span class="var-type">mixed</span>
                                        <a href="#$abstraction" title="details" class="var-name">$abstraction</a>
                                </div>
                                                                                                                                <div class="var-title">
                                        <span class="var-type">mixed</span>
                                        <a href="#$ASSOC" title="details" class="var-name">$ASSOC</a>
                                </div>
                                                                                                                                <div class="var-title">
                                        <span class="var-type">mixed</span>
                                        <a href="#$bdd_nom" title="details" class="var-name">$bdd_nom</a>
                                </div>
                                                                                                                                <div class="var-title">
                                        <span class="var-type">mixed</span>
                                        <a href="#$connexion" title="details" class="var-name">$connexion</a>
                                </div>
                                                                                                                                <div class="var-title">
                                        <span class="var-type">mixed</span>
                                        <a href="#$dsn" title="details" class="var-name">$dsn</a>
                                </div>
                                                                                                                                <div class="var-title">
                                        <span class="var-type">mixed</span>
                                        <a href="#$encodage" title="details" class="var-name">$encodage</a>
                                </div>
                                                                                                                                <div class="var-title">
                                        <span class="var-type">mixed</span>
                                        <a href="#$hote" title="details" class="var-name">$hote</a>
                                </div>
                                                                                                                                <div class="var-title">
                                        <span class="var-type">mixed</span>
                                        <a href="#$OBJECT" title="details" class="var-name">$OBJECT</a>
                                </div>
                                                                                                                                <div class="var-title">
                                        <span class="var-type">mixed</span>
                                        <a href="#$parametres_obligatoires" title="details" class="var-name">$parametres_obligatoires</a>
                                </div>
                                                                                                                                <div class="var-title">
                                        <span class="var-type">mixed</span>
                                        <a href="#$pass" title="details" class="var-name">$pass</a>
                                </div>
                                                                                                                                <div class="var-title">
                                        <span class="var-type">mixed</span>
                                        <a href="#$type" title="details" class="var-name">$type</a>
                                </div>
                                                                                                                                <div class="var-title">
                                        <span class="var-type">mixed</span>
                                        <a href="#$utilisateur" title="details" class="var-name">$utilisateur</a>
                                </div>
                                                                                        </div>
                </div>
        </div>

        <a name="sec-method-summary"></a>
        <div class="info-box">
                <div class="info-box-title">Method Summary</span></div>
                <div class="nav-bar">
                        <a href="#sec-description">Description</a> |
                                                                                                                        <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
                                                        
                                                                                                                        <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
                                 
                                |
                                                <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
                </div>
                <div class="info-box-body">                     
                        <div class="method-summary">
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                <div class="method-definition">
                                                                                        <span class="method-result">Bdd</span>
                                                                                <a href="#__construct" title="details" class="method-name">__construct</a>
                                                                                ()
                                                                        </div>
                                                                                                                
                                <div class="method-definition">
                                                                                        <span class="method-result">void</span>
                                                                                <a href="#__destruct" title="details" class="method-name">__destruct</a>
                                                                                ()
                                                                        </div>
                                                                                                                
                                <div class="method-definition">
                                                                                        <span class="method-result">void</span>
                                                                                <a href="#connecter" title="details" class="method-name">connecter</a>
                                                                                ()
                                                                        </div>
                                                                                                                
                                <div class="method-definition">
                                                                                        <span class="method-result">void</span>
                                                                                <a href="#initialiserProtocole" title="details" class="method-name">initialiserProtocole</a>
                                                                                ()
                                                                        </div>
                                                                                                                
                                <div class="method-definition">
                                                                                        <span class="method-result">string</span>
                                                                                <a href="#proteger" title="details" class="method-name">proteger</a>
                                                                                        (<span class="var-type">string</span>&nbsp;<span class="var-name">$chaine</span>)
                                                                        </div>
                                                                                                                
                                <div class="method-definition">
                                                                                        <span class="method-result">mixed</span>
                                                                                <a href="#recuperer" title="details" class="method-name">recuperer</a>
                                                                                        (<span class="var-type">string</span>&nbsp;<span class="var-name">$requete</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$mode</span> = <span class="var-default">self::MODE_ASSOC</span>])
                                                                        </div>
                                                                                                                
                                <div class="method-definition">
                                                                                        <span class="method-result">mixed</span>
                                                                                <a href="#recupererIdDernierAjout" title="details" class="method-name">recupererIdDernierAjout</a>
                                                                                        ([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$parametres</span> = <span class="var-default">null</span>])
                                                                        </div>
                                                                                                                
                                <div class="method-definition">
                                                                                        <span class="method-result">array</span>
                                                                                <a href="#recupererTous" title="details" class="method-name">recupererTous</a>
                                                                                        (<span class="var-type">string</span>&nbsp;<span class="var-name">$requete</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$mode</span> = <span class="var-default">self::MODE_ASSOC</span>])
                                                                        </div>
                                                                                                                
                                <div class="method-definition">
                                                                                        <span class="method-result">void</span>
                                                                                <a href="#requete" title="details" class="method-name">requete</a>
                                                                                        (<span class="var-type"></span>&nbsp;<span class="var-name">$requete</span>)
                                                                        </div>
                                                                                                                
                                <div class="method-definition">
                                                                                        <span class="method-result">mixed</span>
                                                                                <a href="#requeter" title="details" class="method-name">requeter</a>
                                                                                        (<span class="var-type">string</span>&nbsp;<span class="var-name">$requete</span>)
                                                                        </div>
                                                                                                                
                                <div class="method-definition">
                                                                                        <span class="method-result">void</span>
                                                                                <a href="#requeteTous" title="details" class="method-name">requeteTous</a>
                                                                                        (<span class="var-type"></span>&nbsp;<span class="var-name">$requete</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$mode</span> = <span class="var-default">self::MODE_ASSOC</span>])
                                                                        </div>
                                                                                                                
                                <div class="method-definition">
                                                                                        <span class="method-result">void</span>
                                                                                <a href="#requeteUn" title="details" class="method-name">requeteUn</a>
                                                                                        (<span class="var-type"></span>&nbsp;<span class="var-name">$requete</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$mode</span> = <span class="var-default">self::MODE_ASSOC</span>])
                                                                        </div>
                                                                                        </div>
                </div>
        </div>          

        <a name="sec-vars"></a>
        <div class="info-box">
                <div class="info-box-title">Variables</div>
                <div class="nav-bar">
                        <a href="#sec-description">Description</a> |
                                                                                <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
                                                
                        
                                                                                                <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
                                                        
                                                                                | 
                                                                        <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
                                                        
                                        </div>
                <div class="info-box-body">
                        
<a name="var$abstraction" id="$abstraction"><!-- --></A>
<div class="evenrow">

        <div class="var-header">
                <span class="var-title">
                        <span class="var-type">mixed</span>
                        <span class="var-name">$abstraction</span>
                                                (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a58">58</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">abstraction de base de données utilisée</p>
        <ul class="tags">
                                <li><span class="field">access:</span> protected</li>
                        </ul>
        
        
                
                

</div>
<a name="var$ASSOC" id="$ASSOC"><!-- --></A>
<div class="oddrow">

        <div class="var-header">
                <span class="var-title">
                        <span class="var-type">mixed</span>
                        <span class="var-name">$ASSOC</span>
                         = <span class="var-default"> ''</span>                 (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a52">52</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Mode de fetch associatif</p>
        <ul class="tags">
                                <li><span class="field">access:</span> protected</li>
                        </ul>
        
        
                
                

</div>
<a name="var$bdd_nom" id="$bdd_nom"><!-- --></A>
<div class="evenrow">

        <div class="var-header">
                <span class="var-title">
                        <span class="var-type">mixed</span>
                        <span class="var-name">$bdd_nom</span>
                                                (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a70">70</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Nom de la base de données à laquelle le modèle doit se connecter</p>
        <ul class="tags">
                                <li><span class="field">access:</span> protected</li>
                        </ul>
        
        
                
                

</div>
<a name="var$connexion" id="$connexion"><!-- --></A>
<div class="oddrow">

        <div class="var-header">
                <span class="var-title">
                        <span class="var-type">mixed</span>
                        <span class="var-name">$connexion</span>
                         = <span class="var-default"> null</span>                       (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a82">82</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Connexion à la base de données</p>
        <ul class="tags">
                                <li><span class="field">access:</span> protected</li>
                        </ul>
        
        
                
                

</div>
<a name="var$dsn" id="$dsn"><!-- --></A>
<div class="evenrow">

        <div class="var-header">
                <span class="var-title">
                        <span class="var-type">mixed</span>
                        <span class="var-name">$dsn</span>
                                                (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a61">61</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">DSN pour accéder à la base de données</p>
        <ul class="tags">
                                <li><span class="field">access:</span> protected</li>
                        </ul>
        
        
                
                

</div>
<a name="var$encodage" id="$encodage"><!-- --></A>
<div class="oddrow">

        <div class="var-header">
                <span class="var-title">
                        <span class="var-type">mixed</span>
                        <span class="var-name">$encodage</span>
                         = <span class="var-default"> null</span>                       (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a79">79</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Encodage de la base de données</p>
        <ul class="tags">
                                <li><span class="field">access:</span> protected</li>
                        </ul>
        
        
                
                

</div>
<a name="var$hote" id="$hote"><!-- --></A>
<div class="evenrow">

        <div class="var-header">
                <span class="var-title">
                        <span class="var-type">mixed</span>
                        <span class="var-name">$hote</span>
                                                (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a67">67</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Hote herbergeant la base de données</p>
        <ul class="tags">
                                <li><span class="field">access:</span> protected</li>
                        </ul>
        
        
                
                

</div>
<a name="var$OBJECT" id="$OBJECT"><!-- --></A>
<div class="oddrow">

        <div class="var-header">
                <span class="var-title">
                        <span class="var-type">mixed</span>
                        <span class="var-name">$OBJECT</span>
                         = <span class="var-default"> ''</span>                 (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a55">55</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Mode de fetch objet</p>
        <ul class="tags">
                                <li><span class="field">access:</span> protected</li>
                        </ul>
        
        
                
                

</div>
<a name="var$parametres_obligatoires" id="$parametres_obligatoires"><!-- --></A>
<div class="evenrow">

        <div class="var-header">
                <span class="var-title">
                        <span class="var-type">mixed</span>
                        <span class="var-name">$parametres_obligatoires</span>
                         = <span class="var-default">array('bdd_abstraction', 'bdd_protocole', 'bdd_serveur', 'bdd_nom', <br />         'bdd_utilisateur', 'bdd_mot_de_passe', 'bdd_encodage')</span>                   (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a85">85</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Tableau des noms des paramètres à définir dans le fichier de config car obligatoirement nécessaire à cette classe.</p>
        <ul class="tags">
                                <li><span class="field">access:</span> protected</li>
                        </ul>
        
        
                
                

</div>
<a name="var$pass" id="$pass"><!-- --></A>
<div class="oddrow">

        <div class="var-header">
                <span class="var-title">
                        <span class="var-type">mixed</span>
                        <span class="var-name">$pass</span>
                                                (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a76">76</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Mot de passe</p>
        <ul class="tags">
                                <li><span class="field">access:</span> protected</li>
                        </ul>
        
        
                
                

</div>
<a name="var$type" id="$type"><!-- --></A>
<div class="evenrow">

        <div class="var-header">
                <span class="var-title">
                        <span class="var-type">mixed</span>
                        <span class="var-name">$type</span>
                                                (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a64">64</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Type de base de données (mysql, mysqli, etc ...)</p>
        <ul class="tags">
                                <li><span class="field">access:</span> protected</li>
                        </ul>
        
        
                
                

</div>
<a name="var$utilisateur" id="$utilisateur"><!-- --></A>
<div class="oddrow">

        <div class="var-header">
                <span class="var-title">
                        <span class="var-type">mixed</span>
                        <span class="var-name">$utilisateur</span>
                                                (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a73">73</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Nom d'utilisateur</p>
        <ul class="tags">
                                <li><span class="field">access:</span> protected</li>
                        </ul>
        
        
                
                

</div>
                                                
                </div>
        </div>
        
        <a name="sec-methods"></a>
        <div class="info-box">
                <div class="info-box-title">Methods</div>
                <div class="nav-bar">
                        <a href="#sec-description">Description</a> |
                                                                                                                        <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
                                                                                                                                                        <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
                                                        
                                                                                <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
                                                
                </div>
                <div class="info-box-body">
                        <A NAME='method_detail'></A>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
        
        <div class="method-header">
                <span class="method-title">Constructor __construct</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a89">89</a></span>)
        </div> 
        
        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constructeur par défaut, appelé à l'initialisation.</p>
        <ul class="tags">
                                <li><span class="field">access:</span> public</li>
                        </ul>
        
        <div class="method-signature">
                <span class="method-result">Bdd</span>
                <span class="method-name">
                        __construct
                </span>
                                ()
                        </div>
        
                
                        
        </div>
<a name="method__destruct" id="__destruct"><!-- --></a>
<div class="oddrow">
        
        <div class="method-header">
                <span class="method-title">Destructor __destruct</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a395">395</a></span>)
        </div> 
        
        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Destructeur de classe, se contente de fermer explicitement la connexion à la base de donnée.</p>
        <ul class="tags">
                                <li><span class="field">access:</span> public</li>
                        </ul>
        
        <div class="method-signature">
                <span class="method-result">void</span>
                <span class="method-name">
                        __destruct
                </span>
                                ()
                        </div>
        
                
                        
        </div>
<a name="methodconnecter" id="connecter"><!-- --></a>
<div class="evenrow">
        
        <div class="method-header">
                <span class="method-title">connecter</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a133">133</a></span>)
        </div> 
        
        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Connection à la base de données en utilisant les informations fournies par  le fichier de configuration.</p>
<p class="description"><p>Cette méthode est private et final car elle n'a pas vocation a être appelée par l'utilisateur.</p></p>
        <ul class="tags">
                                <li><span class="field">access:</span> protected</li>
                        </ul>
        
        <div class="method-signature">
                <span class="method-result">void</span>
                <span class="method-name">
                        connecter
                </span>
                                ()
                        </div>
        
                
                        
        </div>
<a name="methodinitialiserProtocole" id="initialiserProtocole"><!-- --></a>
<div class="oddrow">
        
        <div class="method-header">
                <span class="method-title">initialiserProtocole</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a104">104</a></span>)
        </div> 
        
        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Initialise les constantes de classe à leur bonne valeur et déclenche une erreur si le protocole n'est pas bien défini.</p>
        <ul class="tags">
                                <li><span class="field">access:</span> protected</li>
                        </ul>
        
        <div class="method-signature">
                <span class="method-result">void</span>
                <span class="method-name">
                        initialiserProtocole
                </span>
                                ()
                        </div>
        
                
                        
        </div>
<a name="methodproteger" id="proteger"><!-- --></a>
<div class="evenrow">
        
        <div class="method-header">
                <span class="method-title">proteger</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a339">339</a></span>)
        </div> 
        
        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Protège une chaine de caractères avant l'insertion dans la base de données (ajout de quotes ou guillemets).</p>
        <ul class="tags">
                                <li><span class="field">return:</span> la chaine protégée</li>
                                <li><span class="field">access:</span> public</li>
                        </ul>
        
        <div class="method-signature">
                <span class="method-result">string</span>
                <span class="method-name">
                        proteger
                </span>
                                        (<span class="var-type">string</span>&nbsp;<span class="var-name">$chaine</span>)
                        </div>
        
                        <ul class="parameters">
                                        <li>
                                <span class="var-type">string</span>
                                <span class="var-name">$chaine</span><span class="var-description">: la chaine à protéger</span>                      </li>
                                </ul>
                
                        
        </div>
<a name="methodrecuperer" id="recuperer"><!-- --></a>
<div class="oddrow">
        
        <div class="method-header">
                <span class="method-title">recuperer</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a236">236</a></span>)
        </div> 
        
        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Execute une requête et retourne le premier résultat sous forme de tableau (par défaut) ou d'objet.</p>
<p class="description"><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></p>
        <ul class="tags">
                                <li><span class="field">return:</span> un objet ou un tableau contenant le résultat de la requête</li>
                                <li><span class="field">access:</span> public</li>
                        </ul>
        
        <div class="method-signature">
                <span class="method-result">mixed</span>
                <span class="method-name">
                        recuperer
                </span>
                                        (<span class="var-type">string</span>&nbsp;<span class="var-name">$requete</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$mode</span> = <span class="var-default">self::MODE_ASSOC</span>])
                        </div>
        
                        <ul class="parameters">
                                        <li>
                                <span class="var-type">string</span>
                                <span class="var-name">$requete</span><span class="var-description">: la requête à effectuer</span>                   </li>
                                        <li>
                                <span class="var-type">string</span>
                                <span class="var-name">$mode</span><span class="var-description">: le mode de retour ASSOC (Bdd::MODE_ASSOC) pour un tableau ou OBJECT (Bdd::MODE_OBJET) pour un objet.</span>                  </li>
                                </ul>
                
                        
        </div>
<a name="methodrecupererIdDernierAjout" id="recupererIdDernierAjout"><!-- --></a>
<div class="evenrow">
        
        <div class="method-header">
                <span class="method-title">recupererIdDernierAjout</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a371">371</a></span>)
        </div> 
        
        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">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</p>
<p class="description"><p>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 :</p></p>
        <ul class="tags">
                                <li><span class="field">return:</span> le dernier identifiant de clé primaire ajouté dans la base de données (string ou int).</li>
                                <li><span class="field">access:</span> public</li>
                        </ul>
        
        <div class="method-signature">
                <span class="method-result">mixed</span>
                <span class="method-name">
                        recupererIdDernierAjout
                </span>
                                        ([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$parametres</span> = <span class="var-default">null</span>])
                        </div>
        
                        <ul class="parameters">
                                        <li>
                                <span class="var-type">mixed</span>
                                <span class="var-name">$parametres</span><span class="var-description">: un paramètre éventuel à transmettre (en fonction de l'abstraction de BDD utilisée).</span>                 </li>
                                </ul>
                
                        
        </div>
<a name="methodrecupererTous" id="recupererTous"><!-- --></a>
<div class="oddrow">
        
        <div class="method-header">
                <span class="method-title">recupererTous</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a284">284</a></span>)
        </div> 
        
        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">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.</p>
<p class="description"><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></p>
        <ul class="tags">
                                <li><span class="field">return:</span> un tableau contenant les résultats sous forme d'objets ou de tableau (par défaut).</li>
                                <li><span class="field">access:</span> public</li>
                        </ul>
        
        <div class="method-signature">
                <span class="method-result">array</span>
                <span class="method-name">
                        recupererTous
                </span>
                                        (<span class="var-type">string</span>&nbsp;<span class="var-name">$requete</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$mode</span> = <span class="var-default">self::MODE_ASSOC</span>])
                        </div>
        
                        <ul class="parameters">
                                        <li>
                                <span class="var-type">string</span>
                                <span class="var-name">$requete</span><span class="var-description">: la requête à effectuer</span>                   </li>
                                        <li>
                                <span class="var-type">string</span>
                                <span class="var-name">$mode</span><span class="var-description">: le mode de retour des résultats : ASSOC (Bdd::MODE_ASSOC) pour un tableau ou OBJECT (Bdd::MODE_OBJET) pour un objet.</span>                 </li>
                                </ul>
                
                        
        </div>
<a name="methodrequete" id="requete"><!-- --></a>
<div class="evenrow">
        
        <div class="method-header">
                <span class="method-title">requete</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a185">185</a></span>)
        </div> 
        
        <!-- ========== Info from phpDoc block ========= -->
        <ul class="tags">
                                <li><span class="field">deprecated:</span> changement de nom. Disparaîtra dans la version 0.4. Utiliser à la place : @see requeter</li>
                                <li><span class="field">access:</span> protected</li>
                        </ul>
        
        <div class="method-signature">
                <span class="method-result">void</span>
                <span class="method-name">
                        requete
                </span>
                                        (<span class="var-type"></span>&nbsp;<span class="var-name">$requete</span>)
                        </div>
        
                        <ul class="parameters">
                                        <li>
                                <span class="var-type"></span>
                                <span class="var-name">$requete</span>                  </li>
                                </ul>
                
                        
        </div>
<a name="methodrequeter" id="requeter"><!-- --></a>
<div class="oddrow">
        
        <div class="method-header">
                <span class="method-title">requeter</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a195">195</a></span>)
        </div> 
        
        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Execute une requête et retourne le résultat tel que renvoyé par l'abstraction courante.</p>
        <ul class="tags">
                                <li><span class="field">return:</span> un objet contenant le résultat de la requête</li>
                                <li><span class="field">access:</span> public</li>
                        </ul>
        
        <div class="method-signature">
                <span class="method-result">mixed</span>
                <span class="method-name">
                        requeter
                </span>
                                        (<span class="var-type">string</span>&nbsp;<span class="var-name">$requete</span>)
                        </div>
        
                        <ul class="parameters">
                                        <li>
                                <span class="var-type">string</span>
                                <span class="var-name">$requete</span><span class="var-description">: la requête à effectuer</span>                   </li>
                                </ul>
                
                        
        </div>
<a name="methodrequeteTous" id="requeteTous"><!-- --></a>
<div class="evenrow">
        
        <div class="method-header">
                <span class="method-title">requeteTous</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a270">270</a></span>)
        </div> 
        
        <!-- ========== Info from phpDoc block ========= -->
        <ul class="tags">
                                <li><span class="field">deprecated:</span> changement de nom. Disparaîtra dans la version 0.4. Utiliser à la place : @see recupererTous</li>
                                <li><span class="field">access:</span> protected</li>
                        </ul>
        
        <div class="method-signature">
                <span class="method-result">void</span>
                <span class="method-name">
                        requeteTous
                </span>
                                        (<span class="var-type"></span>&nbsp;<span class="var-name">$requete</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$mode</span> = <span class="var-default">self::MODE_ASSOC</span>])
                        </div>
        
                        <ul class="parameters">
                                        <li>
                                <span class="var-type"></span>
                                <span class="var-name">$requete</span>                  </li>
                                        <li>
                                <span class="var-type"></span>
                                <span class="var-name">$mode</span>                     </li>
                                </ul>
                
                        
        </div>
<a name="methodrequeteUn" id="requeteUn"><!-- --></a>
<div class="oddrow">
        
        <div class="method-header">
                <span class="method-title">requeteUn</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a224">224</a></span>)
        </div> 
        
        <!-- ========== Info from phpDoc block ========= -->
        <ul class="tags">
                                <li><span class="field">deprecated:</span> changement de nom. Disparaîtra dans la version 0.4. Utiliser à la place : @see recuperer</li>
                                <li><span class="field">access:</span> protected</li>
                        </ul>
        
        <div class="method-signature">
                <span class="method-result">void</span>
                <span class="method-name">
                        requeteUn
                </span>
                                        (<span class="var-type"></span>&nbsp;<span class="var-name">$requete</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$mode</span> = <span class="var-default">self::MODE_ASSOC</span>])
                        </div>
        
                        <ul class="parameters">
                                        <li>
                                <span class="var-type"></span>
                                <span class="var-name">$requete</span>                  </li>
                                        <li>
                                <span class="var-type"></span>
                                <span class="var-name">$mode</span>                     </li>
                                </ul>
                
                        
        </div>
                                                
                </div>
        </div>

        <a name="sec-consts"></a>
        <div class="info-box">
                <div class="info-box-title">Class Constants</div>
                <div class="nav-bar">
                        <a href="#sec-description">Description</a> |
                                                                                <a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>)
                                                
                        
                                                                                                <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
                                                                                                                | 
                                                                        <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
                                                        
                                        </div>
                <div class="info-box-body">
                        <a name="constABSTRACTION_MYSQL" id="ABSTRACTION_MYSQL"><!-- --></A>
<div class="evenrow">

        <div class="const-header">
                <img src="../media/images/Variable.png" />
                <span class="const-title">
                        <span class="const-name">ABSTRACTION_MYSQL</span>
                         = <span class="const-default"> 'mysql'</span>
                        (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a37">37</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constante stockant le code pour l'abstraction de mysql.</p>
        
        
</div>
<a name="constABSTRACTION_MYSQLI" id="ABSTRACTION_MYSQLI"><!-- --></A>
<div class="oddrow">

        <div class="const-header">
                <img src="../media/images/Variable.png" />
                <span class="const-title">
                        <span class="const-name">ABSTRACTION_MYSQLI</span>
                         = <span class="const-default"> 'mysqli'</span>
                        (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a40">40</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constante stockant le code pour l'abstraction de mysqli.</p>
        
        
</div>
<a name="constABSTRACTION_PDO" id="ABSTRACTION_PDO"><!-- --></A>
<div class="evenrow">

        <div class="const-header">
                <img src="../media/images/Variable.png" />
                <span class="const-title">
                        <span class="const-name">ABSTRACTION_PDO</span>
                         = <span class="const-default"> 'pdo'</span>
                        (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a34">34</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constante stockant le code pour l'abstraction de PDO.</p>
        
        
</div>
<a name="constABSTRACTION_SQLITE3" id="ABSTRACTION_SQLITE3"><!-- --></A>
<div class="oddrow">

        <div class="const-header">
                <img src="../media/images/Variable.png" />
                <span class="const-title">
                        <span class="const-name">ABSTRACTION_SQLITE3</span>
                         = <span class="const-default"> 'sqlite3'</span>
                        (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a43">43</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constante stockant le code pour l'abstraction de SQLite3.</p>
        
        
</div>
<a name="constERREUR_CONNEXION_TPL" id="ERREUR_CONNEXION_TPL"><!-- --></A>
<div class="evenrow">

        <div class="const-header">
                <img src="../media/images/Variable.png" />
                <span class="const-title">
                        <span class="const-name">ERREUR_CONNEXION_TPL</span>
                         = <span class="const-default"> 'Erreur de connexion à la base de données, vérifiez les paramètres du fichier de configuration.\nMessage : %S.'</span>
                        (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a28">28</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constante stockant le squelette du message en cas d'erreur de connexion à la base de données.</p>
        
        
</div>
<a name="constERREUR_REQUETE_TPL" id="ERREUR_REQUETE_TPL"><!-- --></A>
<div class="oddrow">

        <div class="const-header">
                <img src="../media/images/Variable.png" />
                <span class="const-title">
                        <span class="const-name">ERREUR_REQUETE_TPL</span>
                         = <span class="const-default"> 'Requête echec.\nFichier : %s.\nLigne : %s.\nMessage : %s.\nRequête : %s'</span>
                        (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a25">25</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constante stockant le squelette du message en cas d'erreur de requête sql.</p>
        
        
</div>
<a name="constERREUR_SELECTION_BDD_TPL" id="ERREUR_SELECTION_BDD_TPL"><!-- --></A>
<div class="evenrow">

        <div class="const-header">
                <img src="../media/images/Variable.png" />
                <span class="const-title">
                        <span class="const-name">ERREUR_SELECTION_BDD_TPL</span>
                         = <span class="const-default"> 'Erreur de sélection de la base de données, vérifiez les paramètres du fichier de configuration.\nMessage : %S.'</span>
                        (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a31">31</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constante stockant le squelette du message en cas d'erreur de sélection de la base de données.</p>
        
        
</div>
<a name="constMODE_ASSOC" id="MODE_ASSOC"><!-- --></A>
<div class="oddrow">

        <div class="const-header">
                <img src="../media/images/Variable.png" />
                <span class="const-title">
                        <span class="const-name">MODE_ASSOC</span>
                         = <span class="const-default"> 'ASSOC'</span>
                        (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a46">46</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constante stockant le code pour le mode tableau associatif des résultats des requêtes.</p>
        
        
</div>
<a name="constMODE_OBJET" id="MODE_OBJET"><!-- --></A>
<div class="evenrow">

        <div class="const-header">
                <img src="../media/images/Variable.png" />
                <span class="const-title">
                        <span class="const-name">MODE_OBJET</span>
                         = <span class="const-default"> 'OBJECT'</span>
                        (line <span class="line-number"><a href="../__filesource/fsource_Framework__Bdd.php.html#a49">49</a></span>)
                </span>
        </div>

        <!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constante stockant le code pour le mode objet des résultats des requêtes.</p>
        
        
</div>
                                                
                </div>
        </div>

        <p class="notes" id="credit">
                Documentation generated on Tue, 18 Jan 2011 15:30:36 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
        </p>
        </div></body>
</html>