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.3</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.3</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">268</span></a></li><li><a href="../reports/markers.html"><i class="icon-list-alt"></i> Markers <span class="label label-info pull-right">11</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-202955332"></a><a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a></div><div id="namespace-202955332" 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>CacheSqlite</h1><p><em></em></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/CacheSqlite.html#method___construct" class="">__construct()</a><br /><a href="../classes/CacheSqlite.html#method___destruct" class="">__destruct()</a><br /><a href="../classes/CacheSqlite.html#method_setEmplacement" class="">setEmplacement()</a><br /><a href="../classes/CacheSqlite.html#method_charger" class="">charger()</a><br /><a href="../classes/CacheSqlite.html#method_tester" class="">tester()</a><br /><a href="../classes/CacheSqlite.html#method_sauver" class="">sauver()</a><br /><a href="../classes/CacheSqlite.html#method_supprimer" class="">supprimer()</a><br /><a href="../classes/CacheSqlite.html#method_nettoyer" class="">nettoyer()</a><br /><a href="../classes/CacheSqlite.html#method_getIds" class="">getIds()</a><br /><a href="../classes/CacheSqlite.html#method_getTags" class="">getTags()</a><br /><a href="../classes/CacheSqlite.html#method_getIdsAvecLesTags" class="">getIdsAvecLesTags()</a><br /><a href="../classes/CacheSqlite.html#method_getIdsSansLesTags" class="">getIdsSansLesTags()</a><br /><a href="../classes/CacheSqlite.html#method_getIdsAvecUnTag" class="">getIdsAvecUnTag()</a><br /><a href="../classes/CacheSqlite.html#method_getPourcentageRemplissage" class="">getPourcentageRemplissage()</a><br /><a href="../classes/CacheSqlite.html#method_getMetadonnees" class="">getMetadonnees()</a><br /><a href="../classes/CacheSqlite.html#method_ajouterSupplementDureeDeVie" class="">ajouterSupplementDureeDeVie()</a><br /></section><section class="span4"><em>No public properties found</em></section><section class="span4"><em>No constants found</em></section></section><section class="row-fluid protected"><section class="span4"><em>No protected methods found</em></section><section class="span4"><a href="../classes/CacheSqlite.html#property_options" class="">$options</a><br /></section><section class="span4"><em>N/A</em></section></section><section class="row-fluid private"><section class="span4"><a href="../classes/CacheSqlite.html#method_initialiserOptionsParConfig" class="">initialiserOptionsParConfig()</a><br /><a href="../classes/CacheSqlite.html#method_setOptions" class="">setOptions()</a><br /><a href="../classes/CacheSqlite.html#method_getConnexion" class="">getConnexion()</a><br /><a href="../classes/CacheSqlite.html#method_requeter" class="">requeter()</a><br /><a href="../classes/CacheSqlite.html#method_defragmenterAutomatiquement" class="">defragmenterAutomatiquement()</a><br /><a href="../classes/CacheSqlite.html#method_enregisterTag" class="">enregisterTag()</a><br /><a href="../classes/CacheSqlite.html#method_creerStructure" class="">creerStructure()</a><br /><a href="../classes/CacheSqlite.html#method_verifierBddStructureVersion" class="">verifierBddStructureVersion()</a><br /><a href="../classes/CacheSqlite.html#method_nettoyerSqlite" class="">nettoyerSqlite()</a><br /><a href="../classes/CacheSqlite.html#method_verifierEtCreerStructureBdd" class="">verifierEtCreerStructureBdd()</a><br /></section><section class="span4"><a href="../classes/CacheSqlite.html#property_bdd" class="">$bdd</a><br /><a href="../classes/CacheSqlite.html#property_structure_ok" class="">$structure_ok</a><br /><a href="../classes/CacheSqlite.html#property_Cache" class="">$Cache</a><br /></section><section class="span4"><em>N/A</em></section></section></section></div><aside class="span4 detailsbar"><dl><dt>File</dt><dd><a href="../files/CacheSqlite.php.html"><div class="path-wrapper">CacheSqlite.php</div></a></dd><dt>Class hierarchy</dt><dd class="hierarchy"><div class="namespace-wrapper">\CacheSqlite</div></dd></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_options" name="property_options" class="anchor"></a><article class="property"><h3 class="protected ">$options</h3><pre class="signature">$options : array</pre><p><em>Options disponibles :</em></p><p>====> (string) stockage_chemin :Chemin vers le fichier contenant la base SQLite.</p><p>====> (int) defragmentation_auto :</p><ul><li>Désactive / Régler le processus de défragmentation automatique</li><li>Le processus de défragmentation automatiques réduit la taille du fichier contenant la base de donnéesquand un ajout ou une suppression de cache est réalisée :0 => pas de défragmentation automatique1 => défragmentation automatique systématiquex (integer) > 1 => défragmentation automatique toutes les 1 fois (au hasard) sur x ajout ou suppression de cache</li></ul><h4>Type</h4>array— options disponibles </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" name="property_bdd" class="anchor"></a><article class="property"><h3 class="private ">$bdd</h3><pre class="signature">$bdd : mixed</pre><p><em>DB ressource</em></p><h4>Type</h4>mixed</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_structure_ok" name="property_structure_ok" class="anchor"></a><article class="property"><h3 class="private ">$structure_ok</h3><pre class="signature">$structure_ok : boolean</pre><p><em>Boolean to store if the structure has benn checked or not</em></p><h4>Type</h4>boolean</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_Cache" name="property_Cache" class="anchor"></a><article class="property"><h3 class="private ">$Cache</h3><pre class="signature">$Cache</pre><p><em></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(array <span class="argument">$options</span>, \Cache <span class="argument">$cache</span>) : void</pre><p><em>Constructor</em></p><h4>Parameters</h4><table class="table table-condensed table-hover"><tr><td>array</td><td>$options</td><td><p>Associative array of options</p></td></tr><tr><td><a href="../classes/Cache.html">\Cache</a></td><td>$cache</td><td></td></tr></table><h4>Throws</h4><dl><dt>\Zend_cache_Exception</dt><dd></dd></dl></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___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() : void</pre><p><em>Destructor</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_setEmplacement" name="method_setEmplacement" class="anchor"></a><article class="method"><h3 class="public ">setEmplacement()</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;">setEmplacement( <span class="argument">$emplacement</span>)</pre><p><em></em></p><h4>Parameters</h4><table class="table table-condensed table-hover"><tr><td></td><td>$emplacement</td><td></td></tr></table></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_charger" name="method_charger" class="anchor"></a><article class="method"><h3 class="public ">charger()</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;">charger(string <span class="argument">$id</span>, <span class="argument">$ne_pas_tester_validiter_du_cache</span>) : string|false</pre><p><em>Test if a cache is available for the given id and (if yes) return it (false else)</em></p><h4>Parameters</h4><table class="table table-condensed table-hover"><tr><td>string</td><td>$id</td><td><p>Cache id</p></td></tr><tr><td></td><td>$ne_pas_tester_validiter_du_cache</td><td></td></tr></table><h4>Returns</h4>string|false— <p>Cached datas</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_tester" name="method_tester" class="anchor"></a><article class="method"><h3 class="public ">tester()</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;">tester(string <span class="argument">$id</span>) : mixed|false</pre><p><em>Test if a cache is available or not (for the given id)</em></p><h4>Parameters</h4><table class="table table-condensed table-hover"><tr><td>string</td><td>$id</td><td><p>Cache id</p></td></tr></table><h4>Returns</h4>mixed|false— <p>(a cache is not available) or "last modified" timestamp (int) of the available cache record</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_sauver" name="method_sauver" class="anchor"></a><article class="method"><h3 class="public ">sauver()</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;">sauver( <span class="argument">$donnees</span>, string <span class="argument">$id</span>, array <span class="argument">$tags</span>, <span class="argument">$duree_vie_specifique</span>) : boolean</pre><p><em>Save some string datas into a cache record</em></p><p>Note : $data is always "string" (serialization is done by thecore not by the backend)</p><h4>Parameters</h4><table class="table table-condensed table-hover"><tr><td></td><td>$donnees</td><td></td></tr><tr><td>string</td><td>$id</td><td><p>Cache id</p></td></tr><tr><td>array</td><td>$tags</td><td><p>Array of strings, the cache record will be tagged by each string entry</p></td></tr><tr><td></td><td>$duree_vie_specifique</td><td></td></tr></table><h4>Throws</h4><dl><dt>\Zend_Cache_Exception</dt><dd></dd></dl><h4>Returns</h4>boolean— <p>True if no problem</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_supprimer" name="method_supprimer" class="anchor"></a><article class="method"><h3 class="public ">supprimer()</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;">supprimer(string <span class="argument">$id</span>) : boolean</pre><p><em>Remove a cache record</em></p><h4>Parameters</h4><table class="table table-condensed table-hover"><tr><td>string</td><td>$id</td><td><p>Cache id</p></td></tr></table><h4>Returns</h4>boolean— <p>True if no problem</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_nettoyer" name="method_nettoyer" class="anchor"></a><article class="method"><h3 class="public ">nettoyer()</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;">nettoyer(string <span class="argument">$mode</span>, array <span class="argument">$tags</span>) : boolean</pre><p><em>Clean some cache records</em></p><p>Available modes are :Zend_Cache::CLEANING_MODE_ALL (default) => remove all cache entries ($tags is not used)Zend_Cache::CLEANING_MODE_OLD => remove too old cache entries ($tags is not used)Zend_Cache::CLEANING_MODE_MATCHING_TAG => remove cache entries matching all given tags</p><pre><code> ($tags can be an array of strings or a single string)</code></pre><p>Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG => remove cache entries not {matching one of the given tags}</p><pre><code> ($tags can be an array of strings or a single string)</code></pre><p>Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG => remove cache entries matching any given tags</p><pre><code> ($tags can be an array of strings or a single string)</code></pre><h4>Parameters</h4><table class="table table-condensed table-hover"><tr><td>string</td><td>$mode</td><td><p>Clean mode</p></td></tr><tr><td>array</td><td>$tags</td><td><p>Array of tags</p></td></tr></table><h4>Returns</h4>boolean— <p>True if no problem</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_getIds" name="method_getIds" class="anchor"></a><article class="method"><h3 class="public ">getIds()</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;">getIds() : array</pre><p><em>Return an array of stored cache ids</em></p><h4>Returns</h4>array— <p>array of stored cache ids (string)</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_getTags" name="method_getTags" class="anchor"></a><article class="method"><h3 class="public ">getTags()</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;">getTags() : array</pre><p><em>Return an array of stored tags</em></p><h4>Returns</h4>array— <p>array of stored tags (string)</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_getIdsAvecLesTags" name="method_getIdsAvecLesTags" class="anchor"></a><article class="method"><h3 class="public ">getIdsAvecLesTags()</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;">getIdsAvecLesTags(array <span class="argument">$tags</span>) : array</pre><p><em>Return an array of stored cache ids which match given tags</em></p><p>In case of multiple tags, a logical AND is made between tags</p><h4>Parameters</h4><table class="table table-condensed table-hover"><tr><td>array</td><td>$tags</td><td><p>array of tags</p></td></tr></table><h4>Returns</h4>array— <p>array of matching cache ids (string)</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_getIdsSansLesTags" name="method_getIdsSansLesTags" class="anchor"></a><article class="method"><h3 class="public ">getIdsSansLesTags()</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;">getIdsSansLesTags(array <span class="argument">$tags</span>) : array</pre><p><em>Return an array of stored cache ids which don't match given tags</em></p><p>In case of multiple tags, a logical OR is made between tags</p><h4>Parameters</h4><table class="table table-condensed table-hover"><tr><td>array</td><td>$tags</td><td><p>array of tags</p></td></tr></table><h4>Returns</h4>array— <p>array of not matching cache ids (string)</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_getIdsAvecUnTag" name="method_getIdsAvecUnTag" class="anchor"></a><article class="method"><h3 class="public ">getIdsAvecUnTag()</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;">getIdsAvecUnTag(array <span class="argument">$tags</span>) : array</pre><p><em>Return an array of stored cache ids which match any given tags</em></p><p>In case of multiple tags, a logical AND is made between tags</p><h4>Parameters</h4><table class="table table-condensed table-hover"><tr><td>array</td><td>$tags</td><td><p>array of tags</p></td></tr></table><h4>Returns</h4>array— <p>array of any matching cache ids (string)</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_getPourcentageRemplissage" name="method_getPourcentageRemplissage" class="anchor"></a><article class="method"><h3 class="public ">getPourcentageRemplissage()</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;">getPourcentageRemplissage() : int</pre><p><em>Return the filling percentage of the backend storage</em></p><h4>Throws</h4><dl><dt>\Zend_Cache_Exception</dt><dd></dd></dl><h4>Returns</h4>int— <p>integer between 0 and 100</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_getMetadonnees" name="method_getMetadonnees" class="anchor"></a><article class="method"><h3 class="public ">getMetadonnees()</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;">getMetadonnees(string <span class="argument">$id</span>) : array</pre><p><em>Return an array of metadatas for the given cache id</em></p><p>The array must include these keys :</p><ul><li>expire : the expire timestamp</li><li>tags : a string array of tags</li><li>mtime : timestamp of last modification time</li></ul><h4>Parameters</h4><table class="table table-condensed table-hover"><tr><td>string</td><td>$id</td><td><p>cache id</p></td></tr></table><h4>Returns</h4>array— <p>array of metadatas (false if the cache id is not found)</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_ajouterSupplementDureeDeVie" name="method_ajouterSupplementDureeDeVie" class="anchor"></a><article class="method"><h3 class="public ">ajouterSupplementDureeDeVie()</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;">ajouterSupplementDureeDeVie(string <span class="argument">$id</span>, <span class="argument">$supplement_duree_de_vie</span>) : boolean</pre><p><em>Give (if possible) an extra lifetime to the given cache id</em></p><h4>Parameters</h4><table class="table table-condensed table-hover"><tr><td>string</td><td>$id</td><td><p>cache id</p></td></tr><tr><td></td><td>$supplement_duree_de_vie</td><td></td></tr></table><h4>Returns</h4>boolean— <p>true if ok</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_initialiserOptionsParConfig" name="method_initialiserOptionsParConfig" class="anchor"></a><article class="method"><h3 class="private ">initialiserOptionsParConfig()</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;">initialiserOptionsParConfig()</pre><p><em></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_setOptions" name="method_setOptions" class="anchor"></a><article class="method"><h3 class="private ">setOptions()</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;">setOptions( <span class="argument">$options</span>)</pre><p><em></em></p><h4>Parameters</h4><table class="table table-condensed table-hover"><tr><td></td><td>$options</td><td></td></tr></table></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_getConnexion" name="method_getConnexion" class="anchor"></a><article class="method"><h3 class="private ">getConnexion()</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;">getConnexion() : resource</pre><p><em>Return the connection resource</em></p><p>If we are not connected, the connection is made</p><h4>Throws</h4><dl><dt>\Zend_Cache_Exception</dt><dd></dd></dl><h4>Returns</h4>resource— <p>Connection resource</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="private ">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(string <span class="argument">$requete</span>) : mixed|false</pre><p><em>Execute une requête SQL sans afficher de messages d'erreur.</em></p><h4>Parameters</h4><table class="table table-condensed table-hover"><tr><td>string</td><td>$requete</td><td><p>requête SQL</p></td></tr></table><h4>Returns</h4>mixed|false— <p>resultats 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_defragmenterAutomatiquement" name="method_defragmenterAutomatiquement" class="anchor"></a><article class="method"><h3 class="private ">defragmenterAutomatiquement()</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;">defragmenterAutomatiquement() : void</pre><p><em>Deal with the automatic vacuum process</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_enregisterTag" name="method_enregisterTag" class="anchor"></a><article class="method"><h3 class="private ">enregisterTag()</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;">enregisterTag(string <span class="argument">$id</span>, string <span class="argument">$tag</span>) : boolean</pre><p><em>Register a cache id with the given tag</em></p><h4>Parameters</h4><table class="table table-condensed table-hover"><tr><td>string</td><td>$id</td><td><p>Cache id</p></td></tr><tr><td>string</td><td>$tag</td><td><p>Tag</p></td></tr></table><h4>Returns</h4>boolean— <p>True if no problem</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_creerStructure" name="method_creerStructure" class="anchor"></a><article class="method"><h3 class="private ">creerStructure()</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;">creerStructure() : false</pre><p><em>Build the database structure</em></p><h4>Returns</h4>false</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_verifierBddStructureVersion" name="method_verifierBddStructureVersion" class="anchor"></a><article class="method"><h3 class="private ">verifierBddStructureVersion()</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;">verifierBddStructureVersion() : boolean</pre><p><em>Check if the database structure is ok (with the good version)</em></p><h4>Returns</h4>boolean— <p>True if ok</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_nettoyerSqlite" name="method_nettoyerSqlite" class="anchor"></a><article class="method"><h3 class="private ">nettoyerSqlite()</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;">nettoyerSqlite(string <span class="argument">$mode</span>, array <span class="argument">$tags</span>) : boolean</pre><p><em>Clean some cache records</em></p><p>Available modes are :Zend_Cache::CLEANING_MODE_ALL (default) => remove all cache entries ($tags is not used)Zend_Cache::CLEANING_MODE_OLD => remove too old cache entries ($tags is not used)Zend_Cache::CLEANING_MODE_MATCHING_TAG => remove cache entries matching all given tags</p><pre><code> ($tags can be an array of strings or a single string)</code></pre><p>Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG => remove cache entries not {matching one of the given tags}</p><pre><code> ($tags can be an array of strings or a single string)</code></pre><p>Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG => remove cache entries matching any given tags</p><pre><code> ($tags can be an array of strings or a single string)</code></pre><h4>Parameters</h4><table class="table table-condensed table-hover"><tr><td>string</td><td>$mode</td><td><p>Clean mode</p></td></tr><tr><td>array</td><td>$tags</td><td><p>Array of tags</p></td></tr></table><h4>Returns</h4>boolean— <p>True if no problem</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_verifierEtCreerStructureBdd" name="method_verifierEtCreerStructureBdd" class="anchor"></a><article class="method"><h3 class="private ">verifierEtCreerStructureBdd()</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;">verifierEtCreerStructureBdd() : boolean</pre><p><em>Check if the database structure is ok (with the good version), if no : build it</em></p><h4>Throws</h4><dl><dt>\Zend_Cache_Exception</dt><dd></dd></dl><h4>Returns</h4>boolean— <p>True if ok</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">CacheSqlite.php</h3></div><div class="modal-body"><pre data-src="../files/CacheSqlite.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 authoredon March 12th, 2014 at 16:53.</section></section></section></footer></div></body></html>