/trunk/doc/Framework/Registre.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/Chronometre.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/Debug.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/_Url.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/_Application.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/_Modele.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/_Config.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/_GestionnaireException.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/Controleur.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/Url.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/Application.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/Modele.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/Config.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/_autoload.inc.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/_Log.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/GestionnaireException.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/_Registre.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/_Chronometre.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/_Debug.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/_Controleur.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/Framework/Log.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/__filesource/fsource_Framework__Url.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/__filesource/fsource_Framework__Application.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/__filesource/fsource_Framework__Registre.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/__filesource/fsource_Framework__Chronometre.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/__filesource/fsource_Framework__Config.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/__filesource/fsource_Framework__Modele.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/__filesource/fsource_Framework__Debug.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/__filesource/fsource_Framework__GestionnaireException.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/__filesource/fsource_Framework__Controleur.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/__filesource/fsource_Framework__autoload.inc.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/__filesource/fsource_Framework__Log.php.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/errors.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/media/banner.css |
---|
File deleted |
/trunk/doc/media/stylesheet.css |
---|
File deleted |
/trunk/doc/elementindex_Framework.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/packages.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/elementindex.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/li_Framework.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/classtrees_Framework.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/blank.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/index.html |
---|
File deleted |
\ No newline at end of file |
/trunk/doc/genererDoc.sh |
---|
New file |
0,0 → 1,65 |
#!/bin/bash |
######################################################################################################################## |
# But : création et mise en ligne automatique sur le serveur par ftp, de la dernière version de la doc du Framework. |
# Auteur : Jean-Pascal Milcent <jpm@tela-botanica.org> |
# License : GPL v3 |
# Création : 04 mars 2010 |
# Version: 0.1 |
# $Id$ |
######################################################################################################################## |
# Constante |
NBREPARAM=$# |
TITRE="Documentation du Framework de Tela Botanica" |
SOURCE=/opt/lampp/htdocs/framework/framework |
CIBLE=/opt/lampp/htdocs/framework/doc |
FTP_CIBLE="/www/doc/framework" |
IGNORER=.htaccess,config.ini |
FORMAT=HTML:frames:DOM/phpdoc.de,HTML:Smarty:PHP |
PACKAGE_DEFAUT="Framework" |
CATEGORIE_DEFAUT="php 5.2" |
SILENCIEUX="on" |
# Aide |
E_OPTERR=65 |
if [ "$1" = '--help' ] |
then # Le script a besoin d'au moins un argument sur la ligne de commande |
echo "Usage $0 -[parameters -u, -p ]" |
echo "Paramétres : " |
echo " -h: indiquer l'hote ftp" |
echo " -u: indiquer le nom de l'utilisateur ftp" |
echo " -p: indiquer le mot de passe de l'utilisateur ftp" |
exit $E_OPTERR |
fi |
# Récupération des paramètres et des options de la ligne de commande |
TEMP=`getopt -o u:p:h: -l help: -- "$@"` |
if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi |
eval set -- "$TEMP" |
while [ ! -z "$1" ] ; do |
#echo $1" # "$2 |
case "$1" in |
-h) HOST=$2;; |
-u) FTP_USER=$2;; |
-p) FTP_PASSWD=$2;; |
--) shift ; break ;; |
*) echo "Internal error!" ; exit 1 ;; |
esac |
shift 2 |
done |
# Suppression des dossiers précédent de la doc |
if [ -d HTMLframesConverter ]; then |
rm -fR HTMLframesConverter |
fi; |
if [ -d HTMLSmartyConverter ]; then |
rm -fR HTMLSmartyConverter |
fi; |
echo "Génération de la documentation :"; |
/opt/lampp/bin/phpdoc -t $CIBLE -i $IGNORER -o $FORMAT -d $SOURCE -ti $TITRE -s on -dn $PACKAGE_DEFAUT -dc $CATEGORIE_DEFAUT -q $SILENCIEUX |
if [ $NBREPARAM -eq 0 ]; then |
echo "Pas de transfert sur le serveur. Utiliser --help pour voir les options de transfert." |
else |
echo "Transfert sur le serveur de l'application :"; |
lftp ftp://$FTP_USER:$FTP_PASSWD@$HOST -e "set ftp:passive off; mirror -e -R -L -x .svn -x genererDoc.sh $CIBLE $FTP_CIBLE ; quit" |
fi; |
Property changes: |
Added: svn:eol-style |
+native |
\ No newline at end of property |
Added: svn:executable |
+* |
\ No newline at end of property |
/trunk/doc/HTMLframesConverter/classtrees_Framework.html |
---|
New file |
0,0 → 1,64 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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></title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" href="media/stylesheet.css" /> |
</head> |
<body> |
<!-- Start of Class Data --> |
<H2> |
</H2> |
<h2>Root class Application</h2> |
<ul> |
<li><a href="Framework/Application.html">Application</a></li></ul> |
<h2>Root class Chronometre</h2> |
<ul> |
<li><a href="Framework/Chronometre.html">Chronometre</a></li></ul> |
<h2>Root class Config</h2> |
<ul> |
<li><a href="Framework/Config.html">Config</a></li></ul> |
<h2>Root class Controleur</h2> |
<ul> |
<li><a href="Framework/Controleur.html">Controleur</a></li></ul> |
<h2>Root class Debug</h2> |
<ul> |
<li><a href="Framework/Debug.html">Debug</a></li></ul> |
<h2>Root class GestionnaireException</h2> |
<ul> |
<li><a href="Framework/GestionnaireException.html">GestionnaireException</a></li></ul> |
<h2>Root class Log</h2> |
<ul> |
<li><a href="Framework/Log.html">Log</a></li></ul> |
<h2>Root class Modele</h2> |
<ul> |
<li><a href="Framework/Modele.html">Modele</a></li></ul> |
<h2>Root class Registre</h2> |
<ul> |
<li><a href="Framework/Registre.html">Registre</a></li></ul> |
<h2>Root class SquelettePhp</h2> |
<ul> |
<li><a href="Framework/SquelettePhp.html">SquelettePhp</a></li></ul> |
<h2>Root class Url</h2> |
<ul> |
<li><a href="Framework/Url.html">Url</a></li></ul> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:07 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</body> |
</html> |
/trunk/doc/HTMLframesConverter/blank.html |
---|
New file |
0,0 → 1,13 |
<html> |
<head> |
<title>Documentation</title> |
<link rel="stylesheet" href="media/stylesheet.css" /> |
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> |
</head> |
<body> |
<div align="center"><h1>Documentation</h1></div> |
<b>Welcome to Framework!</b><br /> |
<br /> |
This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.3</a><br /> |
</body> |
</html> |
/trunk/doc/HTMLframesConverter/index.html |
---|
New file |
0,0 → 1,24 |
<?xml version="1.0" encoding="UTF-8"?> |
<!DOCTYPE html |
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//FR" |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head> |
<!-- Generated by phpDocumentor on Thu, 04 Mar 2010 19:27:07 +0100 --> |
<title>Documentation</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
</head> |
<FRAMESET rows='120,*'> |
<FRAME src='packages.html' name='left_top' frameborder="1" bordercolor="#999999"> |
<FRAMESET cols='25%,*'> |
<FRAME src='li_Framework.html' name='left_bottom' frameborder="1" bordercolor="#999999"> |
<FRAME src='blank.html' name='right' frameborder="1" bordercolor="#999999"> |
</FRAMESET> |
<NOFRAMES> |
<H2>Frame Alert</H2> |
<P>This document is designed to be viewed using the frames feature. |
If you see this message, you are using a non-frame-capable web client.</P> |
</NOFRAMES> |
</FRAMESET> |
</HTML> |
/trunk/doc/HTMLframesConverter/Framework/Registre.html |
---|
New file |
0,0 → 1,333 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 Registre</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 Registre</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-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Classe registre, qui permet un accès à différentes variables à travers les autres classes.</p> |
<p class="description"><p>C'est un singleton</p><p>PHP Version 5</p></p> |
<ul class="tags"> |
<li><span class="field">author:</span> Jean-Pascal Milcent <<a href="mailto:jmp@tela-botanica.org">jmp@tela-botanica.org</a>></li> |
<li><span class="field">version:</span> SVN: $$Id: Registre.php 120 2009-09-01 12:21:14Z aurelien $$</li> |
<li><span class="field">copyright:</span> 2009 Tela-Botanica</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="_Registre.php.html">/Registre.php</a> (line <span class="field"><a href="../__filesource/fsource_Framework__Registre.php.html#a19">19</a></span>) |
</p> |
<pre></pre> |
</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> | |
<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"> |
static <span class="method-result">void</span> |
<a href="#getInstance" title="details" class="method-name">getInstance</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">void</span> |
<a href="#detruire" title="details" class="method-name">detruire</a> |
(<span class="var-type"></span> <span class="var-name">$intitule</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">boolean</span> |
<a href="#existe" title="details" class="method-name">existe</a> |
(<span class="var-type"></span> <span class="var-name">$intitule</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">mixed</span> |
<a href="#get" title="details" class="method-name">get</a> |
(<span class="var-type"></span> <span class="var-name">$intitule</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">void</span> |
<a href="#set" title="details" class="method-name">set</a> |
(<span class="var-type">string</span> <span class="var-name">$intitule</span>, <span class="var-type">mixed</span> <span class="var-name">$objet</span>) |
</div> |
</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-method-summary">Methods</a> (<span class="disabled">details</span>) |
</div> |
<div class="info-box-body"> |
<A NAME='method_detail'></A> |
<a name="methodgetInstance" id="getInstance"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">static getInstance</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Registre.php.html#a40">40</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Fonction qui renvoie l'instance de classe en assurant son unicité, c'est l'unique méthode qui doit être</p> |
<p class="description"><p>utilisée pour récupérer l'objet Registre</p></p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">void</span> |
<span class="method-name"> |
getInstance |
</span> |
() |
</div> |
</div> |
<a name="methoddetruire" id="detruire"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">detruire</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Registre.php.html#a77">77</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Détruit l'objet associé à l'intitulé, n'a pas d'effet si il n'y a pas d'objet associé</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"> |
detruire |
</span> |
(<span class="var-type"></span> <span class="var-name">$intitule</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type"></span> |
<span class="var-name">$intitule</span> </li> |
</ul> |
</div> |
<a name="methodexiste" id="existe"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">existe</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Registre.php.html#a87">87</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Teste si un objet est présent sous un intitulé donné</p> |
<ul class="tags"> |
<li><span class="field">return:</span> true si un objet associé à cet intitulé est présent, false sinon</li> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">boolean</span> |
<span class="method-name"> |
existe |
</span> |
(<span class="var-type"></span> <span class="var-name">$intitule</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type"></span> |
<span class="var-name">$intitule</span> </li> |
</ul> |
</div> |
<a name="methodget" id="get"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">get</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Registre.php.html#a67">67</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie l'objet associé à l'intitulé donné en paramètre</p> |
<ul class="tags"> |
<li><span class="field">return:</span> l'objet associé à l'intitulé ou null s'il n'est pas présent</li> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">mixed</span> |
<span class="method-name"> |
get |
</span> |
(<span class="var-type"></span> <span class="var-name">$intitule</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type"></span> |
<span class="var-name">$intitule</span> </li> |
</ul> |
</div> |
<a name="methodset" id="set"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">set</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Registre.php.html#a53">53</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Ajoute un objet au tableau selon un intitulé donné</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"> |
set |
</span> |
(<span class="var-type">string</span> <span class="var-name">$intitule</span>, <span class="var-type">mixed</span> <span class="var-name">$objet</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$intitule</span><span class="var-description">: l'intitulé sous lequel l'objet sera conservé</span> </li> |
<li> |
<span class="var-type">mixed</span> |
<span class="var-name">$objet</span><span class="var-description">: l'objet à conserver</span> </li> |
</ul> |
</div> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:25 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/Chronometre.html |
---|
New file |
0,0 → 1,299 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 Chronometre</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 Chronometre</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-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Classe Chronometre() - Permet de stocker et d'afficher les temps d'éxécution de script.</p> |
<p class="description"><p>Cette classe permet de réaliser un ensemble de mesure de temps prises à différents endroits d'un script. Ces mesures peuvent ensuite être affichées au sein d'un tableau XHTML.</p><p>PHP Version 5</p></p> |
<ul class="tags"> |
<li><span class="field">author:</span> Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></li> |
<li><span class="field">version:</span> Release: <package_version></li> |
<li><span class="field">copyright:</span> 2009 Tela-Botanica</li> |
<li><span class="field">link:</span> /doc/framework/</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="_Chronometre.php.html">/Chronometre.php</a> (line <span class="field"><a href="../__filesource/fsource_Framework__Chronometre.php.html#a23">23</a></span>) |
</p> |
<pre></pre> |
</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> | |
<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">Chronometre</span> |
<a href="#__construct" title="details" class="method-name">__construct</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">string</span> |
<a href="#afficherChrono" title="details" class="method-name">afficherChrono</a> |
([<span class="var-type">int</span> <span class="var-name">$indentation_origine</span> = <span class="var-default">8</span>], [<span class="var-type">int</span> <span class="var-name">$indentation</span> = <span class="var-default">4</span>]) |
</div> |
<div class="method-definition"> |
<span class="method-result">int</span> |
<a href="#getTemps" title="details" class="method-name">getTemps</a> |
([<span class="var-type">string</span> <span class="var-name">$cle</span> = <span class="var-default">null</span>]) |
</div> |
<div class="method-definition"> |
<span class="method-result">null</span> |
<a href="#setTemps" title="details" class="method-name">setTemps</a> |
([<span class="var-type">array()</span> <span class="var-name">$moment</span> = <span class="var-default">array ()</span>]) |
</div> |
</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-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__Chronometre.php.html#a28">28</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Constructeur : *</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">Chronometre</span> |
<span class="method-name"> |
__construct |
</span> |
() |
</div> |
</div> |
<a name="methodafficherChrono" id="afficherChrono"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">afficherChrono</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Chronometre.php.html#a82">82</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Méthode afficherChrono() - Permet d'afficher les temps d'éxécution de différentes parties d'un script.</p> |
<p class="description"><p>Cette fonction permet d'afficher un ensemble de mesure de temps prises à différents endroits d'un script. Ces mesures sont affichées au sein d'un tableau XHTML dont on peut controler l'indentation des balises. Pour un site en production, il suffit d'ajouter un style #chrono {display:none;} dans la css. De cette façon, le tableau ne s'affichera pas. Le webmaster lui pourra rajouter sa propre feuille de style affichant le tableau. Le développeur initial de cette fonction est Loic d'Anterroches. Elle a été modifiée par Jean-Pascal Milcent. Elle utilise une variable gobale : $_CHRONO_</p></p> |
<ul class="tags"> |
<li><span class="field">return:</span> la chaine XHTML de mesure des temps.</li> |
<li><span class="field">author:</span> Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></li> |
<li><span class="field">author:</span> Loic d'Anterroches</li> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">string</span> |
<span class="method-name"> |
afficherChrono |
</span> |
([<span class="var-type">int</span> <span class="var-name">$indentation_origine</span> = <span class="var-default">8</span>], [<span class="var-type">int</span> <span class="var-name">$indentation</span> = <span class="var-default">4</span>]) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">int</span> |
<span class="var-name">$indentation_origine</span><span class="var-description">: l'indentation de base.</span> </li> |
<li> |
<span class="var-type">int</span> |
<span class="var-name">$indentation</span><span class="var-description">: le pas d'indentation.</span> </li> |
</ul> |
</div> |
<a name="methodgetTemps" id="getTemps"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">getTemps</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Chronometre.php.html#a38">38</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Accesseurs :</p> |
<ul class="tags"> |
<li><span class="field">return:</span> le temps écoulé</li> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">int</span> |
<span class="method-name"> |
getTemps |
</span> |
([<span class="var-type">string</span> <span class="var-name">$cle</span> = <span class="var-default">null</span>]) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$cle</span><span class="var-description">: la cle associée à un chronomètre particulier</span> </li> |
</ul> |
</div> |
<a name="methodsetTemps" id="setTemps"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">setTemps</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Chronometre.php.html#a54">54</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Setteur pour la variable temps</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">null</span> |
<span class="method-name"> |
setTemps |
</span> |
([<span class="var-type">array()</span> <span class="var-name">$moment</span> = <span class="var-default">array ()</span>]) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">array()</span> |
<span class="var-name">$moment</span><span class="var-description">: ajoute des points de chronométrage au tableau _temps</span> </li> |
</ul> |
</div> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:11 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/Debug.html |
---|
New file |
0,0 → 1,334 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 Debug</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 Debug</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>) |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Classe fournissant des fonctions de débogage équivalante à var_dump et print_r.</p> |
<p class="description"><p>L'affichage et l'utilisation de ces fonctions sont améliorés via cette classe. Cette classe est inspirée de la classe Zend_Debug.</p><p>PHP version 5</p></p> |
<ul class="tags"> |
<li><span class="field">author:</span> Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></li> |
<li><span class="field">version:</span> $$Id: Debug.php 153 2010-03-04 10:48:32Z jpm $$</li> |
<li><span class="field">copyright:</span> 1999-2009 Tela Botanica (accueil@tela-botanica.org)</li> |
<li><span class="field">license:</span> GPL</li> |
<li><span class="field">license:</span> CECILL</li> |
</ul> |
<p class="notes"> |
Located in <a class="field" href="_Debug.php.html">/Debug.php</a> (line <span class="field"><a href="../__filesource/fsource_Framework__Debug.php.html#a20">20</a></span>) |
</p> |
<pre></pre> |
</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>) |
</div> |
<div class="info-box-body"> |
<div class="var-summary"> |
<div class="var-title"> |
static <span class="var-type">mixed</span> |
<a href="#$mode" title="details" class="var-name">$mode</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-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"> |
static <span class="method-result">string</span> |
<a href="#dump" title="details" class="method-name">dump</a> |
(<span class="var-type">mixed</span> <span class="var-name">$variable</span>, [<span class="var-type">string</span> <span class="var-name">$mot_cle</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$echo</span> = <span class="var-default">true</span>]) |
</div> |
<div class="method-definition"> |
static <span class="method-result">string</span> |
<a href="#getMode" title="details" class="method-name">getMode</a> |
() |
</div> |
<div class="method-definition"> |
static <span class="method-result">string</span> |
<a href="#printr" title="details" class="method-name">printr</a> |
(<span class="var-type">mixed</span> <span class="var-name">$variable</span>, [<span class="var-type">string</span> <span class="var-name">$mot_cle</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$echo</span> = <span class="var-default">true</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-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
</div> |
<div class="info-box-body"> |
<a name="var$mode" id="$mode"><!-- --></A> |
<div class="evenrow"> |
<div class="var-header"> |
<span class="var-title"> |
static <span class="var-type">mixed</span> |
<span class="var-name">$mode</span> |
= <span class="var-default"> null</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Debug.php.html#a25">25</a></span>) |
</span> |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">mode de php (cli ou sapi)</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-method-summary">Methods</a> (<span class="disabled">details</span>) |
</div> |
<div class="info-box-body"> |
<A NAME='method_detail'></A> |
<a name="methoddump" id="dump"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">static dump</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Debug.php.html#a45">45</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Equivalent de var_dump</p> |
<ul class="tags"> |
<li><span class="field">return:</span> la chaine à afficher representant le dump ou null si echo</li> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">string</span> |
<span class="method-name"> |
dump |
</span> |
(<span class="var-type">mixed</span> <span class="var-name">$variable</span>, [<span class="var-type">string</span> <span class="var-name">$mot_cle</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$echo</span> = <span class="var-default">true</span>]) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">mixed</span> |
<span class="var-name">$variable</span><span class="var-description">: la variable à dumper</span> </li> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$mot_cle</span><span class="var-description">: le mot cle à associer à la variable</span> </li> |
<li> |
<span class="var-type">boolean</span> |
<span class="var-name">$echo</span><span class="var-description">: si true on affiche le résultat, si false on ne renvoie que la chaine sans l'afficher</span> </li> |
</ul> |
</div> |
<a name="methodgetMode" id="getMode"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">static getMode</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Debug.php.html#a31">31</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Accesseur pour le mode</p> |
<ul class="tags"> |
<li><span class="field">return:</span> le mode de php</li> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">string</span> |
<span class="method-name"> |
getMode |
</span> |
() |
</div> |
</div> |
<a name="methodprintr" id="printr"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">static printr</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Debug.php.html#a65">65</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Equivalent de print_r</p> |
<ul class="tags"> |
<li><span class="field">return:</span> la chaine contenant la variable printée ou null si echo</li> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">string</span> |
<span class="method-name"> |
printr |
</span> |
(<span class="var-type">mixed</span> <span class="var-name">$variable</span>, [<span class="var-type">string</span> <span class="var-name">$mot_cle</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$echo</span> = <span class="var-default">true</span>]) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">mixed</span> |
<span class="var-name">$variable</span><span class="var-description">: la variable à afficher</span> </li> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$mot_cle</span><span class="var-description">: le mot cle à associer</span> </li> |
<li> |
<span class="var-type">boolean</span> |
<span class="var-name">$echo</span><span class="var-description">: faire un echo ou non</span> </li> |
</ul> |
</div> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:21 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/_Url.php.html |
---|
New file |
0,0 → 1,140 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 page Url.php</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="file-name">/Url.php</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-classes">Classes</a> |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<ul class="tags"> |
<li><span class="field">filesource:</span> <a href="../__filesource/fsource_Framework__Url.php.html">Source Code for this file</a></li> |
</ul> |
</div> |
</div> |
<a name="sec-classes"></a> |
<div class="info-box"> |
<div class="info-box-title">Classes</div> |
<div class="nav-bar"> |
<a href="#sec-description">Description</a> | |
<span class="disabled">Classes</span> |
</div> |
<div class="info-box-body"> |
<table cellpadding="2" cellspacing="0" class="class-table"> |
<tr> |
<th class="class-table-header">Class</th> |
<th class="class-table-header">Description</th> |
</tr> |
<tr> |
<td style="padding-right: 2em; vertical-align: top"> |
<a href="../Framework/Url.html">Url</a> |
</td> |
<td> |
classe Url, gérant le découpage des paramètres, leurs modification etc... |
</td> |
</tr> |
</table> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:25 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/_Application.php.html |
---|
New file |
0,0 → 1,140 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 page Application.php</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="file-name">/Application.php</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-classes">Classes</a> |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<ul class="tags"> |
<li><span class="field">filesource:</span> <a href="../__filesource/fsource_Framework__Application.php.html">Source Code for this file</a></li> |
</ul> |
</div> |
</div> |
<a name="sec-classes"></a> |
<div class="info-box"> |
<div class="info-box-title">Classes</div> |
<div class="nav-bar"> |
<a href="#sec-description">Description</a> | |
<span class="disabled">Classes</span> |
</div> |
<div class="info-box-body"> |
<table cellpadding="2" cellspacing="0" class="class-table"> |
<tr> |
<th class="class-table-header">Class</th> |
<th class="class-table-header">Description</th> |
</tr> |
<tr> |
<td style="padding-right: 2em; vertical-align: top"> |
<a href="../Framework/Application.html">Application</a> |
</td> |
<td> |
Classe fournissant des informations au Framework sur l'application. |
</td> |
</tr> |
</table> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:07 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/_Modele.php.html |
---|
New file |
0,0 → 1,140 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 page Modele.php</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="file-name">/Modele.php</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-classes">Classes</a> |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<ul class="tags"> |
<li><span class="field">filesource:</span> <a href="../__filesource/fsource_Framework__Modele.php.html">Source Code for this file</a></li> |
</ul> |
</div> |
</div> |
<a name="sec-classes"></a> |
<div class="info-box"> |
<div class="info-box-title">Classes</div> |
<div class="nav-bar"> |
<a href="#sec-description">Description</a> | |
<span class="disabled">Classes</span> |
</div> |
<div class="info-box-body"> |
<table cellpadding="2" cellspacing="0" class="class-table"> |
<tr> |
<th class="class-table-header">Class</th> |
<th class="class-table-header">Description</th> |
</tr> |
<tr> |
<td style="padding-right: 2em; vertical-align: top"> |
<a href="../Framework/Modele.html">Modele</a> |
</td> |
<td> |
Classe modèle, donc d'accés au données, elle ne devrait pas être appelée de l'extérieur. |
</td> |
</tr> |
</table> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:23 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/_Config.php.html |
---|
New file |
0,0 → 1,140 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 page Config.php</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="file-name">/Config.php</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-classes">Classes</a> |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<ul class="tags"> |
<li><span class="field">filesource:</span> <a href="../__filesource/fsource_Framework__Config.php.html">Source Code for this file</a></li> |
</ul> |
</div> |
</div> |
<a name="sec-classes"></a> |
<div class="info-box"> |
<div class="info-box-title">Classes</div> |
<div class="nav-bar"> |
<a href="#sec-description">Description</a> | |
<span class="disabled">Classes</span> |
</div> |
<div class="info-box-body"> |
<table cellpadding="2" cellspacing="0" class="class-table"> |
<tr> |
<th class="class-table-header">Class</th> |
<th class="class-table-header">Description</th> |
</tr> |
<tr> |
<td style="padding-right: 2em; vertical-align: top"> |
<a href="../Framework/Config.html">Config</a> |
</td> |
<td> |
Config permet de charger automatiquement les fichiers ini du Framework et de l'application. |
</td> |
</tr> |
</table> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:11 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/_GestionnaireException.php.html |
---|
New file |
0,0 → 1,140 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 page GestionnaireException.php</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="file-name">/GestionnaireException.php</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-classes">Classes</a> |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<ul class="tags"> |
<li><span class="field">filesource:</span> <a href="../__filesource/fsource_Framework__GestionnaireException.php.html">Source Code for this file</a></li> |
</ul> |
</div> |
</div> |
<a name="sec-classes"></a> |
<div class="info-box"> |
<div class="info-box-title">Classes</div> |
<div class="nav-bar"> |
<a href="#sec-description">Description</a> | |
<span class="disabled">Classes</span> |
</div> |
<div class="info-box-body"> |
<table cellpadding="2" cellspacing="0" class="class-table"> |
<tr> |
<th class="class-table-header">Class</th> |
<th class="class-table-header">Description</th> |
</tr> |
<tr> |
<td style="padding-right: 2em; vertical-align: top"> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a> |
</td> |
<td> |
Classe de gestion des exceptions. |
</td> |
</tr> |
</table> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:21 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/Controleur.html |
---|
New file |
0,0 → 1,339 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 Controleur</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 Controleur</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-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Classe Controleur, coeur d'une application, c'est normalement la seule classe d'une application qui devrait être appelée de l'extérieur.</p> |
<p class="description"><p>Elle est abstraite donc doit obligatoirement être étendue.</p></p> |
<ul class="tags"> |
<li><span class="field">author:</span> Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></li> |
<li><span class="field">author:</span> Aurélien PERONNET <<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>></li> |
<li><span class="field">version:</span> SVN: $$Id: Controleur.php 158 2010-03-04 17:14:36Z jpm $$</li> |
<li><span class="field">copyright:</span> 2009 Tela-Botanica</li> |
<li><span class="field">link:</span> /doc/framework/</li> |
<li><span class="field">abstract:</span> </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="_Controleur.php.html">/Controleur.php</a> (line <span class="field"><a href="../__filesource/fsource_Framework__Controleur.php.html#a19">19</a></span>) |
</p> |
<pre></pre> |
</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> | |
<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">Controleur</span> |
<a href="#__construct" title="details" class="method-name">__construct</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">boolean</span> |
<a href="#chargerModele" title="details" class="method-name">chargerModele</a> |
(<span class="var-type">string</span> <span class="var-name">$nom_modele</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">boolean</span> |
<a href="#chargerVue" title="details" class="method-name">chargerVue</a> |
(<span class="var-type">String</span> <span class="var-name">$nom_squelette</span>, [<span class="var-type">Array</span> <span class="var-name">$donnees</span> = <span class="var-default">array()</span>]) |
</div> |
<div class="method-definition"> |
<span class="method-result">mixed</span> |
<a href="#getModele" title="details" class="method-name">getModele</a> |
(<span class="var-type">string</span> <span class="var-name">$nom_modele</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">boolean</span> |
<a href="#getVue" title="details" class="method-name">getVue</a> |
(<span class="var-type">String</span> <span class="var-name">$nom_squelette</span>, [<span class="var-type">Array</span> <span class="var-name">$donnees</span> = <span class="var-default">array()</span>]) |
</div> |
</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-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="oddrow"> |
<div class="method-header"> |
<span class="method-title">Constructor __construct</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Controleur.php.html#a28">28</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Constructeur par défaut</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">Controleur</span> |
<span class="method-name"> |
__construct |
</span> |
() |
</div> |
</div> |
<a name="methodchargerModele" id="chargerModele"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">chargerModele</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Controleur.php.html#a47">47</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Charge un modele donné et le rend disponible sous la forme $this->nom_modele</p> |
<ul class="tags"> |
<li><span class="field">return:</span> false si le chargement a échoué, sinon true.</li> |
<li><span class="field">access:</span> protected</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">boolean</span> |
<span class="method-name"> |
chargerModele |
</span> |
(<span class="var-type">string</span> <span class="var-name">$nom_modele</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$nom_modele</span><span class="var-description">: le nom du modèle à charger</span> </li> |
</ul> |
</div> |
<a name="methodchargerVue" id="chargerVue"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">chargerVue</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Controleur.php.html#a102">102</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Fonction prenant en paramètre le nom d'un squelette et un tableau associatif de données, en extrait les variables, charge le squelette et crée une variable de classe portant le nom du squelette contenant les deux combinés.</p> |
<ul class="tags"> |
<li><span class="field">return:</span> false si la vue n'existe pas, sinon true.</li> |
<li><span class="field">access:</span> protected</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">boolean</span> |
<span class="method-name"> |
chargerVue |
</span> |
(<span class="var-type">String</span> <span class="var-name">$nom_squelette</span>, [<span class="var-type">Array</span> <span class="var-name">$donnees</span> = <span class="var-default">array()</span>]) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">String</span> |
<span class="var-name">$nom_squelette</span><span class="var-description">: le nom du squelette</span> </li> |
<li> |
<span class="var-type">Array</span> |
<span class="var-name">$donnees</span><span class="var-description">: un tableau associatif contenant les variables a injecter dans la vue</span> </li> |
</ul> |
</div> |
<a name="methodgetModele" id="getModele"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">getModele</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Controleur.php.html#a65">65</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Retourne un modele donné</p> |
<ul class="tags"> |
<li><span class="field">return:</span> false si le chargement a échoué, sinon l'objet du modèle demandé.</li> |
<li><span class="field">access:</span> protected</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">mixed</span> |
<span class="method-name"> |
getModele |
</span> |
(<span class="var-type">string</span> <span class="var-name">$nom_modele</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$nom_modele</span><span class="var-description">: le nom du modèle à charger</span> </li> |
</ul> |
</div> |
<a name="methodgetVue" id="getVue"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">getVue</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Controleur.php.html#a86">86</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Fonction prenant en paramètre le nom d'un squelette et un tableau associatif de données, en extrait les variables, charge le squelette et retourne le résultat des deux combinés.</p> |
<ul class="tags"> |
<li><span class="field">return:</span> false si la vue n'existe pas, sinon la chaine résultat.</li> |
<li><span class="field">access:</span> protected</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">boolean</span> |
<span class="method-name"> |
getVue |
</span> |
(<span class="var-type">String</span> <span class="var-name">$nom_squelette</span>, [<span class="var-type">Array</span> <span class="var-name">$donnees</span> = <span class="var-default">array()</span>]) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">String</span> |
<span class="var-name">$nom_squelette</span><span class="var-description">: le nom du squelette</span> </li> |
<li> |
<span class="var-type">Array</span> |
<span class="var-name">$donnees</span><span class="var-description">: un tableau associatif contenant les variables a injecter dans la vue</span> </li> |
</ul> |
</div> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:20 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/Url.html |
---|
New file |
0,0 → 1,1404 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 Url</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 Url</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-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 Url, gérant le découpage des paramètres, leurs modification etc...</p> |
<p class="description"><p>Traduction et conversion d'une classe (NET_Url2) issue de Pear</p></p> |
<ul class="tags"> |
<li><span class="field">author:</span> Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></li> |
<li><span class="field">author:</span> Christian Schmidt <<a href="mailto:schmidt@php.net">schmidt@php.net</a>></li> |
<li><span class="field">author:</span> Aurélien PERONNET <<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>></li> |
<li><span class="field">version:</span> SVN: $Id: Url.php 150 2010-03-03 15:49:06Z jpm $</li> |
<li><span class="field">copyright:</span> 2009 Tela-Botanica</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="_Url.php.html">/Url.php</a> (line <span class="field"><a href="../__filesource/fsource_Framework__Url.php.html#a21">21</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-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="#OPTION_ENCODER_CLES" title="details" class="const-name">OPTION_ENCODER_CLES</a> = <span class="var-type"> 'encode_keys'</span> |
</div> |
<div class="const-title"> |
<img src="../media/images/Constant.png" alt=" " /> |
<a href="#OPTION_SEPARATEUR_ENTREE" title="details" class="const-name">OPTION_SEPARATEUR_ENTREE</a> = <span class="var-type"> 'input_separator'</span> |
</div> |
<div class="const-title"> |
<img src="../media/images/Constant.png" alt=" " /> |
<a href="#OPTION_SEPARATEUR_SORTIE" title="details" class="const-name">OPTION_SEPARATEUR_SORTIE</a> = <span class="var-type"> 'output_separator'</span> |
</div> |
<div class="const-title"> |
<img src="../media/images/Constant.png" alt=" " /> |
<a href="#OPTION_STRICTE" title="details" class="const-name">OPTION_STRICTE</a> = <span class="var-type"> 'strict'</span> |
</div> |
<div class="const-title"> |
<img src="../media/images/Constant.png" alt=" " /> |
<a href="#OPTION_UTILISER_CROCHETS" title="details" class="const-name">OPTION_UTILISER_CROCHETS</a> = <span class="var-type"> 'use_brackets'</span> |
</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>) |
<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"> |
static <span class="method-result">string</span> |
<a href="#getCanonique" title="details" class="method-name">getCanonique</a> |
() |
</div> |
<div class="method-definition"> |
static <span class="method-result"><a href="../Framework/Url.html">Url</a></span> |
<a href="#getDemande" title="details" class="method-name">getDemande</a> |
() |
</div> |
<div class="method-definition"> |
static <span class="method-result">string</span> |
<a href="#getURLDemande" title="details" class="method-name">getURLDemande</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">Url</span> |
<a href="#__construct" title="details" class="method-name">__construct</a> |
(<span class="var-type">string</span> <span class="var-name">$url</span>, [<span class="var-type">array</span> <span class="var-name">$options</span> = <span class="var-default">null</span>]) |
</div> |
<div class="method-definition"> |
<span class="method-result">bool</span> |
<a href="#etreAbsolue" title="details" class="method-name">etreAbsolue</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">string|bool</span> |
<a href="#getAutorite" title="details" class="method-name">getAutorite</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">string</span> |
<a href="#getChemin" title="details" class="method-name">getChemin</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">string|bool</span> |
<a href="#getFragment" title="details" class="method-name">getFragment</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">string|bool</span> |
<a href="#getHote" title="details" class="method-name">getHote</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">string|bool</span> |
<a href="#getInfoUtilisateur" title="details" class="method-name">getInfoUtilisateur</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">string|bool</span> |
<a href="#getMotDePasse" title="details" class="method-name">getMotDePasse</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">mixed</span> |
<a href="#getOption" title="details" class="method-name">getOption</a> |
(<span class="var-type">string</span> <span class="var-name">$nomOption</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">int|bool</span> |
<a href="#getPort" title="details" class="method-name">getPort</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">string|bool</span> |
<a href="#getRequete" title="details" class="method-name">getRequete</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">string|bool</span> |
<a href="#getSchema" title="details" class="method-name">getSchema</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">string</span> |
<a href="#getURL" title="details" class="method-name">getURL</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">string</span> |
<a href="#getURLNormalisee" title="details" class="method-name">getURLNormalisee</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">string|bool</span> |
<a href="#getUtilisateur" title="details" class="method-name">getUtilisateur</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">array</span> |
<a href="#getVariablesRequete" title="details" class="method-name">getVariablesRequete</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result"><a href="../Framework/Url.html">Url</a></span> |
<a href="#normaliser" title="details" class="method-name">normaliser</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result"><a href="../Framework/Url.html">Url</a></span> |
<a href="#resoudre" title="details" class="method-name">resoudre</a> |
(<span class="var-type"><a href="../Framework/Url.html">Url</a>|string</span> <span class="var-name">$reference</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">void</span> |
<a href="#setAutorite" title="details" class="method-name">setAutorite</a> |
(<span class="var-type">string|false</span> <span class="var-name">$autorite</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">void</span> |
<a href="#setChemin" title="details" class="method-name">setChemin</a> |
(<span class="var-type">string</span> <span class="var-name">$chemin</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">void</span> |
<a href="#setFragment" title="details" class="method-name">setFragment</a> |
(<span class="var-type">string|bool</span> <span class="var-name">$fragment</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">void</span> |
<a href="#setHote" title="details" class="method-name">setHote</a> |
(<span class="var-type">string|bool</span> <span class="var-name">$hote</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">void</span> |
<a href="#setInfoUtilisateur" title="details" class="method-name">setInfoUtilisateur</a> |
(<span class="var-type">string|bool</span> <span class="var-name">$infoUtilisateur</span>, [<span class="var-type">string|bool</span> <span class="var-name">$motDePasse</span> = <span class="var-default">false</span>]) |
</div> |
<div class="method-definition"> |
<span class="method-result">void</span> |
<a href="#setOption" title="details" class="method-name">setOption</a> |
(<span class="var-type">string</span> <span class="var-name">$nomOption</span>, <span class="var-type">mixed</span> <span class="var-name">$valeur</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">void</span> |
<a href="#setPort" title="details" class="method-name">setPort</a> |
(<span class="var-type">int|bool</span> <span class="var-name">$port</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">void</span> |
<a href="#setRequete" title="details" class="method-name">setRequete</a> |
(<span class="var-type">string|bool</span> <span class="var-name">$requete</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">void</span> |
<a href="#setSchema" title="details" class="method-name">setSchema</a> |
(<span class="var-type">string|bool</span> <span class="var-name">$schema</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">array</span> |
<a href="#setVariableRequete" title="details" class="method-name">setVariableRequete</a> |
(<span class="var-type">string</span> <span class="var-name">$nom</span>, <span class="var-type">mixed</span> <span class="var-name">$valeur</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">void</span> |
<a href="#setVariablesRequete" title="details" class="method-name">setVariablesRequete</a> |
(<span class="var-type"></span> <span class="var-name">$tableau</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">void</span> |
<a href="#unsetVariableRequete" title="details" class="method-name">unsetVariableRequete</a> |
(<span class="var-type">string</span> <span class="var-name">$nom</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">void</span> |
<a href="#__toString" title="details" class="method-name">__toString</a> |
() |
</div> |
</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-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="methodgetCanonique" id="getCanonique"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">static getCanonique</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a678">678</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie une instance de Url representant l'URL canonique du script PHP en cours d'éxécution</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">string</span> |
<span class="method-name"> |
getCanonique |
</span> |
() |
</div> |
</div> |
<a name="methodgetDemande" id="getDemande"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">static getDemande</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a712">712</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie une instance de Url representant l'URL utilisée pour récupérer la requête en cours</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result"><a href="../Framework/Url.html">Url</a></span> |
<span class="method-name"> |
getDemande |
</span> |
() |
</div> |
</div> |
<a name="methodgetURLDemande" id="getURLDemande"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">static getURLDemande</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a702">702</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie l'URL utilisée pour récupérer la requête en cours</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">string</span> |
<span class="method-name"> |
getURLDemande |
</span> |
() |
</div> |
</div> |
<a name="method__construct" id="__construct"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">Constructor __construct</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a102">102</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">Url</span> |
<span class="method-name"> |
__construct |
</span> |
(<span class="var-type">string</span> <span class="var-name">$url</span>, [<span class="var-type">array</span> <span class="var-name">$options</span> = <span class="var-default">null</span>]) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$url</span><span class="var-description">: une URL relative ou absolue</span> </li> |
<li> |
<span class="var-type">array</span> |
<span class="var-name">$options</span> </li> |
</ul> |
</div> |
<a name="methodetreAbsolue" id="etreAbsolue"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">etreAbsolue</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a546">546</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie vrai ou faux suivant que l'instance en cours représente une URL relative ou absolue.</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">bool</span> |
<span class="method-name"> |
etreAbsolue |
</span> |
() |
</div> |
</div> |
<a name="methodgetAutorite" id="getAutorite"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">getAutorite</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a248">248</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie la partie autorité, i.e. [ infoUtilisateur "@" ] hote [ ":" port ], ou false si celle-ci est absente.</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">string|bool</span> |
<span class="method-name"> |
getAutorite |
</span> |
() |
</div> |
</div> |
<a name="methodgetChemin" id="getChemin"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">getChemin</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a295">295</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie la partie chemin (chemin) (éventuellement vide).</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">string</span> |
<span class="method-name"> |
getChemin |
</span> |
() |
</div> |
</div> |
<a name="methodgetFragment" id="getFragment"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">getFragment</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a334">334</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie le nom du fragment, ou false si "#" n'est pas present dans l'URL.</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">string|bool</span> |
<span class="method-name"> |
getFragment |
</span> |
() |
</div> |
</div> |
<a name="methodgetHote" id="getHote"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">getHote</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a210">210</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie la partie hôte, ou false s'il n'y a pas de partie autorité, c.a.d.</p> |
<p class="description"><p>l'URL est relative.</p></p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">string|bool</span> |
<span class="method-name"> |
getHote |
</span> |
() |
</div> |
</div> |
<a name="methodgetInfoUtilisateur" id="getInfoUtilisateur"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">getInfoUtilisateur</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a184">184</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie la partie userinfio, ou false si celle-ci n'existe pas, i.e. si la partie autorité ne contient pas de "@"</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">string|bool</span> |
<span class="method-name"> |
getInfoUtilisateur |
</span> |
() |
</div> |
</div> |
<a name="methodgetMotDePasse" id="getMotDePasse"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">getMotDePasse</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a174">174</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">renvoie la partie mot de passe de la partie infoUtilisateur (partie après le premier ":"), , ou false si aucune partie infoUtilisateur n'est définie (i.e. l'URL ne contient pas de "@" en face du nom d'hôte) ou si la partie infoUtilisateur ne contient pas de ":".</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">string|bool</span> |
<span class="method-name"> |
getMotDePasse |
</span> |
() |
</div> |
</div> |
<a name="methodgetOption" id="getOption"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">getOption</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a751">751</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie la valeur de l'option specifiée.</p> |
<div class="method-signature"> |
<span class="method-result">mixed</span> |
<span class="method-name"> |
getOption |
</span> |
(<span class="var-type">string</span> <span class="var-name">$nomOption</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$nomOption</span><span class="var-description">: Nom de l'option demandée</span> </li> |
</ul> |
</div> |
<a name="methodgetPort" id="getPort"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">getPort</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a229">229</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie le numéro de port, ou false si aucun numéro de port n'est spécifié, i.e. le port par défaut doit utilisé.</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">int|bool</span> |
<span class="method-name"> |
getPort |
</span> |
() |
</div> |
</div> |
<a name="methodgetRequete" id="getRequete"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">getRequete</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a315">315</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">renvoie la chaine de requête (requete string) (sans le premier "?"), ou false si "?" n'est pas présent dans l'url.</p> |
<ul class="tags"> |
<li><span class="field">see:</span> self::getVariablesRequete()</li> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">string|bool</span> |
<span class="method-name"> |
getRequete |
</span> |
() |
</div> |
</div> |
<a name="methodgetSchema" id="getSchema"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">getSchema</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a143">143</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Retourne le schéma, c.a.d. "http" ou "urn", ou false si aucun schéma n'est spécifié, i.e. l'url est une url relative</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">string|bool</span> |
<span class="method-name"> |
getSchema |
</span> |
() |
</div> |
</div> |
<a name="methodgetURL" id="getURL"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">getURL</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a462">462</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie un représentation sous forme de chaine de l'URL</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">string</span> |
<span class="method-name"> |
getURL |
</span> |
() |
</div> |
</div> |
<a name="methodgetURLNormalisee" id="getURLNormalisee"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">getURLNormalisee</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a493">493</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie une représentation de cette URL sous forme de chaine normalisée. Utile pour la comparaison d'URLs</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">string</span> |
<span class="method-name"> |
getURLNormalisee |
</span> |
() |
</div> |
</div> |
<a name="methodgetUtilisateur" id="getUtilisateur"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">getUtilisateur</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a163">163</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">renvoie la partie user de la partie infoUtilisateur (partie précédant le premier ":"), ou false si aucune partie infoUtilisateur n'est définie.</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">string|bool</span> |
<span class="method-name"> |
getUtilisateur |
</span> |
() |
</div> |
</div> |
<a name="methodgetVariablesRequete" id="getVariablesRequete"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">getVariablesRequete</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a353">353</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie la requete string sous forme d'un tableau de variables telles qu'elles apparaitraient dans le $_GET d'un script PHP</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">array</span> |
<span class="method-name"> |
getVariablesRequete |
</span> |
() |
</div> |
</div> |
<a name="methodnormaliser" id="normaliser"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">normaliser</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a504">504</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie une instance normalisée de Url</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result"><a href="../Framework/Url.html">Url</a></span> |
<span class="method-name"> |
normaliser |
</span> |
() |
</div> |
</div> |
<a name="methodresoudre" id="resoudre"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">resoudre</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a558">558</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie une instance de Url représentant une URL absolue relative à cette URL.</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result"><a href="../Framework/Url.html">Url</a></span> |
<span class="method-name"> |
resoudre |
</span> |
(<span class="var-type"><a href="../Framework/Url.html">Url</a>|string</span> <span class="var-name">$reference</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type"><a href="../Framework/Url.html">Url</a>|string</span> |
<span class="var-name">$reference</span><span class="var-description">: URL relative</span> </li> |
</ul> |
</div> |
<a name="methodsetAutorite" id="setAutorite"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">setAutorite</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a273">273</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<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"> |
setAutorite |
</span> |
(<span class="var-type">string|false</span> <span class="var-name">$autorite</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string|false</span> |
<span class="var-name">$autorite</span> </li> |
</ul> |
</div> |
<a name="methodsetChemin" id="setChemin"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">setChemin</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a304">304</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<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"> |
setChemin |
</span> |
(<span class="var-type">string</span> <span class="var-name">$chemin</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$chemin</span> </li> |
</ul> |
</div> |
<a name="methodsetFragment" id="setFragment"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">setFragment</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a343">343</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<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"> |
setFragment |
</span> |
(<span class="var-type">string|bool</span> <span class="var-name">$fragment</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string|bool</span> |
<span class="var-name">$fragment</span> </li> |
</ul> |
</div> |
<a name="methodsetHote" id="setHote"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">setHote</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a219">219</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<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"> |
setHote |
</span> |
(<span class="var-type">string|bool</span> <span class="var-name">$hote</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string|bool</span> |
<span class="var-name">$hote</span> </li> |
</ul> |
</div> |
<a name="methodsetInfoUtilisateur" id="setInfoUtilisateur"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">setInfoUtilisateur</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a197">197</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Setteur pour la partie infoUtilisateur. Si deux argument sont passé, ils sont combinés dans la partie infoUtilisateur de cette manière username ":" password.</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"> |
setInfoUtilisateur |
</span> |
(<span class="var-type">string|bool</span> <span class="var-name">$infoUtilisateur</span>, [<span class="var-type">string|bool</span> <span class="var-name">$motDePasse</span> = <span class="var-default">false</span>]) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string|bool</span> |
<span class="var-name">$infoUtilisateur</span><span class="var-description">: infoUtilisateur ou username</span> </li> |
<li> |
<span class="var-type">string|bool</span> |
<span class="var-name">$motDePasse</span> </li> |
</ul> |
</div> |
<a name="methodsetOption" id="setOption"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">setOption</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a737">737</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Met à jour la valeur de l'option spécifiée.</p> |
<ul class="tags"> |
<li><span class="field">see:</span> self::OPTION_ENCODER_CLES</li> |
<li><span class="field">see:</span> self::OPTION_UTILISER_CROCHETS</li> |
<li><span class="field">see:</span> self::OPTION_STRICTE</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">void</span> |
<span class="method-name"> |
setOption |
</span> |
(<span class="var-type">string</span> <span class="var-name">$nomOption</span>, <span class="var-type">mixed</span> <span class="var-name">$valeur</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$nomOption</span><span class="var-description">: une des constantes commençant par self::OPTION_</span> </li> |
<li> |
<span class="var-type">mixed</span> |
<span class="var-name">$valeur</span><span class="var-description">: valeur de l'option</span> </li> |
</ul> |
</div> |
<a name="methodsetPort" id="setPort"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">setPort</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a238">238</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<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"> |
setPort |
</span> |
(<span class="var-type">int|bool</span> <span class="var-name">$port</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">int|bool</span> |
<span class="var-name">$port</span> </li> |
</ul> |
</div> |
<a name="methodsetRequete" id="setRequete"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">setRequete</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a325">325</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<ul class="tags"> |
<li><span class="field">see:</span> self::setVariablesRequete()</li> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">void</span> |
<span class="method-name"> |
setRequete |
</span> |
(<span class="var-type">string|bool</span> <span class="var-name">$requete</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string|bool</span> |
<span class="var-name">$requete</span> </li> |
</ul> |
</div> |
<a name="methodsetSchema" id="setSchema"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">setSchema</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a153">153</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<ul class="tags"> |
<li><span class="field">see:</span> <a href="../Framework/Url.html#methodgetSchema">Url::getSchema()</a></li> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">void</span> |
<span class="method-name"> |
setSchema |
</span> |
(<span class="var-type">string|bool</span> <span class="var-name">$schema</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string|bool</span> |
<span class="var-name">$schema</span> </li> |
</ul> |
</div> |
<a name="methodsetVariableRequete" id="setVariableRequete"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">setVariableRequete</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a440">440</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">array</span> |
<span class="method-name"> |
setVariableRequete |
</span> |
(<span class="var-type">string</span> <span class="var-name">$nom</span>, <span class="var-type">mixed</span> <span class="var-name">$valeur</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$nom</span> </li> |
<li> |
<span class="var-type">mixed</span> |
<span class="var-name">$valeur</span> </li> |
</ul> |
</div> |
<a name="methodsetVariablesRequete" id="setVariablesRequete"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">setVariablesRequete</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a408">408</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<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"> |
setVariablesRequete |
</span> |
(<span class="var-type"></span> <span class="var-name">$tableau</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">array</span> |
<span class="var-name">$tableau</span><span class="var-description">: (nom => valeur) tableau</span> </li> |
</ul> |
</div> |
<a name="methodunsetVariableRequete" id="unsetVariableRequete"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">unsetVariableRequete</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a451">451</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<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"> |
unsetVariableRequete |
</span> |
(<span class="var-type">string</span> <span class="var-name">$nom</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$nom</span> </li> |
</ul> |
</div> |
<a name="method__toString" id="__toString"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">__toString</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a756">756</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<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"> |
__toString |
</span> |
() |
</div> |
</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-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
</div> |
<div class="info-box-body"> |
<a name="constOPTION_ENCODER_CLES" id="OPTION_ENCODER_CLES"><!-- --></A> |
<div class="evenrow"> |
<div class="const-header"> |
<img src="../media/images/Variable.png" /> |
<span class="const-title"> |
<span class="const-name">OPTION_ENCODER_CLES</span> |
= <span class="const-default"> 'encode_keys'</span> |
(line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a37">37</a></span>) |
</span> |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">URL-encoder les clés des variables dans les requêtes. Par défaut à true.</p> |
</div> |
<a name="constOPTION_SEPARATEUR_ENTREE" id="OPTION_SEPARATEUR_ENTREE"><!-- --></A> |
<div class="oddrow"> |
<div class="const-header"> |
<img src="../media/images/Variable.png" /> |
<span class="const-title"> |
<span class="const-name">OPTION_SEPARATEUR_ENTREE</span> |
= <span class="const-default"> 'input_separator'</span> |
(line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a44">44</a></span>) |
</span> |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Séparateurs de variables lors du parsing de la requête. Chaque caractère est considéré comme un séparateur. Par défaut, spécifié par le paramêtre arg_separator.input dans php.ini (par défaut "&").</p> |
</div> |
<a name="constOPTION_SEPARATEUR_SORTIE" id="OPTION_SEPARATEUR_SORTIE"><!-- --></A> |
<div class="evenrow"> |
<div class="const-header"> |
<img src="../media/images/Variable.png" /> |
<span class="const-title"> |
<span class="const-name">OPTION_SEPARATEUR_SORTIE</span> |
= <span class="const-default"> 'output_separator'</span> |
(line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a50">50</a></span>) |
</span> |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Séparateur de variables lors de la génération de la requête. Par défaut, spécifié par le paramètre arg_separator.output dans php.ini (par défaut "&").</p> |
</div> |
<a name="constOPTION_STRICTE" id="OPTION_STRICTE"><!-- --></A> |
<div class="oddrow"> |
<div class="const-header"> |
<img src="../media/images/Variable.png" /> |
<span class="const-title"> |
<span class="const-name">OPTION_STRICTE</span> |
= <span class="const-default"> 'strict'</span> |
(line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a27">27</a></span>) |
</span> |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Parsing strict dans resoudre() (voir RFC 3986, section 5.2.2). Par défaut à true.</p> |
</div> |
<a name="constOPTION_UTILISER_CROCHETS" id="OPTION_UTILISER_CROCHETS"><!-- --></A> |
<div class="evenrow"> |
<div class="const-header"> |
<img src="../media/images/Variable.png" /> |
<span class="const-title"> |
<span class="const-name">OPTION_UTILISER_CROCHETS</span> |
= <span class="const-default"> 'use_brackets'</span> |
(line <span class="line-number"><a href="../__filesource/fsource_Framework__Url.php.html#a32">32</a></span>) |
</span> |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Répresenter les tableaux dans les requêtes en utilisant la notation php []. Par défaut à true.</p> |
</div> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:28 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/Application.html |
---|
New file |
0,0 → 1,293 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 Application</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 Application</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-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Classe fournissant des informations au Framework sur l'application.</p> |
<p class="description"><p>PHP version 5</p></p> |
<ul class="tags"> |
<li><span class="field">author:</span> Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></li> |
<li><span class="field">version:</span> $$Id: Application.php 153 2010-03-04 10:48:32Z jpm $$</li> |
<li><span class="field">copyright:</span> 1999-2009 Tela Botanica (accueil@tela-botanica.org)</li> |
<li><span class="field">license:</span> GPL</li> |
<li><span class="field">license:</span> CECILL</li> |
</ul> |
<p class="notes"> |
Located in <a class="field" href="_Application.php.html">/Application.php</a> (line <span class="field"><a href="../__filesource/fsource_Framework__Application.php.html#a18">18</a></span>) |
</p> |
<pre></pre> |
</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> | |
<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"> |
static <span class="method-result">string</span> |
<a href="#getChemin" title="details" class="method-name">getChemin</a> |
() |
</div> |
<div class="method-definition"> |
static <span class="method-result">void</span> |
<a href="#getInfo" title="details" class="method-name">getInfo</a> |
([<span class="var-type">string</span> <span class="var-name">$cle</span> = <span class="var-default">null</span>]) |
</div> |
<div class="method-definition"> |
static <span class="method-result">void</span> |
<a href="#setChemin" title="details" class="method-name">setChemin</a> |
(<span class="var-type">string</span> <span class="var-name">$chemin_fichier_principal</span>) |
</div> |
<div class="method-definition"> |
static <span class="method-result">void</span> |
<a href="#setInfo" title="details" class="method-name">setInfo</a> |
(<span class="var-type">array</span> <span class="var-name">$info</span>) |
</div> |
</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-method-summary">Methods</a> (<span class="disabled">details</span>) |
</div> |
<div class="info-box-body"> |
<A NAME='method_detail'></A> |
<a name="methodgetChemin" id="getChemin"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">static getChemin</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Application.php.html#a49">49</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">accesseur pour le chemin</p> |
<ul class="tags"> |
<li><span class="field">return:</span> le chemin</li> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">string</span> |
<span class="method-name"> |
getChemin |
</span> |
() |
</div> |
</div> |
<a name="methodgetInfo" id="getInfo"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">static getInfo</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Application.php.html#a73">73</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">accesseur pour le tableau d'infos</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">void</span> |
<span class="method-name"> |
getInfo |
</span> |
([<span class="var-type">string</span> <span class="var-name">$cle</span> = <span class="var-default">null</span>]) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$cle</span><span class="var-description">: la clé à laquelle on veut accéder</span> </li> |
</ul> |
</div> |
<a name="methodsetChemin" id="setChemin"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">static setChemin</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Application.php.html#a33">33</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Modificateur pour le chemin de base</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">void</span> |
<span class="method-name"> |
setChemin |
</span> |
(<span class="var-type">string</span> <span class="var-name">$chemin_fichier_principal</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$chemin_fichier_principal</span><span class="var-description">: chemin de base</span> </li> |
</ul> |
</div> |
<a name="methodsetInfo" id="setInfo"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">static setInfo</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Application.php.html#a61">61</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Le tableau des informations sur l'application possède les clés suivantes :</p> |
<p class="description"><p><ul><li>nom : nom de l'application</li><li>abr : abréviation de l'application</li><li>encodage : encodage de l'application (ISO-8859-15, UTF-8...)</li></ul></p></p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">void</span> |
<span class="method-name"> |
setInfo |
</span> |
(<span class="var-type">array</span> <span class="var-name">$info</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">array</span> |
<span class="var-name">$info</span><span class="var-description">: tableau fournissant des informations sur l'application</span> </li> |
</ul> |
</div> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:08 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/Modele.html |
---|
New file |
0,0 → 1,395 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 Modele</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 Modele</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-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Classe modèle, donc d'accés au données, elle ne devrait pas être appelée de l'extérieur.</p> |
<p class="description"><p>Elle fait office d'abstraction légère de base de données en utilisant diveres possibilités d'abstraction de base de données (PDO, mysql, mysqli, sqlite) Elle est abstraite donc doit obligatoirement être étendue.</p><p>PHP Version 5</p></p> |
<ul class="tags"> |
<li><span class="field">author:</span> aurelien <<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>></li> |
<li><span class="field">version:</span> SVN: $$Id: Modele.php 145 2010-03-02 17:23:09Z jpm $$</li> |
<li><span class="field">copyright:</span> 2009 Tela-Botanica</li> |
<li><span class="field">link:</span> /doc/framework/</li> |
<li><span class="field">abstract:</span> </li> |
<li><span class="field">license:</span> <a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL</a></li> |
<li><span class="field">license:</span> <a href="http://www.gnu.org/licenses/gpl.html">Licence GNU-GPL</a></li> |
</ul> |
<p class="notes"> |
Located in <a class="field" href="_Modele.php.html">/Modele.php</a> (line <span class="field"><a href="../__filesource/fsource_Framework__Modele.php.html#a21">21</a></span>) |
</p> |
<pre></pre> |
</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> | |
<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">Modele</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="#initialiserProtocole" title="details" class="method-name">initialiserProtocole</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">void</span> |
<a href="#proteger" title="details" class="method-name">proteger</a> |
(<span class="var-type"></span> <span class="var-name">$chaine</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">PDOStatement</span> |
<a href="#requete" title="details" class="method-name">requete</a> |
(<span class="var-type">string</span> <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> <span class="var-name">$requete</span>, [<span class="var-type"></span> <span class="var-name">$mode</span> = <span class="var-default">'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> <span class="var-name">$requete</span>, [<span class="var-type"></span> <span class="var-name">$mode</span> = <span class="var-default">'ASSOC'</span>]) |
</div> |
</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-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="oddrow"> |
<div class="method-header"> |
<span class="method-title">Constructor __construct</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Modele.php.html#a77">77</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">Modele</span> |
<span class="method-name"> |
__construct |
</span> |
() |
</div> |
</div> |
<a name="method__destruct" id="__destruct"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">Destructor __destruct</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Modele.php.html#a323">323</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Destructeur de classe, se contente de fermer explicitement la connexion</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="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__Modele.php.html#a295">295</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">initialise les constantes de classe à leur bonne valeur</p> |
<p class="description"><p>et lance une exception si le protocole n'est pas bien défini</p></p> |
<ul class="tags"> |
<li><span class="field">throws:</span> Exception</li> |
<li><span class="field">access:</span> public</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__Modele.php.html#a263">263</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</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"> |
proteger |
</span> |
(<span class="var-type"></span> <span class="var-name">$chaine</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type"></span> |
<span class="var-name">$chaine</span> </li> |
</ul> |
</div> |
<a name="methodrequete" id="requete"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">requete</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Modele.php.html#a146">146</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Fonction qui appelle la bonne fonction pour executer une requête suivant le type de bdd.</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> protected</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">PDOStatement</span> |
<span class="method-name"> |
requete |
</span> |
(<span class="var-type">string</span> <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 requete à 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__Modele.php.html#a203">203</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<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"> |
requeteTous |
</span> |
(<span class="var-type"></span> <span class="var-name">$requete</span>, [<span class="var-type"></span> <span class="var-name">$mode</span> = <span class="var-default">'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__Modele.php.html#a172">172</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<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"> |
requeteUn |
</span> |
(<span class="var-type"></span> <span class="var-name">$requete</span>, [<span class="var-type"></span> <span class="var-name">$mode</span> = <span class="var-default">'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> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:25 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/Config.html |
---|
New file |
0,0 → 1,264 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 Config</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 Config</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-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Config permet de charger automatiquement les fichiers ini du Framework et de l'application.</p> |
<p class="description"><p>Elle offre l'accès en lecture seule aux paramètres de config. C'est une Singleton.</p><p>PHP Version 5</p></p> |
<ul class="tags"> |
<li><span class="field">author:</span> Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></li> |
<li><span class="field">version:</span> SVN: <svn_id></li> |
<li><span class="field">copyright:</span> 2009 Tela-Botanica</li> |
<li><span class="field">link:</span> /doc/framework/</li> |
<li><span class="field">license:</span> GPL-v3</li> |
</ul> |
<p class="notes"> |
Located in <a class="field" href="_Config.php.html">/Config.php</a> (line <span class="field"><a href="../__filesource/fsource_Framework__Config.php.html#a19">19</a></span>) |
</p> |
<pre></pre> |
</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> | |
<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"> |
static <span class="method-result">array</span> |
<a href="#charger" title="details" class="method-name">charger</a> |
(<span class="var-type">string</span> <span class="var-name">$fichier_ini</span>) |
</div> |
<div class="method-definition"> |
static <span class="method-result">boolean</span> |
<a href="#existe" title="details" class="method-name">existe</a> |
(<span class="var-type">string</span> <span class="var-name">$param</span>) |
</div> |
<div class="method-definition"> |
static <span class="method-result">string</span> |
<a href="#get" title="details" class="method-name">get</a> |
([<span class="var-type">string</span> <span class="var-name">$param</span> = <span class="var-default">null</span>]) |
</div> |
</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-method-summary">Methods</a> (<span class="disabled">details</span>) |
</div> |
<div class="info-box-body"> |
<A NAME='method_detail'></A> |
<a name="methodcharger" id="charger"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">static charger</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Config.php.html#a244">244</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Charge un fichier ini dans le tableau des paramètres de l'appli</p> |
<ul class="tags"> |
<li><span class="field">return:</span> le fichier ini parsé</li> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">array</span> |
<span class="method-name"> |
charger |
</span> |
(<span class="var-type">string</span> <span class="var-name">$fichier_ini</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$fichier_ini</span><span class="var-description">: le nom du fichier à charger</span> </li> |
</ul> |
</div> |
<a name="methodexiste" id="existe"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">static existe</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Config.php.html#a264">264</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Vérifie si la valeur d'un paramètre existe</p> |
<ul class="tags"> |
<li><span class="field">return:</span> vrai si le paramètre existe, false sinon</li> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">boolean</span> |
<span class="method-name"> |
existe |
</span> |
(<span class="var-type">string</span> <span class="var-name">$param</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$param</span><span class="var-description">: le nom du paramètre</span> </li> |
</ul> |
</div> |
<a name="methodget" id="get"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">static get</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Config.php.html#a254">254</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Acesseur pour la valeur d'un paramètre</p> |
<ul class="tags"> |
<li><span class="field">return:</span> la valeur du paramètre</li> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">string</span> |
<span class="method-name"> |
get |
</span> |
([<span class="var-type">string</span> <span class="var-name">$param</span> = <span class="var-default">null</span>]) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$param</span><span class="var-description">: le nom du paramètre</span> </li> |
</ul> |
</div> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:16 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/_autoload.inc.php.html |
---|
New file |
0,0 → 1,225 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 page autoload.inc.php</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="file-name">/autoload.inc.php</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-constants">Constants</a> |
| <a href="#sec-functions">Functions</a> |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Fichier contenant la fonction de chargement automatique de classes, il doit toujours rester à la racine du framework car il initialise le chemin de l'application en se basant sur son propre emplacement.</p> |
<p class="description"><p>PHP Version 5.1.2</p></p> |
<ul class="tags"> |
<li><span class="field">author:</span> Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></li> |
<li><span class="field">author:</span> Aurelien PERONNET <<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>></li> |
<li><span class="field">version:</span> $$Id: autoload.inc.php 153 2010-03-04 10:48:32Z jpm $$</li> |
<li><span class="field">copyright:</span> 1999-2009 Tela Botanica (accueil@tela-botanica.org)</li> |
<li><span class="field">filesource:</span> <a href="../__filesource/fsource_Framework__autoload.inc.php.html">Source Code for this file</a></li> |
<li><span class="field">license:</span> GPL</li> |
<li><span class="field">license:</span> CECILL</li> |
</ul> |
</div> |
</div> |
<a name="sec-constants"></a> |
<div class="info-box"> |
<div class="info-box-title">Constants</div> |
<div class="nav-bar"> |
<a href="#sec-description">Description</a> | |
<span class="disabled">Constants</span> |
| <a href="#sec-functions">Functions</a> |
</div> |
<div class="info-box-body"> |
<a name="defineDS"><!-- --></a> |
<div class="evenrow"> |
<div> |
<span class="const-title"> |
<span class="const-name">DS</span> = DIRECTORY_SEPARATOR |
(line <span class="line-number"><a href="../__filesource/fsource_Framework__autoload.inc.php.html#a23">23</a></span>) |
</span> |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
</div> |
<a name="definePS"><!-- --></a> |
<div class="oddrow"> |
<div> |
<span class="const-title"> |
<span class="const-name">PS</span> = PATH_SEPARATOR |
(line <span class="line-number"><a href="../__filesource/fsource_Framework__autoload.inc.php.html#a27">27</a></span>) |
</span> |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
</div> |
</div> |
</div> |
<a name="sec-functions"></a> |
<div class="info-box"> |
<div class="info-box-title">Functions</div> |
<div class="nav-bar"> |
<a href="#sec-description">Description</a> | |
<a href="#sec-constants">Constants</a> |
| <span class="disabled">Functions</span> |
</div> |
<div class="info-box-body"> |
<a name="functionautoloadAppliDefaut" id="functionautoloadAppliDefaut"><!-- --></a> |
<div class="evenrow"> |
<div> |
<span class="method-title">autoloadAppliDefaut</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__autoload.inc.php.html#a48">48</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<div class="method-signature"> |
<span class="method-result">void</span> |
<span class="method-name"> |
autoloadAppliDefaut |
</span> |
(<span class="var-type"></span> <span class="var-name">$nom_classe</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type"></span> |
<span class="var-name">$nom_classe</span> </li> |
</ul> |
</div> |
<a name="functionautoloadFw" id="functionautoloadFw"><!-- --></a> |
<div class="oddrow"> |
<div> |
<span class="method-title">autoloadFw</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__autoload.inc.php.html#a31">31</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<div class="method-signature"> |
<span class="method-result">void</span> |
<span class="method-name"> |
autoloadFw |
</span> |
(<span class="var-type"></span> <span class="var-name">$nom_classe_fw</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type"></span> |
<span class="var-name">$nom_classe_fw</span> </li> |
</ul> |
</div> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:08 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/_Log.php.html |
---|
New file |
0,0 → 1,140 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 page Log.php</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="file-name">/Log.php</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-classes">Classes</a> |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<ul class="tags"> |
<li><span class="field">filesource:</span> <a href="../__filesource/fsource_Framework__Log.php.html">Source Code for this file</a></li> |
</ul> |
</div> |
</div> |
<a name="sec-classes"></a> |
<div class="info-box"> |
<div class="info-box-title">Classes</div> |
<div class="nav-bar"> |
<a href="#sec-description">Description</a> | |
<span class="disabled">Classes</span> |
</div> |
<div class="info-box-body"> |
<table cellpadding="2" cellspacing="0" class="class-table"> |
<tr> |
<th class="class-table-header">Class</th> |
<th class="class-table-header">Description</th> |
</tr> |
<tr> |
<td style="padding-right: 2em; vertical-align: top"> |
<a href="../Framework/Log.html">Log</a> |
</td> |
<td> |
Classe permettant de logger des messages dans les fichier situés dans le dossier de log |
</td> |
</tr> |
</table> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:23 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/GestionnaireException.html |
---|
New file |
0,0 → 1,430 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 GestionnaireException</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 GestionnaireException</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-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Classe de gestion des exceptions.</p> |
<p class="description"><p>C'est un Singleton.</p><p>PHP Version 5</p></p> |
<ul class="tags"> |
<li><span class="field">author:</span> aurelien <<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>></li> |
<li><span class="field">version:</span> SVN: $$Id: GestionnaireException.php 158 2010-03-04 17:14:36Z jpm $$</li> |
<li><span class="field">copyright:</span> 2009 Tela-Botanica</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="_GestionnaireException.php.html">/GestionnaireException.php</a> (line <span class="field"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a19">19</a></span>) |
</p> |
<pre></pre> |
</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> | |
<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"> |
static <span class="method-result">void</span> |
<a href="#gererErreur" title="details" class="method-name">gererErreur</a> |
(<span class="var-type">int</span> <span class="var-name">$niveau</span>, <span class="var-type">string</span> <span class="var-name">$message</span>, <span class="var-type">string</span> <span class="var-name">$fichier</span>, <span class="var-type">int</span> <span class="var-name">$ligne</span>, <span class="var-type">string</span> <span class="var-name">$contexte</span>) |
</div> |
<div class="method-definition"> |
static <span class="method-result">void</span> |
<a href="#gererException" title="details" class="method-name">gererException</a> |
(<span class="var-type"></span> <span class="var-name">$e</span>) |
</div> |
<div class="method-definition"> |
static <span class="method-result">void</span> |
<a href="#getContexte" title="details" class="method-name">getContexte</a> |
() |
</div> |
<div class="method-definition"> |
static <span class="method-result">void</span> |
<a href="#getExceptions" title="details" class="method-name">getExceptions</a> |
() |
</div> |
<div class="method-definition"> |
static <span class="method-result">GestionnaireErreur</span> |
<a href="#getInstance" title="details" class="method-name">getInstance</a> |
() |
</div> |
<div class="method-definition"> |
<span class="method-result">GestionnaireException</span> |
<a href="#__construct" title="details" class="method-name">__construct</a> |
(<span class="var-type">bool</span> <span class="var-name">0</span>) |
</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="#setContexte" title="details" class="method-name">setContexte</a> |
(<span class="var-type">bool</span> <span class="var-name">$contexte</span>) |
</div> |
</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-method-summary">Methods</a> (<span class="disabled">details</span>) |
</div> |
<div class="info-box-body"> |
<A NAME='method_detail'></A> |
<a name="methodgererErreur" id="gererErreur"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">static gererErreur</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a110">110</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Gère les erreurs en les convertissant en exceptions (remplace la fonction gestion d'erreurs native de php)</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">void</span> |
<span class="method-name"> |
gererErreur |
</span> |
(<span class="var-type">int</span> <span class="var-name">$niveau</span>, <span class="var-type">string</span> <span class="var-name">$message</span>, <span class="var-type">string</span> <span class="var-name">$fichier</span>, <span class="var-type">int</span> <span class="var-name">$ligne</span>, <span class="var-type">string</span> <span class="var-name">$contexte</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">int</span> |
<span class="var-name">$niveau</span><span class="var-description">: le niveau de l'erreur</span> </li> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$message</span><span class="var-description">: le message associé à l'erreur</span> </li> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$fichier</span><span class="var-description">: le nom du fichier où l'erreur s'est produite</span> </li> |
<li> |
<span class="var-type">int</span> |
<span class="var-name">$ligne</span><span class="var-description">: la ligne où l'erreur s'est produite</span> </li> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$contexte</span><span class="var-description">: le contexte associé à l'erreur</span> </li> |
</ul> |
</div> |
<a name="methodgererException" id="gererException"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">static gererException</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a92">92</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Fonction de gestion des exceptions, remplace le handler par défaut</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">void</span> |
<span class="method-name"> |
gererException |
</span> |
(<span class="var-type"></span> <span class="var-name">$e</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">Exception</span> |
<span class="var-name">$e</span><span class="var-description">: l'exception à traiter</span> </li> |
</ul> |
</div> |
<a name="methodgetContexte" id="getContexte"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">static getContexte</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a64">64</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie le booleen définissant si l'on affiche le contexte ou non</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">void</span> |
<span class="method-name"> |
getContexte |
</span> |
() |
</div> |
</div> |
<a name="methodgetExceptions" id="getExceptions"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">static getExceptions</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a131">131</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Renvoie les exceptions au format (X)HTML</p> |
<p class="description"><p>ou bien au format texte suivant le mode d'utilisation de PHP</p></p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">void</span> |
<span class="method-name"> |
getExceptions |
</span> |
() |
</div> |
</div> |
<a name="methodgetInstance" id="getInstance"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">static getInstance</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a79">79</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Fonction d'accès au singleton</p> |
<ul class="tags"> |
<li><span class="field">return:</span> le gestionnaire d'exceptions courant</li> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">GestionnaireErreur</span> |
<span class="method-name"> |
getInstance |
</span> |
() |
</div> |
</div> |
<a name="method__construct" id="__construct"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">Constructor __construct</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a51">51</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Constructeur avec paramètres optionnel</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
<span class="method-result">GestionnaireException</span> |
<span class="method-name"> |
__construct |
</span> |
(<span class="var-type">bool</span> <span class="var-name">0</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">bool</span> |
<span class="var-name">0</span><span class="var-description">: indique si l'on veut afficher ou non le contexte des exceptions (i.e. la trace)</span> </li> |
</ul> |
</div> |
<a name="method__destruct" id="__destruct"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">Destructor __destruct</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a178">178</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<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="methodsetContexte" id="setContexte"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">setContexte</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a72">72</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Definit si l'on veut afficher le contexte ou non</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"> |
setContexte |
</span> |
(<span class="var-type">bool</span> <span class="var-name">$contexte</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">bool</span> |
<span class="var-name">$contexte</span><span class="var-description">: true si on veut afficher le contexte, false sinon, par défaut vaut false</span> </li> |
</ul> |
</div> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:23 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/_SquelettePhp.php.html |
---|
New file |
0,0 → 1,140 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 page SquelettePhp.php</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="file-name">/SquelettePhp.php</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-classes">Classes</a> |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<ul class="tags"> |
<li><span class="field">filesource:</span> <a href="../__filesource/fsource_Framework__SquelettePhp.php.html">Source Code for this file</a></li> |
</ul> |
</div> |
</div> |
<a name="sec-classes"></a> |
<div class="info-box"> |
<div class="info-box-title">Classes</div> |
<div class="nav-bar"> |
<a href="#sec-description">Description</a> | |
<span class="disabled">Classes</span> |
</div> |
<div class="info-box-body"> |
<table cellpadding="2" cellspacing="0" class="class-table"> |
<tr> |
<th class="class-table-header">Class</th> |
<th class="class-table-header">Description</th> |
</tr> |
<tr> |
<td style="padding-right: 2em; vertical-align: top"> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a> |
</td> |
<td> |
Classe SquelettePhp, traitant les squelette Php utilisant la syntaxe courte php ou pas. |
</td> |
</tr> |
</table> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:25 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/_Registre.php.html |
---|
New file |
0,0 → 1,140 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 page Registre.php</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="file-name">/Registre.php</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-classes">Classes</a> |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<ul class="tags"> |
<li><span class="field">filesource:</span> <a href="../__filesource/fsource_Framework__Registre.php.html">Source Code for this file</a></li> |
</ul> |
</div> |
</div> |
<a name="sec-classes"></a> |
<div class="info-box"> |
<div class="info-box-title">Classes</div> |
<div class="nav-bar"> |
<a href="#sec-description">Description</a> | |
<span class="disabled">Classes</span> |
</div> |
<div class="info-box-body"> |
<table cellpadding="2" cellspacing="0" class="class-table"> |
<tr> |
<th class="class-table-header">Class</th> |
<th class="class-table-header">Description</th> |
</tr> |
<tr> |
<td style="padding-right: 2em; vertical-align: top"> |
<a href="../Framework/Registre.html">Registre</a> |
</td> |
<td> |
Classe registre, qui permet un accès à différentes variables à travers les autres classes. |
</td> |
</tr> |
</table> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:25 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/_Chronometre.php.html |
---|
New file |
0,0 → 1,140 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 page Chronometre.php</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="file-name">/Chronometre.php</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-classes">Classes</a> |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<ul class="tags"> |
<li><span class="field">filesource:</span> <a href="../__filesource/fsource_Framework__Chronometre.php.html">Source Code for this file</a></li> |
</ul> |
</div> |
</div> |
<a name="sec-classes"></a> |
<div class="info-box"> |
<div class="info-box-title">Classes</div> |
<div class="nav-bar"> |
<a href="#sec-description">Description</a> | |
<span class="disabled">Classes</span> |
</div> |
<div class="info-box-body"> |
<table cellpadding="2" cellspacing="0" class="class-table"> |
<tr> |
<th class="class-table-header">Class</th> |
<th class="class-table-header">Description</th> |
</tr> |
<tr> |
<td style="padding-right: 2em; vertical-align: top"> |
<a href="../Framework/Chronometre.html">Chronometre</a> |
</td> |
<td> |
Classe Chronometre() - Permet de stocker et d'afficher les temps d'éxécution de script. |
</td> |
</tr> |
</table> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:09 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/_Debug.php.html |
---|
New file |
0,0 → 1,140 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 page Debug.php</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="file-name">/Debug.php</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-classes">Classes</a> |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<ul class="tags"> |
<li><span class="field">filesource:</span> <a href="../__filesource/fsource_Framework__Debug.php.html">Source Code for this file</a></li> |
</ul> |
</div> |
</div> |
<a name="sec-classes"></a> |
<div class="info-box"> |
<div class="info-box-title">Classes</div> |
<div class="nav-bar"> |
<a href="#sec-description">Description</a> | |
<span class="disabled">Classes</span> |
</div> |
<div class="info-box-body"> |
<table cellpadding="2" cellspacing="0" class="class-table"> |
<tr> |
<th class="class-table-header">Class</th> |
<th class="class-table-header">Description</th> |
</tr> |
<tr> |
<td style="padding-right: 2em; vertical-align: top"> |
<a href="../Framework/Debug.html">Debug</a> |
</td> |
<td> |
Classe fournissant des fonctions de débogage équivalante à var_dump et print_r. |
</td> |
</tr> |
</table> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:20 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/Log.html |
---|
New file |
0,0 → 1,334 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 Log</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 Log</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-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Classe permettant de logger des messages dans les fichier situés dans le dossier de log</p> |
<p class="description"><p>PHP Version 5</p></p> |
<ul class="tags"> |
<li><span class="field">author:</span> aurelien <<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>></li> |
<li><span class="field">version:</span> SVN: <svn_id></li> |
<li><span class="field">copyright:</span> 2009 Tela-Botanica</li> |
<li><span class="field">link:</span> /doc/framework/</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="_Log.php.html">/Log.php</a> (line <span class="field"><a href="../__filesource/fsource_Framework__Log.php.html#a17">17</a></span>) |
</p> |
<pre></pre> |
</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> | |
<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"> |
static <span class="method-result">void</span> |
<a href="#ajouterEntree" title="details" class="method-name">ajouterEntree</a> |
(<span class="var-type">string</span> <span class="var-name">$nomFichier</span>, <span class="var-type"></span> <span class="var-name">$entree</span>, [<span class="var-type"></span> <span class="var-name">$mode</span> = <span class="var-default">'a+'</span>]) |
</div> |
<div class="method-definition"> |
static <span class="method-result"><a href="../Framework/Log.html">Log</a></span> |
<a href="#getInstance" title="details" class="method-name">getInstance</a> |
() |
</div> |
<div class="method-definition"> |
static <span class="method-result">boolean</span> |
<a href="#verifierOuvrirFichier" title="details" class="method-name">verifierOuvrirFichier</a> |
(<span class="var-type">string</span> <span class="var-name">$nomFichier</span>, <span class="var-type"></span> <span class="var-name">$mode</span>) |
</div> |
<div class="method-definition"> |
static <span class="method-result">void</span> |
<a href="#viderLog" title="details" class="method-name">viderLog</a> |
(<span class="var-type">string</span> <span class="var-name">$nomFichier</span>) |
</div> |
<div class="method-definition"> |
<span class="method-result">void</span> |
<a href="#__destruct" title="details" class="method-name">__destruct</a> |
() |
</div> |
</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-method-summary">Methods</a> (<span class="disabled">details</span>) |
</div> |
<div class="info-box-body"> |
<A NAME='method_detail'></A> |
<a name="methodajouterEntree" id="ajouterEntree"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">static ajouterEntree</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Log.php.html#a95">95</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Ajoute une entrée au log spécifié par le paramètre $nomFichier</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">void</span> |
<span class="method-name"> |
ajouterEntree |
</span> |
(<span class="var-type">string</span> <span class="var-name">$nomFichier</span>, <span class="var-type"></span> <span class="var-name">$entree</span>, [<span class="var-type"></span> <span class="var-name">$mode</span> = <span class="var-default">'a+'</span>]) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$nomFichier</span><span class="var-description">: le nom du fichier dans lequel écrire</span> </li> |
<li> |
<span class="var-type"></span> |
<span class="var-name">$entree</span> </li> |
<li> |
<span class="var-type"></span> |
<span class="var-name">$mode</span> </li> |
</ul> |
</div> |
<a name="methodgetInstance" id="getInstance"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">static getInstance</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Log.php.html#a83">83</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Fonction qui renvoie l'instance de classe en assurant son unicité, c'est l'unique méthode qui doit être</p> |
<p class="description"><p>utilisée pour récupérer l'objet Registre</p></p> |
<ul class="tags"> |
<li><span class="field">return:</span> le gestionnaire de log en cours</li> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result"><a href="../Framework/Log.html">Log</a></span> |
<span class="method-name"> |
getInstance |
</span> |
() |
</div> |
</div> |
<a name="methodverifierOuvrirFichier" id="verifierOuvrirFichier"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">static verifierOuvrirFichier</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Log.php.html#a126">126</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Vérifie la présence d'un fichier dans le tableau, ses droits d'écriture,</p> |
<p class="description"><p>l'ouvre si nécessaire</p></p> |
<ul class="tags"> |
<li><span class="field">return:</span> true si le fichier est ouvert ou maintenant accessible, false sinon</li> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">boolean</span> |
<span class="method-name"> |
verifierOuvrirFichier |
</span> |
(<span class="var-type">string</span> <span class="var-name">$nomFichier</span>, <span class="var-type"></span> <span class="var-name">$mode</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$nomFichier</span><span class="var-description">: le nom du fichier dont on doit vérifier la présence</span> </li> |
<li> |
<span class="var-type"></span> |
<span class="var-name">$mode</span> </li> |
</ul> |
</div> |
<a name="methodviderLog" id="viderLog"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">static viderLog</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Log.php.html#a116">116</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Vide un fichier log indiqué</p> |
<ul class="tags"> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">void</span> |
<span class="method-name"> |
viderLog |
</span> |
(<span class="var-type">string</span> <span class="var-name">$nomFichier</span>) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">string</span> |
<span class="var-name">$nomFichier</span><span class="var-description">: le nom du fichier à vider</span> </li> |
</ul> |
</div> |
<a name="method__destruct" id="__destruct"><!-- --></a> |
<div class="evenrow"> |
<div class="method-header"> |
<span class="method-title">Destructor __destruct</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Log.php.html#a179">179</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">destructeur de classe, ferme les descripteurs ouverts</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> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:23 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/_Controleur.php.html |
---|
New file |
0,0 → 1,140 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 page Controleur.php</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="file-name">/Controleur.php</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-classes">Classes</a> |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<ul class="tags"> |
<li><span class="field">filesource:</span> <a href="../__filesource/fsource_Framework__Controleur.php.html">Source Code for this file</a></li> |
</ul> |
</div> |
</div> |
<a name="sec-classes"></a> |
<div class="info-box"> |
<div class="info-box-title">Classes</div> |
<div class="nav-bar"> |
<a href="#sec-description">Description</a> | |
<span class="disabled">Classes</span> |
</div> |
<div class="info-box-body"> |
<table cellpadding="2" cellspacing="0" class="class-table"> |
<tr> |
<th class="class-table-header">Class</th> |
<th class="class-table-header">Description</th> |
</tr> |
<tr> |
<td style="padding-right: 2em; vertical-align: top"> |
<a href="../Framework/Controleur.html">Controleur</a> |
</td> |
<td> |
Classe Controleur, coeur d'une application, c'est normalement la seule classe d'une application qui devrait être appelée de l'extérieur. |
</td> |
</tr> |
</table> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:16 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/Framework/SquelettePhp.html |
---|
New file |
0,0 → 1,196 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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 SquelettePhp</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 SquelettePhp</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-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
</div> |
<div class="info-box-body"> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Classe SquelettePhp, traitant les squelette Php utilisant la syntaxe courte php ou pas.</p> |
<p class="description"><p>Ces méthodes sont statiques.</p></p> |
<ul class="tags"> |
<li><span class="field">author:</span> Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></li> |
<li><span class="field">version:</span> SVN: $$Id: SquelettePhp.php 153 2010-03-04 10:48:32Z jpm $$</li> |
<li><span class="field">copyright:</span> 2010 Tela-Botanica</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="_SquelettePhp.php.html">/SquelettePhp.php</a> (line <span class="field"><a href="../__filesource/fsource_Framework__SquelettePhp.php.html#a16">16</a></span>) |
</p> |
<pre></pre> |
</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> | |
<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"> |
static <span class="method-result">boolean</span> |
<a href="#analyser" title="details" class="method-name">analyser</a> |
(<span class="var-type">String</span> <span class="var-name">$fichier</span>, [<span class="var-type"></span> <span class="var-name">$donnees</span> = <span class="var-default">array()</span>]) |
</div> |
</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-method-summary">Methods</a> (<span class="disabled">details</span>) |
</div> |
<div class="info-box-body"> |
<A NAME='method_detail'></A> |
<a name="methodanalyser" id="analyser"><!-- --></a> |
<div class="oddrow"> |
<div class="method-header"> |
<span class="method-title">static analyser</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__SquelettePhp.php.html#a27">27</a></span>) |
</div> |
<!-- ========== Info from phpDoc block ========= --> |
<p class="short-description">Fonction prenant en paramètre un chemin de fichier squelette et un tableau associatif de données, en extrait les variables, charge le squelette et retourne le résultat des deux combinés.</p> |
<ul class="tags"> |
<li><span class="field">return:</span> false si la vue n'existe pas, sinon la chaine résultat.</li> |
<li><span class="field">access:</span> public</li> |
</ul> |
<div class="method-signature"> |
static <span class="method-result">boolean</span> |
<span class="method-name"> |
analyser |
</span> |
(<span class="var-type">String</span> <span class="var-name">$fichier</span>, [<span class="var-type"></span> <span class="var-name">$donnees</span> = <span class="var-default">array()</span>]) |
</div> |
<ul class="parameters"> |
<li> |
<span class="var-type">String</span> |
<span class="var-name">$fichier</span><span class="var-description">: le chemin du fichier du squelette</span> </li> |
<li> |
<span class="var-type">Array</span> |
<span class="var-name">$donnees</span><span class="var-description">: un tableau associatif contenant les variables a injecter dans le squelette.</span> </li> |
</ul> |
</div> |
</div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:25 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</div></body> |
</html> |
/trunk/doc/HTMLframesConverter/__filesource/fsource_Framework__Application.php.html |
---|
New file |
0,0 → 1,102 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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>File Source for Application.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" href="../media/stylesheet.css" /> |
</head> |
<body> |
<h1>Source for file Application.php</h1> |
<p>Documentation is available at <a href="../Framework/_Application.php.html">Application.php</a></p> |
<div class="src-code"> |
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Classe fournissant des informations au Framework sur l'application.</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> * PHP version 5</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> Debogage</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> // Auteur principal :</span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> // Autres auteurs :</span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> GPL v3 <http://www.gnu.org/licenses/gpl.txt></span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt></span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> $$Id: Application.php 153 2010-03-04 10:48:32Z jpm $$</span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 1999-2009 Tela Botanica (accueil@tela-botanica.org)</span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a18"></a><span class="src-key">class </span><a href="../Framework/Application.html">Application</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a19"></a> </div></li> |
<li><div class="src-line"><a name="a20"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a21"></a><span class="src-doc"> * tableau d'informations sur l'application</span></div></li> |
<li><div class="src-line"><a name="a22"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a23"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$info </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a24"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a25"></a><span class="src-doc"> * chemin de base de l'application</span></div></li> |
<li><div class="src-line"><a name="a26"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a27"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$chemin </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a28"></a> </div></li> |
<li><div class="src-line"><a name="a29"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a30"></a><span class="src-doc"> * Modificateur pour le chemin de base</span></div></li> |
<li><div class="src-line"><a name="a31"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$chemin_fichier_principal </span><span class="src-doc">chemin de base</span></div></li> |
<li><div class="src-line"><a name="a32"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a33"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Application.html#methodsetChemin">setChemin</a><span class="src-sym">(</span><span class="src-var">$chemin_fichier_principal</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$chemin </span>=== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a35"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/file_exists">file_exists</a><span class="src-sym">(</span><span class="src-var">$chemin_fichier_principal</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a36"></a> <a href="http://www.php.net/trigger_error">trigger_error</a><span class="src-sym">(</span><span class="src-str">"Le fichier indiqué n'existe pas. Utilisez __FILE__ dans la méthode set()."</span><span class="src-sym">, </span><span class="src-id">E_USER_ERROR</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a37"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a38"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$chemin </span>= <span class="src-id">dirname</span><span class="src-sym">(</span><span class="src-var">$chemin_fichier_principal</span><span class="src-sym">)</span>.<span class="src-id"><a href="../Framework/_autoload.inc.php.html#defineDS">DS</a></span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a39"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a40"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a41"></a> <a href="http://www.php.net/trigger_error">trigger_error</a><span class="src-sym">(</span><span class="src-str">"Le chemin de l'application a déjà été enregistré auprès du Framework"</span><span class="src-sym">, </span><span class="src-id">E_USER_WARNING</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a42"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a43"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a44"></a> </div></li> |
<li><div class="src-line"><a name="a45"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a46"></a><span class="src-doc"> * accesseur pour le chemin</span></div></li> |
<li><div class="src-line"><a name="a47"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">le chemin</span></div></li> |
<li><div class="src-line"><a name="a48"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a49"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Application.html#methodgetChemin">getChemin</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a50"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$chemin</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a51"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a52"></a> </div></li> |
<li><div class="src-line"><a name="a53"></a> <span class="src-doc">/** Le tableau des informations sur l'application possède les clés suivantes :</span></div></li> |
<li><div class="src-line"><a name="a54"></a><span class="src-doc"> * - nom : nom de l'application</span></div></li> |
<li><div class="src-line"><a name="a55"></a><span class="src-doc"> * - abr : abréviation de l'application</span></div></li> |
<li><div class="src-line"><a name="a56"></a><span class="src-doc"> * - encodage : encodage de l'application (ISO-8859-15, UTF-8...)</span></div></li> |
<li><div class="src-line"><a name="a57"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a58"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc-var">$info </span><span class="src-doc">tableau fournissant des informations sur l'application</span></div></li> |
<li><div class="src-line"><a name="a59"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a60"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a61"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Application.html#methodsetInfo">setInfo</a><span class="src-sym">(</span><span class="src-var">$info</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a62"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$info </span>=== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a63"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$info </span>= <span class="src-var">$info</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a64"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a65"></a> <span class="src-id">trigger_error</span><span class="src-sym">(</span><span class="src-str">"Le informations de l'application ont déjà été enregistrées auprès du Framework"</span><span class="src-sym">, </span><span class="src-id">E_USER_WARNING</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a66"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a67"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a68"></a> </div></li> |
<li><div class="src-line"><a name="a69"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a70"></a><span class="src-doc"> * accesseur pour le tableau d'infos</span></div></li> |
<li><div class="src-line"><a name="a71"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$cle </span><span class="src-doc">la clé à laquelle on veut accéder</span></div></li> |
<li><div class="src-line"><a name="a72"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a73"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Application.html#methodgetInfo">getInfo</a><span class="src-sym">(</span><span class="src-var">$cle </span>= <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a74"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$cle </span>!== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a75"></a> <span class="src-key">if </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$info</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a76"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$info</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a77"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a78"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a79"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$info</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a80"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a81"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a82"></a><span class="src-sym">}</span></div></li> |
</ol></div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:08 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</body> |
</html> |
/trunk/doc/HTMLframesConverter/__filesource/fsource_Framework__SquelettePhp.php.html |
---|
New file |
0,0 → 1,94 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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>File Source for SquelettePhp.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" href="../media/stylesheet.css" /> |
</head> |
<body> |
<h1>Source for file SquelettePhp.php</h1> |
<p>Documentation is available at <a href="../Framework/_SquelettePhp.php.html">SquelettePhp.php</a></p> |
<div class="src-code"> |
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Classe SquelettePhp, traitant les squelette Php utilisant la syntaxe courte php ou pas.</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> * Ces méthodes sont statiques.</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> php5</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2010 Tela-Botanica</span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL</span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.gnu.org/licenses/gpl.html Licence GNU-GPL</span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> SVN: $$Id: SquelettePhp.php 153 2010-03-04 10:48:32Z jpm $$</span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-key">class </span><a href="../Framework/SquelettePhp.html">SquelettePhp</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a17"></a> </div></li> |
<li><div class="src-line"><a name="a18"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-doc"> * Fonction prenant en paramètre un chemin de fichier squelette et un tableau associatif de données,</span></div></li> |
<li><div class="src-line"><a name="a20"></a><span class="src-doc"> * en extrait les variables, charge le squelette et retourne le résultat des deux combinés.</span></div></li> |
<li><div class="src-line"><a name="a21"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a22"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">String </span><span class="src-doc-var">$fichier </span><span class="src-doc"> le chemin du fichier du squelette</span></div></li> |
<li><div class="src-line"><a name="a23"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">Array </span><span class="src-doc"> </span><span class="src-doc-var">$donnees </span><span class="src-doc"> un tableau associatif contenant les variables a injecter dans le squelette.</span></div></li> |
<li><div class="src-line"><a name="a24"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a25"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">boolean </span><span class="src-doc">false si la vue n'existe pas, sinon la chaine résultat.</span></div></li> |
<li><div class="src-line"><a name="a26"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a27"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/SquelettePhp.html#methodanalyser">analyser</a><span class="src-sym">(</span><span class="src-var">$fichier</span><span class="src-sym">, </span><span class="src-key">Array </span><span class="src-var">$donnees </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a28"></a> <span class="src-var">$sortie </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a29"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/file_exists">file_exists</a><span class="src-sym">(</span><span class="src-var">$fichier</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a30"></a> <span class="src-comm">// Extraction des variables du tableau de données</span></div></li> |
<li><div class="src-line"><a name="a31"></a> <a href="http://www.php.net/extract">extract</a><span class="src-sym">(</span><span class="src-var">$donnees</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a32"></a> <span class="src-comm">// Démarage de la bufferisation de sortie</span></div></li> |
<li><div class="src-line"><a name="a33"></a> <a href="http://www.php.net/ob_start">ob_start</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-comm">// Si les tags courts sont activés</span></div></li> |
<li><div class="src-line"><a name="a35"></a> <span class="src-key">if </span><span class="src-sym">(</span>(bool) <span class="src-sym">@</span><a href="http://www.php.net/ini_get">ini_get</a><span class="src-sym">(</span><span class="src-str">'short_open_tag'</span><span class="src-sym">) </span>=== <span class="src-id">true</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a36"></a> <span class="src-comm">// Simple inclusion du squelette</span></div></li> |
<li><div class="src-line"><a name="a37"></a> <span class="src-inc">include </span><span class="src-var">$fichier</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a38"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a39"></a> <span class="src-comm">// Sinon, remplacement des tags courts par la syntaxe classique avec echo</span></div></li> |
<li><div class="src-line"><a name="a40"></a> <span class="src-var">$html_et_code_php </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">traiterTagsCourts</span><span class="src-sym">(</span><span class="src-var">$fichier</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a41"></a> <span class="src-comm">// Pour évaluer du php mélangé dans du html il est nécessaire de fermer la balise php ouverte par eval</span></div></li> |
<li><div class="src-line"><a name="a42"></a> <span class="src-var">$html_et_code_php </span>= <span class="src-str">'?>'</span>.<span class="src-var">$html_et_code_php</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a43"></a> <span class="src-comm">// Interprétation du html et du php dans le buffer</span></div></li> |
<li><div class="src-line"><a name="a44"></a> echo eval<span class="src-sym">(</span><span class="src-var">$html_et_code_php</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a45"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a46"></a> <span class="src-comm">// Récupèration du contenu du buffer</span></div></li> |
<li><div class="src-line"><a name="a47"></a> <span class="src-var">$sortie </span>= <a href="http://www.php.net/ob_get_contents">ob_get_contents</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a48"></a> <span class="src-comm">// Suppression du buffer</span></div></li> |
<li><div class="src-line"><a name="a49"></a> <span class="src-sym">@</span><a href="http://www.php.net/ob_end_clean">ob_end_clean</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a50"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a51"></a> <span class="src-var">$msg </span>= <span class="src-str">"</span><span class="src-str">Le fichier du squelette '<span class="src-var">$fichier</span>' n'existe pas.</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a52"></a> <a href="http://www.php.net/trigger_error">trigger_error</a><span class="src-sym">(</span><span class="src-var">$msg</span><span class="src-sym">, </span><span class="src-id">E_USER_WARNING</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a53"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a54"></a> <span class="src-comm">// Retourne le contenu</span></div></li> |
<li><div class="src-line"><a name="a55"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a56"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a57"></a> </div></li> |
<li><div class="src-line"><a name="a58"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a59"></a><span class="src-doc"> * Fonction chargeant le contenu du squelette et remplaçant les tags court php (<?= ...) par un tag long avec echo.</span></div></li> |
<li><div class="src-line"><a name="a60"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a61"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">String </span><span class="src-doc-var">$chemin_squelette </span><span class="src-doc">le chemin du fichier du squelette</span></div></li> |
<li><div class="src-line"><a name="a62"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a63"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">le contenu du fichier du squelette php avec les tags courts remplacés.</span></div></li> |
<li><div class="src-line"><a name="a64"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a65"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">traiterTagsCourts</span><span class="src-sym">(</span><span class="src-var">$chemin_squelette</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a66"></a> <span class="src-var">$contenu </span>= <a href="http://www.php.net/file_get_contents">file_get_contents</a><span class="src-sym">(</span><span class="src-var">$chemin_squelette</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a67"></a> <span class="src-comm">// Remplacement de tags courts par un tag long avec echo</span></div></li> |
<li><div class="src-line"><a name="a68"></a> <span class="src-var">$contenu </span>= <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">'<?='</span><span class="src-sym">, </span><span class="src-str">'<?php echo '</span><span class="src-sym">, </span><span class="src-var">$contenu</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a69"></a> <span class="src-comm">// Ajout systématique d'un point virgule avant la fermeture php</span></div></li> |
<li><div class="src-line"><a name="a70"></a> <span class="src-var">$contenu </span>= <a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span><span class="src-str">"/;*\s*\?>/"</span><span class="src-sym">, </span><span class="src-str">"; ?>"</span><span class="src-sym">, </span><span class="src-var">$contenu</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a71"></a> <span class="src-key">return </span><span class="src-var">$contenu</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a72"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a73"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a74"></a><span class="src-php">?></span></div></li> |
</ol></div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:25 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</body> |
</html> |
/trunk/doc/HTMLframesConverter/__filesource/fsource_Framework__Registre.php.html |
---|
New file |
0,0 → 1,114 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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>File Source for Registre.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" href="../media/stylesheet.css" /> |
</head> |
<body> |
<h1>Source for file Registre.php</h1> |
<p>Documentation is available at <a href="../Framework/_Registre.php.html">Registre.php</a></p> |
<div class="src-code"> |
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Classe registre, qui permet un accès à différentes variables à travers les autres classes.</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> * C'est un singleton</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc">* PHP Version 5</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc">*</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc">* </span><span class="src-doc-coretag">@category</span><span class="src-doc"> Class</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc">* </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc">* </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal Milcent <jmp@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc">* </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2009 Tela-Botanica</span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc">* </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL</span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc">* </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.gnu.org/licenses/gpl.html Licence GNU-GPL</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc">* </span><span class="src-doc-coretag">@version</span><span class="src-doc"> SVN: $$Id: Registre.php 120 2009-09-01 12:21:14Z aurelien $$</span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc">* </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc">*</span></div></li> |
<li><div class="src-line"><a name="a18"></a><span class="src-doc">*/</span></div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-key">class </span><a href="../Framework/Registre.html">Registre</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a20"></a> </div></li> |
<li><div class="src-line"><a name="a21"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a22"></a><span class="src-doc"> * Tableau associatif stockant les variables</span></div></li> |
<li><div class="src-line"><a name="a23"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a24"></a> <span class="src-key">private </span><span class="src-var">$stockage </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a25"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a26"></a><span class="src-doc"> * La classe registre se contient elle-même, (pour le pattern singleton)</span></div></li> |
<li><div class="src-line"><a name="a27"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a28"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$registre</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a29"></a> </div></li> |
<li><div class="src-line"><a name="a30"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a31"></a><span class="src-doc"> * Constructeur par défaut, privé, car on accède à la classe par le getInstance</span></div></li> |
<li><div class="src-line"><a name="a32"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a33"></a> <span class="src-key">private </span><span class="src-key">function </span><span class="src-id">__construct</span><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a35"></a> </div></li> |
<li><div class="src-line"><a name="a36"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a37"></a><span class="src-doc"> * Fonction qui renvoie l'instance de classe en assurant son unicité, c'est l'unique méthode qui doit être</span></div></li> |
<li><div class="src-line"><a name="a38"></a><span class="src-doc"> * utilisée pour récupérer l'objet Registre</span></div></li> |
<li><div class="src-line"><a name="a39"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a40"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Registre.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a41"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$registre </span>instanceof <span class="src-id">Registre</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a42"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$registre</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a43"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a44"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$registre </span>= <span class="src-key">new </span><span class="src-id">Registre</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a45"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$registre</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a46"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a47"></a> </div></li> |
<li><div class="src-line"><a name="a48"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a49"></a><span class="src-doc"> * Ajoute un objet au tableau selon un intitulé donné</span></div></li> |
<li><div class="src-line"><a name="a50"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">l'intitulé sous lequel l'objet sera conservé</span></div></li> |
<li><div class="src-line"><a name="a51"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">mixed </span><span class="src-doc">l'objet à conserver</span></div></li> |
<li><div class="src-line"><a name="a52"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a53"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Registre.html#methodset">set</a><span class="src-sym">(</span><span class="src-var">$intitule</span><span class="src-sym">, </span><span class="src-var">$objet</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a54"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">is_array</span><span class="src-sym">(</span><span class="src-var">$objet</span><span class="src-sym">) </span>&& isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">stockage</span><span class="src-sym">[</span><span class="src-var">$intitule</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a55"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">stockage</span><span class="src-sym">[</span><span class="src-var">$intitule</span><span class="src-sym">] </span>= <a href="http://www.php.net/array_merge">array_merge</a><span class="src-sym">(</span>(array) <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">stockage</span><span class="src-sym">[</span><span class="src-var">$intitule</span><span class="src-sym">]</span><span class="src-sym">, </span>(array) <span class="src-var">$objet</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a56"></a> <span class="src-var">$message </span>= <span class="src-str">"</span><span class="src-str">Le tableau <span class="src-var">$intitule</span> présent dans le registre a été fusionné avec un nouveau tableau de même intitulé !</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a57"></a> <a href="http://www.php.net/trigger_error">trigger_error</a><span class="src-sym">(</span><span class="src-var">$message</span><span class="src-sym">, </span><span class="src-id">E_USER_WARNING</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a58"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a59"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">stockage</span><span class="src-sym">[</span><span class="src-var">$intitule</span><span class="src-sym">] </span>= <span class="src-var">$objet</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a60"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a61"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a62"></a> </div></li> |
<li><div class="src-line"><a name="a63"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a64"></a><span class="src-doc"> * Renvoie l'objet associé à l'intitulé donné en paramètre</span></div></li> |
<li><div class="src-line"><a name="a65"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">mixed </span><span class="src-doc">l'objet associé à l'intitulé ou null s'il n'est pas présent</span></div></li> |
<li><div class="src-line"><a name="a66"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a67"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Registre.html#methodget">get</a><span class="src-sym">(</span><span class="src-var">$intitule</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a68"></a> <span class="src-key">if </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">stockage</span><span class="src-sym">[</span><span class="src-var">$intitule</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a69"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">stockage</span><span class="src-sym">[</span><span class="src-var">$intitule</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a70"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a71"></a> <span class="src-key">return </span><span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a72"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a73"></a> </div></li> |
<li><div class="src-line"><a name="a74"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a75"></a><span class="src-doc"> * Détruit l'objet associé à l'intitulé, n'a pas d'effet si il n'y a pas d'objet associé</span></div></li> |
<li><div class="src-line"><a name="a76"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a77"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Registre.html#methoddetruire">detruire</a><span class="src-sym">(</span><span class="src-var">$intitule</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a78"></a> <span class="src-key">if </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">stockage</span><span class="src-sym">[</span><span class="src-var">$intitule</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a79"></a> unset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">stockage</span><span class="src-sym">[</span><span class="src-var">$intitule</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a80"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a81"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a82"></a> </div></li> |
<li><div class="src-line"><a name="a83"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a84"></a><span class="src-doc"> * Teste si un objet est présent sous un intitulé donné</span></div></li> |
<li><div class="src-line"><a name="a85"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">boolean </span><span class="src-doc">true si un objet associé à cet intitulé est présent, false sinon</span></div></li> |
<li><div class="src-line"><a name="a86"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a87"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Registre.html#methodexiste">existe</a><span class="src-sym">(</span><span class="src-var">$intitule</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a88"></a> <span class="src-key">if</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">stockage</span><span class="src-sym">[</span><span class="src-var">$intitule</span><span class="src-sym">]</span><span class="src-sym">))</span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a89"></a> <span class="src-key">return </span><span class="src-id">true</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a90"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a91"></a> <span class="src-key">return </span><span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a92"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a93"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a94"></a><span class="src-php">?></span></div></li> |
</ol></div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:25 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</body> |
</html> |
/trunk/doc/HTMLframesConverter/__filesource/fsource_Framework__Chronometre.php.html |
---|
New file |
0,0 → 1,172 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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>File Source for Chronometre.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" href="../media/stylesheet.css" /> |
</head> |
<body> |
<h1>Source for file Chronometre.php</h1> |
<p>Documentation is available at <a href="../Framework/_Chronometre.php.html">Chronometre.php</a></p> |
<div class="src-code"> |
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/** Classe Chronometre() - Permet de stocker et d'afficher</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * les temps d'éxécution de script.</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> * Cette classe permet de réaliser un ensemble</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> * de mesure de temps prises à</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> * différents endroits d'un script.</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> * Ces mesures peuvent ensuite être affichées au</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * sein d'un tableau XHTML.</span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> * PHP Version 5</span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> PHP</span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a18"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2009 Tela-Botanica</span></div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL</span></div></li> |
<li><div class="src-line"><a name="a20"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> Release: <package_version></span></div></li> |
<li><div class="src-line"><a name="a21"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li> |
<li><div class="src-line"><a name="a22"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a23"></a><span class="src-key">class </span><a href="../Framework/Chronometre.html">Chronometre</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a24"></a> <span class="src-comm">/*** Attributs : ***/</span></div></li> |
<li><div class="src-line"><a name="a25"></a> <span class="src-key">private </span><span class="src-var">$_temps </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a26"></a> </div></li> |
<li><div class="src-line"><a name="a27"></a> <span class="src-doc">/** Constructeur : **/</span></div></li> |
<li><div class="src-line"><a name="a28"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Chronometre.html#method__construct">__construct</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a29"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Chronometre.html#methodsetTemps">setTemps</a><span class="src-sym">(</span><span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'depart' </span>=> <a href="http://www.php.net/microtime">microtime</a><span class="src-sym">(</span><span class="src-sym">)))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a30"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a31"></a> </div></li> |
<li><div class="src-line"><a name="a32"></a> <span class="src-doc">/** Accesseurs :</span></div></li> |
<li><div class="src-line"><a name="a33"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a34"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$cle </span><span class="src-doc">la cle associée à un chronomètre particulier</span></div></li> |
<li><div class="src-line"><a name="a35"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a36"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">int </span><span class="src-doc">le temps écoulé</span></div></li> |
<li><div class="src-line"><a name="a37"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a38"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Chronometre.html#methodgetTemps">getTemps</a><span class="src-sym">(</span><span class="src-var">$cle </span>= <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a39"></a> <span class="src-var">$temps </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a40"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_null">is_null</a><span class="src-sym">(</span><span class="src-var">$cle</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a41"></a> <span class="src-var">$temps </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">_temps</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a42"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a43"></a> <span class="src-var">$temps </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">_temps</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a44"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a45"></a> <span class="src-key">return </span><span class="src-var">$temps</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a46"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a47"></a> </div></li> |
<li><div class="src-line"><a name="a48"></a> <span class="src-doc">/** Setteur pour la variable temps</span></div></li> |
<li><div class="src-line"><a name="a49"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a50"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array() </span><span class="src-doc-var">$moment </span><span class="src-doc">ajoute des points de chronométrage au tableau _temps</span></div></li> |
<li><div class="src-line"><a name="a51"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a52"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">null </span></div></li> |
<li><div class="src-line"><a name="a53"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a54"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Chronometre.html#methodsetTemps">setTemps</a><span class="src-sym">(</span><span class="src-var">$moment </span>= <span class="src-key">array </span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a55"></a> <a href="http://www.php.net/array_push">array_push</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">_temps</span><span class="src-sym">, </span><span class="src-var">$moment</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a56"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a57"></a> </div></li> |
<li><div class="src-line"><a name="a58"></a> <span class="src-comm">/*** Méthodes : ***/</span></div></li> |
<li><div class="src-line"><a name="a59"></a> </div></li> |
<li><div class="src-line"><a name="a60"></a> <span class="src-doc">/** Méthode afficherChrono() -</span></div></li> |
<li><div class="src-line"><a name="a61"></a><span class="src-doc"> * Permet d'afficher les temps d'éxécution de différentes parties d'un script.</span></div></li> |
<li><div class="src-line"><a name="a62"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a63"></a><span class="src-doc"> * Cette fonction permet d'afficher un ensemble de</span></div></li> |
<li><div class="src-line"><a name="a64"></a><span class="src-doc"> * mesure de temps prises à différents endroits d'un script.</span></div></li> |
<li><div class="src-line"><a name="a65"></a><span class="src-doc"> * Ces mesures sont affichées au sein d'un tableau XHTML</span></div></li> |
<li><div class="src-line"><a name="a66"></a><span class="src-doc"> * dont on peut controler l'indentation des balises.</span></div></li> |
<li><div class="src-line"><a name="a67"></a><span class="src-doc"> * Pour un site en production, il suffit d'ajouter un style</span></div></li> |
<li><div class="src-line"><a name="a68"></a><span class="src-doc"> * #chrono {display:none;} dans la css. De cette façon,</span></div></li> |
<li><div class="src-line"><a name="a69"></a><span class="src-doc"> * le tableau ne s'affichera pas. Le webmaster lui pourra</span></div></li> |
<li><div class="src-line"><a name="a70"></a><span class="src-doc"> * rajouter sa propre feuille de style affichant le tableau.</span></div></li> |
<li><div class="src-line"><a name="a71"></a><span class="src-doc"> * Le développeur initial de cette fonction est Loic d'Anterroches.</span></div></li> |
<li><div class="src-line"><a name="a72"></a><span class="src-doc"> * Elle a été modifiée par Jean-Pascal Milcent.</span></div></li> |
<li><div class="src-line"><a name="a73"></a><span class="src-doc"> * Elle utilise une variable gobale : $_CHRONO_</span></div></li> |
<li><div class="src-line"><a name="a74"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a75"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Loic d'Anterroches</span></div></li> |
<li><div class="src-line"><a name="a76"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a77"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a78"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc"> </span><span class="src-doc-type">int </span><span class="src-doc"> </span><span class="src-doc-var">$indentation_origine </span><span class="src-doc">l'indentation de base.</span></div></li> |
<li><div class="src-line"><a name="a79"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc"> </span><span class="src-doc-type">int </span><span class="src-doc"> </span><span class="src-doc-var">$indentation </span><span class="src-doc">le pas d'indentation.</span></div></li> |
<li><div class="src-line"><a name="a80"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string </span><span class="src-doc"> la chaine XHTML de mesure des temps.</span></div></li> |
<li><div class="src-line"><a name="a81"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a82"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Chronometre.html#methodafficherChrono">afficherChrono</a><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>= <span class="src-num">8</span><span class="src-sym">, </span><span class="src-var">$indentation </span>= <span class="src-num">4</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a83"></a> <span class="src-comm">// Création du chrono de fin</span></div></li> |
<li><div class="src-line"><a name="a84"></a> <span class="src-var">$GLOBALS</span><span class="src-sym">[</span><span class="src-str">'_SCRIPT_'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'chrono'</span><span class="src-sym">]</span><span class="src-sym">-></span><span class="src-id">setTemps</span><span class="src-sym">(</span><span class="src-key">array </span><span class="src-sym">(</span></div></li> |
<li><div class="src-line"><a name="a85"></a> <span class="src-str">'fin' </span>=> <a href="http://www.php.net/microtime">microtime</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li> |
<li><div class="src-line"><a name="a86"></a> <span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a87"></a> </div></li> |
<li><div class="src-line"><a name="a88"></a> <span class="src-comm">// Début création de l'affichage</span></div></li> |
<li><div class="src-line"><a name="a89"></a> <span class="src-var">$sortie </span>= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-var">$indentation_origine</span><span class="src-sym">) </span>.</div></li> |
<li><div class="src-line"><a name="a90"></a> <span class="src-str">'<table id="chrono" lang="fr" summary="Résultat du</span></div></li> |
<li><div class="src-line"><a name="a91"></a><span class="src-str"> chronométrage du programme affichant la page actuelle.">' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a92"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a93"></a> <span class="src-str">'<caption>Chronométrage</caption>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a94"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a95"></a> <span class="src-str">'<thead>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a96"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">2</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a97"></a> <span class="src-str">'<tr><th>Action</th><th>Temps écoulé (en s.)</th></span></div></li> |
<li><div class="src-line"><a name="a98"></a><span class="src-str"> <th>Cumul du temps écoulé (en s.)</th></tr>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a99"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a100"></a> <span class="src-str">'</thead>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a101"></a> </div></li> |
<li><div class="src-line"><a name="a102"></a> <span class="src-var">$tbody </span>= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a103"></a> <span class="src-str">'<tbody>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a104"></a> </div></li> |
<li><div class="src-line"><a name="a105"></a> <span class="src-var">$total_tps_ecoule </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a106"></a> </div></li> |
<li><div class="src-line"><a name="a107"></a> <span class="src-comm">// Récupération de la premiére mesure</span></div></li> |
<li><div class="src-line"><a name="a108"></a> <span class="src-var">$tab_depart </span>= <span class="src-sym">& </span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Chronometre.html#methodgetTemps">getTemps</a><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a109"></a> list <span class="src-sym">(</span><span class="src-var">$usec</span><span class="src-sym">, </span><span class="src-var">$sec</span><span class="src-sym">) </span>= <a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-var">$tab_depart</span><span class="src-sym">[</span><span class="src-str">'depart'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a110"></a> </div></li> |
<li><div class="src-line"><a name="a111"></a> <span class="src-comm">// Ce temps correspond à tps_fin</span></div></li> |
<li><div class="src-line"><a name="a112"></a> <span class="src-var">$tps_debut </span>= <span class="src-sym">(</span>(float) <span class="src-var">$usec </span>+ (float) <span class="src-var">$sec</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a113"></a> </div></li> |
<li><div class="src-line"><a name="a114"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Chronometre.html#methodgetTemps">getTemps</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-key">as </span><span class="src-var">$tab_temps</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a115"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$tab_temps </span><span class="src-key">as </span><span class="src-var">$cle </span>=> <span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a116"></a> list <span class="src-sym">(</span><span class="src-var">$usec</span><span class="src-sym">, </span><span class="src-var">$sec</span><span class="src-sym">) </span>= <a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-var">$valeur</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a117"></a> <span class="src-var">$tps_fin </span>= <span class="src-sym">(</span>(float) <span class="src-var">$usec </span>+ (float) <span class="src-var">$sec</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a118"></a> </div></li> |
<li><div class="src-line"><a name="a119"></a> <span class="src-var">$tps_ecoule </span>= <a href="http://www.php.net/abs">abs</a><span class="src-sym">(</span><span class="src-var">$tps_fin </span>- <span class="src-var">$tps_debut</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a120"></a> <span class="src-var">$total_tps_ecoule </span>+= <span class="src-var">$tps_ecoule</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a121"></a> </div></li> |
<li><div class="src-line"><a name="a122"></a> <span class="src-var">$tbody </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a123"></a> <span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">2</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a124"></a> <span class="src-str">'<tr>' </span>.</div></li> |
<li><div class="src-line"><a name="a125"></a> <span class="src-str">'<th>' </span>. <span class="src-var">$cle </span>. <span class="src-str">'</th>' </span>.</div></li> |
<li><div class="src-line"><a name="a126"></a> <span class="src-str">'<td>' </span>. <a href="http://www.php.net/number_format">number_format</a><span class="src-sym">(</span><span class="src-var">$tps_ecoule</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">, </span><span class="src-str">','</span><span class="src-sym">, </span><span class="src-str">' '</span><span class="src-sym">) </span>. <span class="src-str">'</td>' </span>.</div></li> |
<li><div class="src-line"><a name="a127"></a> <span class="src-str">'<td>' </span>. <a href="http://www.php.net/number_format">number_format</a><span class="src-sym">(</span><span class="src-var">$total_tps_ecoule</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">, </span><span class="src-str">','</span><span class="src-sym">, </span><span class="src-str">' '</span><span class="src-sym">) </span>. <span class="src-str">'</td>' </span>.</div></li> |
<li><div class="src-line"><a name="a128"></a> <span class="src-str">'</tr>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a129"></a> <span class="src-var">$tps_debut </span>= <span class="src-var">$tps_fin</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a130"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a131"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a132"></a> <span class="src-var">$tbody </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a133"></a> <span class="src-str">'</tbody>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a134"></a> </div></li> |
<li><div class="src-line"><a name="a135"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a136"></a> <span class="src-str">'<tfoot>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a137"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">2</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a138"></a> <span class="src-str">'<tr>' </span>.</div></li> |
<li><div class="src-line"><a name="a139"></a> <span class="src-str">'<th>' </span>. <span class="src-str">'Total du temps écoulé (en s.)' </span>. <span class="src-str">'</th>' </span>.</div></li> |
<li><div class="src-line"><a name="a140"></a> <span class="src-str">'<td colspan="2">' </span>.</div></li> |
<li><div class="src-line"><a name="a141"></a> <a href="http://www.php.net/number_format">number_format</a><span class="src-sym">(</span><span class="src-var">$total_tps_ecoule</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">, </span><span class="src-str">','</span><span class="src-sym">, </span><span class="src-str">' '</span><span class="src-sym">) </span>. <span class="src-str">'</td>' </span>.</div></li> |
<li><div class="src-line"><a name="a142"></a> <span class="src-str">'</tr>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a143"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a144"></a> <span class="src-str">'</tfoot>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a145"></a> <span class="src-var">$sortie </span>.= <span class="src-var">$tbody</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a146"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-var">$indentation_origine</span><span class="src-sym">) </span>.</div></li> |
<li><div class="src-line"><a name="a147"></a> <span class="src-str">'</table>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a148"></a> </div></li> |
<li><div class="src-line"><a name="a149"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a150"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a151"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a152"></a><span class="src-php">?></span></div></li> |
</ol></div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:11 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</body> |
</html> |
/trunk/doc/HTMLframesConverter/__filesource/fsource_Framework__Config.php.html |
---|
New file |
0,0 → 1,289 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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>File Source for Config.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" href="../media/stylesheet.css" /> |
</head> |
<body> |
<h1>Source for file Config.php</h1> |
<p>Documentation is available at <a href="../Framework/_Config.php.html">Config.php</a></p> |
<div class="src-code"> |
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Config permet de charger automatiquement les fichiers ini du Framework et de l'application.</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> * Elle offre l'accès en lecture seule aux paramètres de config.</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> * C'est une Singleton.</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> * PHP Version 5</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> PHP</span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2009 Tela-Botanica</span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> GPL-v3 et CECILL-v2</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> SVN: <svn_id></span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a18"></a> </div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-key">class </span><a href="../Framework/Config.html">Config</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a20"></a> </div></li> |
<li><div class="src-line"><a name="a21"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a22"></a><span class="src-doc"> * instance de la classe pointant sur elle même (pour le pattern singleton)</span></div></li> |
<li><div class="src-line"><a name="a23"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a24"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$instance </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a25"></a> </div></li> |
<li><div class="src-line"><a name="a26"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a27"></a><span class="src-doc"> * paramètres de configuration</span></div></li> |
<li><div class="src-line"><a name="a28"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a29"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$parametres </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a30"></a> </div></li> |
<li><div class="src-line"><a name="a31"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a32"></a><span class="src-doc"> * Constructeur vide</span></div></li> |
<li><div class="src-line"><a name="a33"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-key">private </span><span class="src-key">function </span><span class="src-id">__construct</span><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a35"></a> <span class="src-comm">// Définition de paramètres avant chargement du config.ini</span></div></li> |
<li><div class="src-line"><a name="a36"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres </span>= <span class="src-key">array</span><span class="src-sym">(</span></div></li> |
<li><div class="src-line"><a name="a37"></a> <span class="src-str">'fw_fichier_config' </span>=> <span class="src-str">'config%s.ini'</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a38"></a> <span class="src-str">'fw_chemin' </span>=> <span class="src-id">dirname</span><span class="src-sym">(</span>__FILE__<span class="src-sym">)</span>.<span class="src-id"><a href="../Framework/_autoload.inc.php.html#defineDS">DS</a></span></div></li> |
<li><div class="src-line"><a name="a39"></a> <span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a40"></a> </div></li> |
<li><div class="src-line"><a name="a41"></a> <span class="src-comm">// Chargement du fichier config.ini du Framework</span></div></li> |
<li><div class="src-line"><a name="a42"></a> <span class="src-var">$existe </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">parserFichierIni</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">[</span><span class="src-str">'fw_chemin'</span><span class="src-sym">]</span>.<span class="src-id">sprintf</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">[</span><span class="src-str">'fw_fichier_config'</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-str">''</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a43"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$existe </span>=== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a44"></a> <a href="http://www.php.net/trigger_error">trigger_error</a><span class="src-sym">(</span><span class="src-str">"Veuillez configurer le Framework en renommant le fichier config.defaut.ini en config.ini."</span><span class="src-sym">, </span><span class="src-id">E_USER_ERROR</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a45"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a46"></a> </div></li> |
<li><div class="src-line"><a name="a47"></a> <span class="src-comm">// Chargement du fichier config.ini par défaut de l'application</span></div></li> |
<li><div class="src-line"><a name="a48"></a> <span class="src-var">$chemin_config_defaut_appli </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">[</span><span class="src-str">'chemin_configurations'</span><span class="src-sym">]</span>.<span class="src-id">sprintf</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">[</span><span class="src-str">'fw_fichier_config'</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-str">''</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a49"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">parserFichierIni</span><span class="src-sym">(</span><span class="src-var">$chemin_config_defaut_appli</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a50"></a> </div></li> |
<li><div class="src-line"><a name="a51"></a> <span class="src-comm">// Chargement des fichiers config.ini contextuels</span></div></li> |
<li><div class="src-line"><a name="a52"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">PHP_SAPI </span>== <span class="src-str">'cli'</span><span class="src-sym">) </span><span class="src-sym">{</span><span class="src-comm">// mode console</span></div></li> |
<li><div class="src-line"><a name="a53"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'argv'</span><span class="src-sym">] </span><span class="src-key">as </span><span class="src-var">$cle </span>=> <span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a54"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$valeur </span>== <span class="src-str">'-contexte'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a55"></a> <span class="src-id">chargerFichierContexte</span><span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'argv'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-sym">(</span><span class="src-var">$cle</span>+<span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a56"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a57"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a58"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a59"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span><span class="src-comm">// mode web</span></div></li> |
<li><div class="src-line"><a name="a60"></a> <span class="src-comm">// Pour Papyrus</span></div></li> |
<li><div class="src-line"><a name="a61"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'PAP_VERSION'</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a62"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">chargerFichierContexte</span><span class="src-sym">(</span><span class="src-str">'papyrus'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a63"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a64"></a> <span class="src-comm">// Via le fichie .ini par défaut de l'appli</span></div></li> |
<li><div class="src-line"><a name="a65"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><span class="src-id">existeValeur</span><span class="src-sym">(</span><span class="src-str">'info.contexte'</span><span class="src-sym">, </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a66"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">chargerFichierContexte</span><span class="src-sym">(</span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'info.contexte'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a67"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a68"></a> </div></li> |
<li><div class="src-line"><a name="a69"></a> <span class="src-comm">// Chargement du contexte présent dans le GET</span></div></li> |
<li><div class="src-line"><a name="a70"></a> <span class="src-key">if </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$_GET</span><span class="src-sym">[</span><span class="src-str">'contexte'</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a71"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">chargerFichierContexte</span><span class="src-sym">(</span><span class="src-var">$_GET</span><span class="src-sym">[</span><span class="src-str">'contexte'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a72"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a73"></a> </div></li> |
<li><div class="src-line"><a name="a74"></a> <span class="src-comm">// Chargement du contexte présent dans le POST</span></div></li> |
<li><div class="src-line"><a name="a75"></a> <span class="src-key">if </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$_POST</span><span class="src-sym">[</span><span class="src-str">'contexte'</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a76"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">chargerFichierContexte</span><span class="src-sym">(</span><span class="src-var">$_POST</span><span class="src-sym">[</span><span class="src-str">'contexte'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a77"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a78"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a79"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a80"></a> </div></li> |
<li><div class="src-line"><a name="a81"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a82"></a><span class="src-doc"> * Charge le fichier de config correspondant au contexte</span></div></li> |
<li><div class="src-line"><a name="a83"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$contexte </span><span class="src-doc">le contexte</span></div></li> |
<li><div class="src-line"><a name="a84"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a85"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">chargerFichierContexte</span><span class="src-sym">(</span><span class="src-var">$contexte</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a86"></a> <span class="src-var">$chemin_config_appli_contextuel </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">[</span><span class="src-str">'chemin_configurations'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a87"></a> <span class="src-var">$chemin_config_appli_contextuel </span>.= <span class="src-id">sprintf</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">[</span><span class="src-str">'fw_fichier_config'</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-str">'_'</span>.<span class="src-var">$contexte</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a88"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">parserFichierIni</span><span class="src-sym">(</span><span class="src-var">$chemin_config_appli_contextuel</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a89"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a90"></a> </div></li> |
<li><div class="src-line"><a name="a91"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a92"></a><span class="src-doc"> * Parse le fichier ini donné en paramètre</span></div></li> |
<li><div class="src-line"><a name="a93"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$fichier_ini </span><span class="src-doc">nom du fichier ini à parser</span></div></li> |
<li><div class="src-line"><a name="a94"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">array </span><span class="src-doc">tableau contenant les paramètres du fichier ini</span></div></li> |
<li><div class="src-line"><a name="a95"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a96"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">parserFichierIni</span><span class="src-sym">(</span><span class="src-var">$fichier_ini</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a97"></a> <span class="src-var">$retour </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a98"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/file_exists">file_exists</a><span class="src-sym">(</span><span class="src-var">$fichier_ini</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a99"></a> <span class="src-var">$ini </span>= <a href="http://www.php.net/parse_ini_file">parse_ini_file</a><span class="src-sym">(</span><span class="src-var">$fichier_ini</span><span class="src-sym">, </span><span class="src-id">true</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a100"></a> <span class="src-var">$ini </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">analyserTableauIni</span><span class="src-sym">(</span><span class="src-var">$ini</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a101"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">fusionner</span><span class="src-sym">(</span><span class="src-var">$ini</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a102"></a> <span class="src-var">$retour </span>= <span class="src-id">true</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a103"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a104"></a> <span class="src-key">return </span><span class="src-var">$retour</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a105"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a106"></a> </div></li> |
<li><div class="src-line"><a name="a107"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a108"></a><span class="src-doc"> * fusionne un tableau de paramètres avec le tableau de paramètres global</span></div></li> |
<li><div class="src-line"><a name="a109"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc-var">$ini </span><span class="src-doc">le tableau à fusionner</span></div></li> |
<li><div class="src-line"><a name="a110"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a111"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">fusionner</span><span class="src-sym">(</span><span class="src-key">array </span><span class="src-var">$ini</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a112"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres </span>= <span class="src-id">array_merge</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">, </span><span class="src-var">$ini</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a113"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a114"></a> </div></li> |
<li><div class="src-line"><a name="a115"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a116"></a><span class="src-doc"> * renvoie la valeur demandé grâce une chaine de paramètres</span></div></li> |
<li><div class="src-line"><a name="a117"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$param </span><span class="src-doc">la chaine de paramètres</span></div></li> |
<li><div class="src-line"><a name="a118"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc-var">$config </span><span class="src-doc">le tableau de paramètre</span></div></li> |
<li><div class="src-line"><a name="a119"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">la valeur de la chaine demandée</span></div></li> |
<li><div class="src-line"><a name="a120"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a121"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">getValeur</span><span class="src-sym">(</span><span class="src-var">$param</span><span class="src-sym">, </span><span class="src-var">$config</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a122"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$param </span>=== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a123"></a> <span class="src-key">return </span><span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a124"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a125"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$param</span><span class="src-sym">, </span><span class="src-str">'.'</span><span class="src-sym">) </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a126"></a> <span class="src-var">$pieces </span>= <a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">'.'</span><span class="src-sym">, </span><span class="src-var">$param</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a127"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">) </span>&& <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a128"></a> <span class="src-key">if </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a129"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a130"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getValeur</span><span class="src-sym">(</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a131"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a132"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a133"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a134"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a135"></a> <span class="src-key">if </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$param</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a136"></a> <span class="src-key">return </span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$param</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a137"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a138"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a139"></a> <span class="src-key">return </span><span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a140"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a141"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a142"></a> </div></li> |
<li><div class="src-line"><a name="a143"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a144"></a><span class="src-doc"> * Teste si param existe dans le tableau config</span></div></li> |
<li><div class="src-line"><a name="a145"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$param </span><span class="src-doc">nom du paramètre</span></div></li> |
<li><div class="src-line"><a name="a146"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc">tableau de configuration</span></div></li> |
<li><div class="src-line"><a name="a147"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a148"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">existeValeur</span><span class="src-sym">(</span><span class="src-var">$param</span><span class="src-sym">, </span><span class="src-var">$config</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a149"></a> <span class="src-var">$retour </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a150"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getValeur</span><span class="src-sym">(</span><span class="src-var">$param</span><span class="src-sym">, </span><span class="src-var">$config</span><span class="src-sym">) </span>!== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a151"></a> <span class="src-var">$retour </span>= <span class="src-id">true</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a152"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a153"></a> <span class="src-key">return </span><span class="src-var">$retour</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a154"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a155"></a> </div></li> |
<li><div class="src-line"><a name="a156"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a157"></a><span class="src-doc"> * Vérifie si l'instance de classe à été crée, si non la crée</span></div></li> |
<li><div class="src-line"><a name="a158"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a159"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">verifierCreationInstance</span><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a160"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$instance</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a161"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$instance </span>= <span class="src-key">new </span><span class="src-id">Config</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a162"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a163"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a164"></a> </div></li> |
<li><div class="src-line"><a name="a165"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a166"></a><span class="src-doc"> * analyse un tableau de paramètres</span></div></li> |
<li><div class="src-line"><a name="a167"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc-var">$config </span><span class="src-doc">le tableau de paramètres</span></div></li> |
<li><div class="src-line"><a name="a168"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">array </span><span class="src-doc">le tableau analysé</span></div></li> |
<li><div class="src-line"><a name="a169"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a170"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">analyserTableauIni</span><span class="src-sym">(</span><span class="src-var">$config </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a171"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$config </span><span class="src-key">as </span><span class="src-var">$cle </span>=> <span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a172"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$valeur</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a173"></a> <span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">] </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">analyserTableauIni</span><span class="src-sym">(</span><span class="src-var">$valeur</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a174"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a175"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">evaluerReferences</span><span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">, </span><span class="src-var">$cle</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a176"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">evaluerPhp</span><span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">, </span><span class="src-var">$cle</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a177"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">evaluerCle</span><span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">, </span><span class="src-var">$cle</span><span class="src-sym">, </span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a178"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a179"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a180"></a> <span class="src-key">return </span><span class="src-var">$config</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a181"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a182"></a> </div></li> |
<li><div class="src-line"><a name="a183"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a184"></a><span class="src-doc"> * dans le cas des chaine de configuration à sous clé (ex.: cle.souscle)</span></div></li> |
<li><div class="src-line"><a name="a185"></a><span class="src-doc"> * evalue les valeurs correspondantes et crée les sous tableaux associés</span></div></li> |
<li><div class="src-line"><a name="a186"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc-var">$config </span><span class="src-doc">tableau de configuration (par référence)</span></div></li> |
<li><div class="src-line"><a name="a187"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$cle </span><span class="src-doc">la cle dans le tableau</span></div></li> |
<li><div class="src-line"><a name="a188"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$valeur </span><span class="src-doc">la valeur à affecter</span></div></li> |
<li><div class="src-line"><a name="a189"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a190"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">evaluerCle</span><span class="src-sym">(</span><span class="src-sym">&</span><span class="src-var">$config</span><span class="src-sym">, </span><span class="src-var">$cle</span><span class="src-sym">, </span><span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a191"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$cle</span><span class="src-sym">, </span><span class="src-str">'.'</span><span class="src-sym">) </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a192"></a> unset<span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a193"></a> <span class="src-var">$pieces </span>= <a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">'.'</span><span class="src-sym">, </span><span class="src-var">$cle</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a194"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">) </span>&& <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a195"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a196"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">] </span>=== <span class="src-str">'0' </span>&& <span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a197"></a> <span class="src-comm">// convert the current values in $config into an array</span></div></li> |
<li><div class="src-line"><a name="a198"></a> <span class="src-var">$config </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">] </span>=> <span class="src-var">$config</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a199"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a200"></a> <span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]] </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a201"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a202"></a> <span class="src-sym">} </span><span class="src-key">elseif </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a203"></a> throw <span class="src-key">new </span><span class="src-id">ErrorException</span><span class="src-sym">(</span><span class="src-str">"</span><span class="src-str">Ne peut pas créer de sous-clé pour '{<span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">}</span>' car la clé existe déjà</span><span class="src-str">"</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a204"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a205"></a> <span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]] </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">evaluerCle</span><span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]]</span><span class="src-sym">, </span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-var">$valeur</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a206"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a207"></a> throw <span class="src-key">new </span><span class="src-id">ErrorException</span><span class="src-sym">(</span><span class="src-str">"</span><span class="src-str">Clé invalide '<span class="src-var">$cle</span>'</span><span class="src-str">"</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a208"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a209"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a210"></a> <span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">] </span>= <span class="src-var">$valeur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a211"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a212"></a> <span class="src-key">return </span><span class="src-var">$config</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a213"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a214"></a> </div></li> |
<li><div class="src-line"><a name="a215"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a216"></a><span class="src-doc"> * Evalue les valeurs de références à une clé dans le tableau config (cas du ref:cle)</span></div></li> |
<li><div class="src-line"><a name="a217"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc-var">$config </span><span class="src-doc">tableau de configuration</span></div></li> |
<li><div class="src-line"><a name="a218"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$cle </span><span class="src-doc">la clé dont il faut évaluer les références</span></div></li> |
<li><div class="src-line"><a name="a219"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a220"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">evaluerReferences</span><span class="src-sym">(</span><span class="src-sym">&</span><span class="src-var">$config</span><span class="src-sym">, </span><span class="src-var">$cle</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a221"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/preg_match_all">preg_match_all</a><span class="src-sym">(</span><span class="src-str">'/{ref:([A-Za-z0-9_-]+)}/'</span><span class="src-sym">, </span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-var">$correspondances</span><span class="src-sym">, </span><span class="src-id">PREG_SET_ORDER</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a222"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$correspondances </span><span class="src-key">as </span><span class="src-var">$ref</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a223"></a> <span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">] </span>= <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-var">$ref</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getValeur</span><span class="src-sym">(</span><span class="src-var">$ref</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-var">$config</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a224"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a225"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a226"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a227"></a> </div></li> |
<li><div class="src-line"><a name="a228"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a229"></a><span class="src-doc"> * Evalue le code php contenu dans un clé tu tableau config</span></div></li> |
<li><div class="src-line"><a name="a230"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc-var">$config </span><span class="src-doc">tableau de configuration (par référence)</span></div></li> |
<li><div class="src-line"><a name="a231"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$cle </span><span class="src-doc">le clé du tableau dont il faut évaluer la valeur</span></div></li> |
<li><div class="src-line"><a name="a232"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a233"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">evaluerPhp</span><span class="src-sym">(</span><span class="src-sym">&</span><span class="src-var">$config</span><span class="src-sym">, </span><span class="src-var">$cle</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a234"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'/^php:(.+)$/'</span><span class="src-sym">, </span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-var">$correspondances</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a235"></a> eval<span class="src-sym">(</span><span class="src-str">'$config["'</span>.<span class="src-var">$cle</span>.<span class="src-str">'"] = '</span>.<span class="src-var">$correspondances</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span>.<span class="src-str">';'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a236"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a237"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a238"></a> </div></li> |
<li><div class="src-line"><a name="a239"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a240"></a><span class="src-doc"> * Charge un fichier ini dans le tableau des paramètres de l'appli</span></div></li> |
<li><div class="src-line"><a name="a241"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$fichier_ini </span><span class="src-doc">le nom du fichier à charger</span></div></li> |
<li><div class="src-line"><a name="a242"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">array </span><span class="src-doc">le fichier ini parsé</span></div></li> |
<li><div class="src-line"><a name="a243"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a244"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Config.html#methodcharger">charger</a><span class="src-sym">(</span><span class="src-var">$fichier_ini</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a245"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">verifierCreationInstance</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a246"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">parserFichierIni</span><span class="src-sym">(</span><span class="src-var">$fichier_ini</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a247"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a248"></a> </div></li> |
<li><div class="src-line"><a name="a249"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a250"></a><span class="src-doc"> * Acesseur pour la valeur d'un paramètre</span></div></li> |
<li><div class="src-line"><a name="a251"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$param </span><span class="src-doc">le nom du paramètre</span></div></li> |
<li><div class="src-line"><a name="a252"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">la valeur du paramètre</span></div></li> |
<li><div class="src-line"><a name="a253"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a254"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-var">$param </span>= <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a255"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">verifierCreationInstance</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a256"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getValeur</span><span class="src-sym">(</span><span class="src-var">$param</span><span class="src-sym">, </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a257"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a258"></a> </div></li> |
<li><div class="src-line"><a name="a259"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a260"></a><span class="src-doc"> * Vérifie si la valeur d'un paramètre existe</span></div></li> |
<li><div class="src-line"><a name="a261"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$param </span><span class="src-doc">le nom du paramètre</span></div></li> |
<li><div class="src-line"><a name="a262"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">boolean </span><span class="src-doc">vrai si le paramètre existe, false sinon</span></div></li> |
<li><div class="src-line"><a name="a263"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a264"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">existe</span><span class="src-sym">(</span><span class="src-var">$param</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a265"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">verifierCreationInstance</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a266"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">existeValeur</span><span class="src-sym">(</span><span class="src-var">$param</span><span class="src-sym">, </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a267"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a268"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a269"></a><span class="src-php">?></span></div></li> |
</ol></div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:16 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</body> |
</html> |
/trunk/doc/HTMLframesConverter/__filesource/fsource_Framework__Modele.php.html |
---|
New file |
0,0 → 1,360 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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>File Source for Modele.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" href="../media/stylesheet.css" /> |
</head> |
<body> |
<h1>Source for file Modele.php</h1> |
<p>Documentation is available at <a href="../Framework/_Modele.php.html">Modele.php</a></p> |
<div class="src-code"> |
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc">* Classe modèle, donc d'accés au données, elle ne devrait pas être appelée de l'extérieur.</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc">* Elle fait office d'abstraction légère de base de données en utilisant diveres possibilités</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc">* d'abstraction de base de données (PDO, mysql, mysqli, sqlite)</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc">* Elle est abstraite donc doit obligatoirement être étendue.</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc">*</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc">* PHP Version 5</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc">*</span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc">* </span><span class="src-doc-coretag">@category</span><span class="src-doc"> Class</span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc">* </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc">* </span><span class="src-doc-coretag">@author</span><span class="src-doc"> aurelien <aurelien@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc">* </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2009 Tela-Botanica</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc">* </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL</span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc">* </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.gnu.org/licenses/gpl.html Licence GNU-GPL</span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc">* </span><span class="src-doc-coretag">@version</span><span class="src-doc"> SVN: $$Id: Modele.php 145 2010-03-02 17:23:09Z jpm $$</span></div></li> |
<li><div class="src-line"><a name="a18"></a><span class="src-doc">* </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-doc">*</span></div></li> |
<li><div class="src-line"><a name="a20"></a><span class="src-doc">*/</span></div></li> |
<li><div class="src-line"><a name="a21"></a><span class="src-key">abstract </span><span class="src-key">class </span><a href="../Framework/Modele.html">Modele</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a22"></a> </div></li> |
<li><div class="src-line"><a name="a23"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a24"></a><span class="src-doc"> * Mode de fetch associatif</span></div></li> |
<li><div class="src-line"><a name="a25"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a26"></a> <span class="src-key">private </span><span class="src-var">$ASSOC </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a27"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a28"></a><span class="src-doc"> * Mode de fetch objet</span></div></li> |
<li><div class="src-line"><a name="a29"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a30"></a> <span class="src-key">private </span><span class="src-var">$OBJECT </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a31"></a> </div></li> |
<li><div class="src-line"><a name="a32"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a33"></a><span class="src-doc"> * abstraction de base de données utilisée</span></div></li> |
<li><div class="src-line"><a name="a34"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a35"></a> <span class="src-key">private </span><span class="src-var">$abstraction</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a36"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a37"></a><span class="src-doc"> * registre global</span></div></li> |
<li><div class="src-line"><a name="a38"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a39"></a> <span class="src-key">private </span><span class="src-var">$registre</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a40"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a41"></a><span class="src-doc"> * DSN pour accéder à la base de données</span></div></li> |
<li><div class="src-line"><a name="a42"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a43"></a> <span class="src-key">private </span><span class="src-var">$dsn</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a44"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a45"></a><span class="src-doc"> * Type de base de données (mysql, mysqli, etc ...)</span></div></li> |
<li><div class="src-line"><a name="a46"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a47"></a> <span class="src-key">private </span><span class="src-var">$type</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a48"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a49"></a><span class="src-doc"> * Hote herbergeant la base de données</span></div></li> |
<li><div class="src-line"><a name="a50"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a51"></a> <span class="src-key">private </span><span class="src-var">$hote</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a52"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a53"></a><span class="src-doc"> * Nom de la base de données à laquelle le modèle doit se connecter</span></div></li> |
<li><div class="src-line"><a name="a54"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a55"></a> <span class="src-key">private </span><span class="src-var">$bdd_nom</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a56"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a57"></a><span class="src-doc"> * Nom d'utilisateur</span></div></li> |
<li><div class="src-line"><a name="a58"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a59"></a> <span class="src-key">private </span><span class="src-var">$utilisateur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a60"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a61"></a><span class="src-doc"> * Mot de passe</span></div></li> |
<li><div class="src-line"><a name="a62"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a63"></a> <span class="src-key">private </span><span class="src-var">$pass</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a64"></a> </div></li> |
<li><div class="src-line"><a name="a65"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a66"></a><span class="src-doc"> * Encodage de la base de données</span></div></li> |
<li><div class="src-line"><a name="a67"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a68"></a> <span class="src-key">private </span><span class="src-var">$encodage </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a69"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a70"></a><span class="src-doc"> * Connexion à la base de données</span></div></li> |
<li><div class="src-line"><a name="a71"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a72"></a> <span class="src-key">private </span><span class="src-var">$connexion </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a73"></a> </div></li> |
<li><div class="src-line"><a name="a74"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a75"></a><span class="src-doc"> * Constructeur par défaut, appelé à l'initialisation.</span></div></li> |
<li><div class="src-line"><a name="a76"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a77"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Modele.html#method__construct">__construct</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a78"></a> <span class="src-comm">// les différents paramètres nécessaires sont lus à partir du registre</span></div></li> |
<li><div class="src-line"><a name="a79"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">registre </span>= <span class="src-id"><a href="../Framework/Registre.html">Registre</a></span><span class="src-sym">::</span><a href="../Framework/Registre.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a80"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">abstraction </span>= <a href="http://www.php.net/strtolower">strtolower</a><span class="src-sym">(</span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'bdd_abstraction'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a81"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">type </span>= <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'bdd_protocole'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a82"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote </span>= <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'bdd_serveur'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a83"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">bdd_nom </span>= <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'bdd_nom'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a84"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">utilisateur </span>= <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'bdd_utilisateur'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a85"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">pass </span>= <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'bdd_mot_de_passe'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a86"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">encodage </span>= <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'bdd_encodage'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a87"></a> </div></li> |
<li><div class="src-line"><a name="a88"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">dsn </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">type</span>.<span class="src-str">':dbname='</span>.<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">bdd_nom</span>.<span class="src-str">';host='</span>.<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a89"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Modele.html#methodinitialiserProtocole">initialiserProtocole</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a90"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a91"></a> </div></li> |
<li><div class="src-line"><a name="a92"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a93"></a><span class="src-doc"> * Connection à la base de données en utilisant les informations fournies par</span></div></li> |
<li><div class="src-line"><a name="a94"></a><span class="src-doc"> * le fichier de configuration.</span></div></li> |
<li><div class="src-line"><a name="a95"></a><span class="src-doc"> * private et final car n'a pas vocation a être appelée par l'utilisateur.</span></div></li> |
<li><div class="src-line"><a name="a96"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a97"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@throws</span><span class="src-doc"> Exception une exception dans le cas ou là connexion échoue</span></div></li> |
<li><div class="src-line"><a name="a98"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a99"></a> <span class="src-key">final </span><span class="src-key">private </span><span class="src-key">function </span><span class="src-id">connecter</span><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a100"></a> <span class="src-key">switch </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">abstraction</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a101"></a> <span class="src-key">case </span><span class="src-str">'pdo'</span>:</div></li> |
<li><div class="src-line"><a name="a102"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>= <span class="src-key">new </span><span class="src-id">PDO</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">dsn</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">utilisateur</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">pass</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a103"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a104"></a> </div></li> |
<li><div class="src-line"><a name="a105"></a> <span class="src-key">case </span><span class="src-str">'mysql'</span>:</div></li> |
<li><div class="src-line"><a name="a106"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>= <a href="http://www.php.net/mysql_connect">mysql_connect</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote</span><span class="src-sym">,</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">utilisateur</span><span class="src-sym">,</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">pass</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a107"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>!= <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a108"></a> <a href="http://www.php.net/mysql_select_db">mysql_select_db</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">bdd_nom</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a109"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a110"></a> throw <span class="src-key">new </span><span class="src-id">Exception</span><span class="src-sym">(</span><span class="src-str">'Erreur de connexion à la base de données, vérifiez les paramètres du fichier de configuration'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a111"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a112"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a113"></a> </div></li> |
<li><div class="src-line"><a name="a114"></a> <span class="src-key">case </span><span class="src-str">'mysqli'</span>:</div></li> |
<li><div class="src-line"><a name="a115"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>= <span class="src-key">new </span><span class="src-id">mysqli</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote</span><span class="src-sym">,</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">utilisateur</span><span class="src-sym">,</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">pass</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">bdd_nom</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a116"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a117"></a> throw <span class="src-key">new </span><span class="src-id">Exception</span><span class="src-sym">(</span><span class="src-str">'Erreur de connexion à la base de données, vérifiez les paramètres du fichier de configuration'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a118"></a> <span class="src-key">return</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a119"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a120"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a121"></a> </div></li> |
<li><div class="src-line"><a name="a122"></a> <span class="src-key">case </span><span class="src-str">'sqlite3'</span>:</div></li> |
<li><div class="src-line"><a name="a123"></a> <span class="src-comm">// cas particulier de sqllite, on considère que le nom de la base de données correspond au fichier à ouvrir</span></div></li> |
<li><div class="src-line"><a name="a124"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>= <span class="src-key">new </span><span class="src-id">SQLite3</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">bdd_nom</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a125"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a126"></a> throw <span class="src-key">new </span><span class="src-id">Exception</span><span class="src-sym">(</span><span class="src-str">'Erreur de connexion à la base de données, vérifiez les paramètres du fichier de configuration'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a127"></a> <span class="src-key">return</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a128"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a129"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a130"></a> </div></li> |
<li><div class="src-line"><a name="a131"></a> <span class="src-key">default</span>:</div></li> |
<li><div class="src-line"><a name="a132"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a133"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a134"></a> </div></li> |
<li><div class="src-line"><a name="a135"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">encodage </span>!= <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a136"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Modele.html#methodrequete">requete</a><span class="src-sym">(</span><span class="src-str">"SET names '"</span>.<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">encodage</span>.<span class="src-str">"'"</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a137"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a138"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a139"></a> </div></li> |
<li><div class="src-line"><a name="a140"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a141"></a><span class="src-doc"> * Fonction qui appelle la bonne fonction pour executer une requête suivant le type de bdd.</span></div></li> |
<li><div class="src-line"><a name="a142"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a143"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">la requete à effectuer</span></div></li> |
<li><div class="src-line"><a name="a144"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">PDOStatement </span><span class="src-doc">un objet contenant le résultat de la requête</span></div></li> |
<li><div class="src-line"><a name="a145"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a146"></a> <span class="src-key">final </span><span class="src-key">protected </span><span class="src-key">function </span><a href="../Framework/Modele.html#methodrequete">requete</a><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a147"></a> <span class="src-comm">// on ne se connecte que lors du premier appel à une requete (lazy connexion)</span></div></li> |
<li><div class="src-line"><a name="a148"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a149"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">connecter</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a150"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a151"></a> </div></li> |
<li><div class="src-line"><a name="a152"></a> <span class="src-var">$retour </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a153"></a> </div></li> |
<li><div class="src-line"><a name="a154"></a> <span class="src-key">switch </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">abstraction</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a155"></a> <span class="src-key">case </span><span class="src-str">'pdo'</span>:</div></li> |
<li><div class="src-line"><a name="a156"></a> <span class="src-var">$retour </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">query</span><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a157"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a158"></a> <span class="src-key">case </span><span class="src-str">'mysql'</span>:</div></li> |
<li><div class="src-line"><a name="a159"></a> <span class="src-var">$retour </span>= <a href="http://www.php.net/mysql_query">mysql_query</a><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">,</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a160"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a161"></a> <span class="src-key">case </span><span class="src-str">'mysqli'</span>:</div></li> |
<li><div class="src-line"><a name="a162"></a> <span class="src-var">$retour </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">query</span><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a163"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a164"></a> <span class="src-key">case </span><span class="src-str">'sqlite3'</span>:</div></li> |
<li><div class="src-line"><a name="a165"></a> <span class="src-var">$retour </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">exec</span><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a166"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a167"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a168"></a> </div></li> |
<li><div class="src-line"><a name="a169"></a> <span class="src-key">return </span><span class="src-var">$retour</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a170"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a171"></a> </div></li> |
<li><div class="src-line"><a name="a172"></a> <span class="src-key">final </span><span class="src-key">protected </span><span class="src-key">function </span><a href="../Framework/Modele.html#methodrequeteUn">requeteUn</a><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">,</span><span class="src-var">$mode </span>= <span class="src-str">'ASSOC'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a173"></a> <span class="src-comm">// Connection seulement lors du premier appel à une requete (lazy connexion)</span></div></li> |
<li><div class="src-line"><a name="a174"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a175"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">connecter</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a176"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a177"></a> </div></li> |
<li><div class="src-line"><a name="a178"></a> <span class="src-var">$retour </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a179"></a> <span class="src-key">switch </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">abstraction</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a180"></a> <span class="src-key">case </span><span class="src-str">'pdo'</span>:</div></li> |
<li><div class="src-line"><a name="a181"></a> <span class="src-var">$res_req </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">query</span><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a182"></a> <span class="src-var">$retour </span>=<span class="src-var">$res_req</span><span class="src-sym">-></span><span class="src-id">fetch</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$mode</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a183"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a184"></a> <span class="src-key">case </span><span class="src-str">'mysql'</span>:</div></li> |
<li><div class="src-line"><a name="a185"></a> <span class="src-var">$res </span>= <a href="http://www.php.net/mysql_query">mysql_query</a><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">,</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a186"></a> <span class="src-var">$fonction_fetch </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$mode</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a187"></a> <span class="src-var">$retour </span>= <span class="src-var">$fonction_fetch</span><span class="src-sym">(</span><span class="src-var">$res</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a188"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a189"></a> <span class="src-key">case </span><span class="src-str">'mysqli'</span>:</div></li> |
<li><div class="src-line"><a name="a190"></a> <span class="src-var">$res </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">query</span><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a191"></a> <span class="src-var">$fonction_fetch </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$mode</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a192"></a> <span class="src-var">$retour </span>= <span class="src-var">$res</span><span class="src-sym">-></span><span class="src-var">$fonction_fetch</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a193"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a194"></a> <span class="src-key">case </span><span class="src-str">'sqlite3'</span>:</div></li> |
<li><div class="src-line"><a name="a195"></a> <span class="src-var">$retour </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">querySingle</span><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a196"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a197"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a198"></a> </div></li> |
<li><div class="src-line"><a name="a199"></a> <span class="src-key">return </span><span class="src-var">$retour</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a200"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a201"></a> </div></li> |
<li><div class="src-line"><a name="a202"></a> </div></li> |
<li><div class="src-line"><a name="a203"></a> <span class="src-key">final </span><span class="src-key">protected </span><span class="src-key">function </span><a href="../Framework/Modele.html#methodrequeteTous">requeteTous</a><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">,</span><span class="src-var">$mode </span>= <span class="src-str">'ASSOC'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a204"></a> <span class="src-comm">// Connexion seulement lors du premier appel à une requete (lazy connexion)</span></div></li> |
<li><div class="src-line"><a name="a205"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a206"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">connecter</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a207"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a208"></a> </div></li> |
<li><div class="src-line"><a name="a209"></a> <span class="src-var">$retour </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a210"></a> </div></li> |
<li><div class="src-line"><a name="a211"></a> <span class="src-key">switch </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">abstraction</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a212"></a> <span class="src-key">case </span><span class="src-str">'pdo'</span>:</div></li> |
<li><div class="src-line"><a name="a213"></a> try <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a214"></a> <span class="src-var">$res_req </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">query</span><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a215"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$res_req </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a216"></a> <span class="src-var">$retour </span>= <span class="src-var">$res_req</span><span class="src-sym">-></span><span class="src-id">fetchAll</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$mode</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a217"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a218"></a> <span class="src-var">$retour </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a219"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a220"></a> <span class="src-sym">} </span>catch <span class="src-sym">(</span><span class="src-id">PDOException </span><span class="src-var">$e</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a221"></a> <span class="src-var">$message </span>= <span class="src-str">'Requête echec. Fichier : "%s". Ligne : "%s". Message : %s'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a222"></a> <a href="http://www.php.net/trigger_error">trigger_error</a><span class="src-sym">(</span><a href="http://www.php.net/sprintf">sprintf</a><span class="src-sym">(</span><span class="src-var">$message</span><span class="src-sym">, </span><span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getFile</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getLine</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getMessage</span><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">, </span><span class="src-id">E_USER_WARNING</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a223"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a224"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a225"></a> <span class="src-key">case </span><span class="src-str">'mysql'</span>:</div></li> |
<li><div class="src-line"><a name="a226"></a> <span class="src-var">$res </span>= <a href="http://www.php.net/mysql_query">mysql_query</a><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a227"></a> <span class="src-var">$fonction_fetch </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$mode</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a228"></a> <span class="src-key">while </span><span class="src-sym">(</span><span class="src-var">$ligne </span>= <span class="src-var">$fonction_fetch</span><span class="src-sym">(</span><span class="src-var">$res</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a229"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$ligne</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a230"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a231"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a232"></a> <span class="src-key">case </span><span class="src-str">'mysqli'</span>:</div></li> |
<li><div class="src-line"><a name="a233"></a> <span class="src-var">$res </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">query</span><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a234"></a> <span class="src-var">$function_fetch </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$mode</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a235"></a> <span class="src-key">while </span><span class="src-sym">(</span><span class="src-var">$ligne </span>= <span class="src-var">$res</span><span class="src-sym">-></span><span class="src-var">$function_fetch</span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a236"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$ligne</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a237"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a238"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a239"></a> <span class="src-key">case </span><span class="src-str">'sqlite3'</span>:</div></li> |
<li><div class="src-line"><a name="a240"></a> <span class="src-var">$res </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">query</span><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a241"></a> <span class="src-key">while </span><span class="src-sym">(</span><span class="src-var">$ligne </span>= <span class="src-var">$res</span><span class="src-sym">-></span><span class="src-id">fetch_array</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">ASSOC</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a242"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$mode </span>== <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">ASSOC</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a243"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$ligne</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a244"></a> <span class="src-sym">} </span><span class="src-key">elseif </span><span class="src-sym">(</span><span class="src-var">$mode </span>== <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">OBJECT</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a245"></a> <span class="src-comm">// cas particulier de sqllite</span></div></li> |
<li><div class="src-line"><a name="a246"></a> <span class="src-comm">// qui n'a pas de fonction fetch_object</span></div></li> |
<li><div class="src-line"><a name="a247"></a> <span class="src-var">$ligneObjet </span>= <span class="src-key">new </span><span class="src-id">stdClass</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a248"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$ligne </span><span class="src-key">as </span><span class="src-var">$colonne </span>=> <span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a249"></a> <span class="src-var">$ligneObjet</span><span class="src-sym">-></span><span class="src-var">$colonne </span>= <span class="src-var">$valeur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a250"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a251"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$ligneObjet</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a252"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a253"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a254"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a255"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a256"></a> </div></li> |
<li><div class="src-line"><a name="a257"></a> <span class="src-key">return </span><span class="src-var">$retour</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a258"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a259"></a> </div></li> |
<li><div class="src-line"><a name="a260"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a261"></a><span class="src-doc"> * protège une chaine de caractères avant l'insertion dans la base de données</span></div></li> |
<li><div class="src-line"><a name="a262"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a263"></a> <span class="src-key">final </span><span class="src-key">protected </span><span class="src-key">function </span><a href="../Framework/Modele.html#methodproteger">proteger</a><span class="src-sym">(</span><span class="src-var">$chaine</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a264"></a> </div></li> |
<li><div class="src-line"><a name="a265"></a> <span class="src-comm">// on ne se connecte que lors du premier appel à une requete</span></div></li> |
<li><div class="src-line"><a name="a266"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a267"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">connecter</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a268"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a269"></a> </div></li> |
<li><div class="src-line"><a name="a270"></a> <span class="src-var">$retour </span>= <span class="src-var">$chaine</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a271"></a> </div></li> |
<li><div class="src-line"><a name="a272"></a> <span class="src-key">switch </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">abstraction</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a273"></a> <span class="src-key">case </span><span class="src-str">'pdo'</span>:</div></li> |
<li><div class="src-line"><a name="a274"></a> <span class="src-var">$retour </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">quote</span><span class="src-sym">(</span><span class="src-var">$chaine</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a275"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a276"></a> <span class="src-key">case </span><span class="src-str">'mysql'</span>:</div></li> |
<li><div class="src-line"><a name="a277"></a> <span class="src-var">$retour </span>= <span class="src-str">'"'</span>.<a href="http://www.php.net/mysql_real_escape_string">mysql_real_escape_string</a><span class="src-sym">(</span><span class="src-var">$chaine</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">)</span>.<span class="src-str">'"'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a278"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a279"></a> <span class="src-key">case </span><span class="src-str">'mysqli'</span>:</div></li> |
<li><div class="src-line"><a name="a280"></a> <span class="src-var">$retour </span>= <span class="src-str">'"'</span>.<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">real_escape_string</span><span class="src-sym">(</span><span class="src-var">$chaine</span><span class="src-sym">)</span>.<span class="src-str">'"'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a281"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a282"></a> <span class="src-key">case </span><span class="src-str">'sqlite3'</span>:</div></li> |
<li><div class="src-line"><a name="a283"></a> <span class="src-var">$retour </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">escapeString</span><span class="src-sym">(</span><span class="src-var">$chaine</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a284"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a285"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a286"></a> </div></li> |
<li><div class="src-line"><a name="a287"></a> <span class="src-key">return </span><span class="src-var">$retour</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a288"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a289"></a> </div></li> |
<li><div class="src-line"><a name="a290"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a291"></a><span class="src-doc"> * initialise les constantes de classe à leur bonne valeur</span></div></li> |
<li><div class="src-line"><a name="a292"></a><span class="src-doc"> * et lance une exception si le protocole n'est pas bien défini</span></div></li> |
<li><div class="src-line"><a name="a293"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@throws</span><span class="src-doc"> Exception</span></div></li> |
<li><div class="src-line"><a name="a294"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a295"></a> <span class="src-key">final </span><span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Modele.html#methodinitialiserProtocole">initialiserProtocole</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a296"></a> </div></li> |
<li><div class="src-line"><a name="a297"></a> <span class="src-key">switch </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">abstraction</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a298"></a> <span class="src-key">case </span><span class="src-str">'pdo'</span>:</div></li> |
<li><div class="src-line"><a name="a299"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">ASSOC </span>= <span class="src-id">PDO</span><span class="src-sym">::</span><span class="src-id">FETCH_ASSOC</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a300"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">OBJECT </span>= <span class="src-id">PDO</span><span class="src-sym">::</span><span class="src-id">FETCH_CLASS</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a301"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a302"></a> <span class="src-key">case </span><span class="src-str">'mysql'</span>:</div></li> |
<li><div class="src-line"><a name="a303"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">ASSOC </span>= <span class="src-str">'mysql_fetch_assoc'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a304"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">OBJECT </span>= <span class="src-str">'mysql_fetch_object'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a305"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a306"></a> <span class="src-key">case </span><span class="src-str">'mysqli'</span>:</div></li> |
<li><div class="src-line"><a name="a307"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">ASSOC </span>= <span class="src-str">'fetch_assoc'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a308"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">OBJECT </span>= <span class="src-str">'fetch_object'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a309"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a310"></a> <span class="src-key">case </span><span class="src-str">'sqlite3'</span>:</div></li> |
<li><div class="src-line"><a name="a311"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">ASSOC </span>= <span class="src-str">'SQLITE3_ASSOC'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a312"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">OBJECT </span>= <span class="src-str">'SQLITE3_OBJECT'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a313"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a314"></a> <span class="src-key">default</span>:</div></li> |
<li><div class="src-line"><a name="a315"></a> throw <span class="src-key">new </span><span class="src-id">Exception</span><span class="src-sym">(</span><span class="src-str">'Erreur : l\'abstraction '</span>.<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">abstraction</span>.<span class="src-str">' n\'est pas prise en charge'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a316"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a317"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a318"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a319"></a> </div></li> |
<li><div class="src-line"><a name="a320"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a321"></a><span class="src-doc"> * Destructeur de classe, se contente de fermer explicitement la connexion</span></div></li> |
<li><div class="src-line"><a name="a322"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a323"></a> <span class="src-key">final </span><span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Modele.html#method__destruct">__destruct</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a324"></a> <span class="src-key">switch </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">abstraction</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a325"></a> <span class="src-key">case </span><span class="src-str">'pdo'</span>:</div></li> |
<li><div class="src-line"><a name="a326"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a327"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a328"></a> <span class="src-key">case </span><span class="src-str">'mysql'</span>:</div></li> |
<li><div class="src-line"><a name="a329"></a> <span class="src-key">return </span><a href="http://www.php.net/mysql_close">mysql_close</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a330"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a331"></a> <span class="src-key">case </span><span class="src-str">'mysqli'</span>:</div></li> |
<li><div class="src-line"><a name="a332"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">close</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a333"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a334"></a> <span class="src-key">case </span><span class="src-str">'sqlite3'</span>:</div></li> |
<li><div class="src-line"><a name="a335"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">close</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a336"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a337"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a338"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a339"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a340"></a><span class="src-php">?></span></div></li> |
</ol></div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:25 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</body> |
</html> |
/trunk/doc/HTMLframesConverter/__filesource/fsource_Framework__Debug.php.html |
---|
New file |
0,0 → 1,141 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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>File Source for Debug.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" href="../media/stylesheet.css" /> |
</head> |
<body> |
<h1>Source for file Debug.php</h1> |
<p>Documentation is available at <a href="../Framework/_Debug.php.html">Debug.php</a></p> |
<div class="src-code"> |
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Classe fournissant des fonctions de débogage équivalante à var_dump et print_r.</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> * L'affichage et l'utilisation de ces fonctions sont améliorés via cette classe.</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> * Cette classe est inspirée de la classe Zend_Debug.</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> * PHP version 5</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> Debogage</span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> // Auteur principal :</span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> // Autres auteurs :</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> GPL v3 <http://www.gnu.org/licenses/gpl.txt></span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt></span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> $$Id: Debug.php 153 2010-03-04 10:48:32Z jpm $$</span></div></li> |
<li><div class="src-line"><a name="a18"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 1999-2009 Tela Botanica (accueil@tela-botanica.org)</span></div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a20"></a><span class="src-key">class </span><a href="../Framework/Debug.html">Debug</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a21"></a> </div></li> |
<li><div class="src-line"><a name="a22"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a23"></a><span class="src-doc"> * mode de php (cli ou sapi)</span></div></li> |
<li><div class="src-line"><a name="a24"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a25"></a> <span class="src-key">protected </span><span class="src-key">static </span><span class="src-var">$mode </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a26"></a> </div></li> |
<li><div class="src-line"><a name="a27"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a28"></a><span class="src-doc"> * Accesseur pour le mode</span></div></li> |
<li><div class="src-line"><a name="a29"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">le mode de php</span></div></li> |
<li><div class="src-line"><a name="a30"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a31"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Debug.html#methodgetMode">getMode</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a32"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$mode </span>=== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a33"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$mode </span>= <span class="src-id">PHP_SAPI</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a35"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$mode</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a36"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a37"></a> </div></li> |
<li><div class="src-line"><a name="a38"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a39"></a><span class="src-doc"> * Equivalent de var_dump</span></div></li> |
<li><div class="src-line"><a name="a40"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">mixed </span><span class="src-doc-var">$variable </span><span class="src-doc">la variable à dumper</span></div></li> |
<li><div class="src-line"><a name="a41"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$mot_cle </span><span class="src-doc">le mot cle à associer à la variable</span></div></li> |
<li><div class="src-line"><a name="a42"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc-var">$echo </span><span class="src-doc">si true on affiche le résultat, si false on ne renvoie que la chaine sans l'afficher</span></div></li> |
<li><div class="src-line"><a name="a43"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">la chaine à afficher representant le dump ou null si echo</span></div></li> |
<li><div class="src-line"><a name="a44"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a45"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Debug.html#methoddump">dump</a><span class="src-sym">(</span><span class="src-var">$variable</span><span class="src-sym">, </span><span class="src-var">$mot_cle </span>= <span class="src-id">null</span><span class="src-sym">, </span><span class="src-var">$echo </span>= <span class="src-id">true</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a46"></a> <span class="src-comm">// var_dump de la variable dans un buffer et récupération de la sortie</span></div></li> |
<li><div class="src-line"><a name="a47"></a> <span class="src-id">ob_start</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a48"></a> <a href="http://www.php.net/var_dump">var_dump</a><span class="src-sym">(</span><span class="src-var">$variable</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a49"></a> <span class="src-var">$sortie </span>= <a href="http://www.php.net/ob_get_clean">ob_get_clean</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a50"></a> </div></li> |
<li><div class="src-line"><a name="a51"></a> <span class="src-comm">// Pré-traitement de la sortie</span></div></li> |
<li><div class="src-line"><a name="a52"></a> <span class="src-var">$sortie </span>= <a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span><span class="src-str">"/\]\=\>\n(\s+)/m"</span><span class="src-sym">, </span><span class="src-str">"] => "</span><span class="src-sym">, </span><span class="src-var">$sortie</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a53"></a> </div></li> |
<li><div class="src-line"><a name="a54"></a> <span class="src-comm">// Traitement général du débogage</span></div></li> |
<li><div class="src-line"><a name="a55"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">traiterDebogage</span><span class="src-sym">(</span><span class="src-var">$mot_cle</span><span class="src-sym">, </span><span class="src-var">$sortie</span><span class="src-sym">, </span><span class="src-var">$echo</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a56"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a57"></a> </div></li> |
<li><div class="src-line"><a name="a58"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a59"></a><span class="src-doc"> * Equivalent de print_r</span></div></li> |
<li><div class="src-line"><a name="a60"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">mixed </span><span class="src-doc-var">$variable </span><span class="src-doc">la variable à afficher</span></div></li> |
<li><div class="src-line"><a name="a61"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$mot_cle </span><span class="src-doc">le mot cle à associer</span></div></li> |
<li><div class="src-line"><a name="a62"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc-var">$echo </span><span class="src-doc">faire un echo ou non</span></div></li> |
<li><div class="src-line"><a name="a63"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">la chaine contenant la variable printée ou null si echo</span></div></li> |
<li><div class="src-line"><a name="a64"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a65"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Debug.html#methodprintr">printr</a><span class="src-sym">(</span><span class="src-var">$variable</span><span class="src-sym">, </span><span class="src-var">$mot_cle </span>= <span class="src-id">null</span><span class="src-sym">, </span><span class="src-var">$echo </span>= <span class="src-id">true</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a66"></a> <span class="src-comm">// Récupération de la sortie</span></div></li> |
<li><div class="src-line"><a name="a67"></a> <span class="src-var">$sortie </span>= <a href="http://www.php.net/print_r">print_r</a><span class="src-sym">(</span><span class="src-var">$variable</span><span class="src-sym">, </span><span class="src-id">true</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a68"></a> </div></li> |
<li><div class="src-line"><a name="a69"></a> <span class="src-comm">// Traitement général du débogage</span></div></li> |
<li><div class="src-line"><a name="a70"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">traiterDebogage</span><span class="src-sym">(</span><span class="src-var">$mot_cle</span><span class="src-sym">, </span><span class="src-var">$sortie</span><span class="src-sym">, </span><span class="src-var">$echo</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a71"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a72"></a> </div></li> |
<li><div class="src-line"><a name="a73"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a74"></a><span class="src-doc"> * Traite une chaine de débogage et les mots clés associés</span></div></li> |
<li><div class="src-line"><a name="a75"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc"> </span><span class="src-doc-var">$mot_cle </span><span class="src-doc">le mot à associer à la chaine</span></div></li> |
<li><div class="src-line"><a name="a76"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc"> </span><span class="src-doc-var">$sortie </span><span class="src-doc">le chaine de debogage</span></div></li> |
<li><div class="src-line"><a name="a77"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc-var">$echo </span><span class="src-doc">faire un echo du resultat ou non</span></div></li> |
<li><div class="src-line"><a name="a78"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">la chaine de debogage formatée ou bien null si echo</span></div></li> |
<li><div class="src-line"><a name="a79"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a80"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">traiterDebogage</span><span class="src-sym">(</span><span class="src-var">$mot_cle</span><span class="src-sym">, </span><span class="src-var">$sortie</span><span class="src-sym">, </span><span class="src-var">$echo</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a81"></a> <span class="src-comm">// Formate le mot-clé</span></div></li> |
<li><div class="src-line"><a name="a82"></a> <span class="src-var">$mot_cle </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">formaterMotCle</span><span class="src-sym">(</span><span class="src-var">$mot_cle</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a83"></a> </div></li> |
<li><div class="src-line"><a name="a84"></a> <span class="src-comm">// Traitement de la sortie</span></div></li> |
<li><div class="src-line"><a name="a85"></a> <span class="src-var">$sortie </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">traiterSortieSuivantMode</span><span class="src-sym">(</span><span class="src-var">$mot_cle</span><span class="src-sym">, </span><span class="src-var">$sortie</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a86"></a> </div></li> |
<li><div class="src-line"><a name="a87"></a> <span class="src-comm">// Affichage et/ou retour</span></div></li> |
<li><div class="src-line"><a name="a88"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$echo</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a89"></a> echo <span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a90"></a> <span class="src-key">return </span><span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a91"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a92"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a93"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a94"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a95"></a> </div></li> |
<li><div class="src-line"><a name="a96"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a97"></a><span class="src-doc"> * formate un mot clé donné</span></div></li> |
<li><div class="src-line"><a name="a98"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$mot_cle </span><span class="src-doc">le mot clé à formaté</span></div></li> |
<li><div class="src-line"><a name="a99"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">le mot clé formaté ou bien un chaine vide le mot clé est null ou vide</span></div></li> |
<li><div class="src-line"><a name="a100"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a101"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">formaterMotCle</span><span class="src-sym">(</span><span class="src-var">$mot_cle</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a102"></a> <span class="src-key">return </span><span class="src-sym">(</span><span class="src-var">$mot_cle </span>=== <span class="src-id">null</span><span class="src-sym">) </span>? <span class="src-str">'' </span>: <a href="http://www.php.net/rtrim">rtrim</a><span class="src-sym">(</span><span class="src-var">$mot_cle</span><span class="src-sym">)</span>.<span class="src-str">' '</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a103"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a104"></a> </div></li> |
<li><div class="src-line"><a name="a105"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a106"></a><span class="src-doc"> * traite la sortie de la chaine de débogage suivant le mode de php</span></div></li> |
<li><div class="src-line"><a name="a107"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$mot_cle </span><span class="src-doc">le mot clé associé à la chaine</span></div></li> |
<li><div class="src-line"><a name="a108"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc"> </span><span class="src-doc-var">$sortie </span><span class="src-doc">la chaine de débogage</span></div></li> |
<li><div class="src-line"><a name="a109"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">la sortie formatée pour le mode en cours</span></div></li> |
<li><div class="src-line"><a name="a110"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a111"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">traiterSortieSuivantMode</span><span class="src-sym">(</span><span class="src-var">$mot_cle</span><span class="src-sym">, </span><span class="src-var">$sortie</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a112"></a> <span class="src-var">$corps </span>= <span class="src-var">$mot_cle</span>.<span class="src-id">PHP_EOL</span>.<span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a113"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getMode</span><span class="src-sym">(</span><span class="src-sym">) </span>== <span class="src-str">'cli'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a114"></a> <span class="src-var">$sortie </span>= <span class="src-id">PHP_EOL</span>.<span class="src-var">$corps</span>.<span class="src-id">PHP_EOL</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a115"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a116"></a> <span class="src-var">$sortie </span>= <span class="src-str">'<pre>'</span>.<span class="src-var">$corps</span>.<span class="src-str">'</pre>'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a117"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a118"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a119"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a120"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a121"></a><span class="src-php">?></span></div></li> |
</ol></div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:21 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</body> |
</html> |
/trunk/doc/HTMLframesConverter/__filesource/fsource_Framework__GestionnaireException.php.html |
---|
New file |
0,0 → 1,206 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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>File Source for GestionnaireException.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" href="../media/stylesheet.css" /> |
</head> |
<body> |
<h1>Source for file GestionnaireException.php</h1> |
<p>Documentation is available at <a href="../Framework/_GestionnaireException.php.html">GestionnaireException.php</a></p> |
<div class="src-code"> |
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Classe de gestion des exceptions.</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> * C'est un Singleton.</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> * PHP Version 5</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> Class</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> aurelien <aurelien@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2009 Tela-Botanica</span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL</span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.gnu.org/licenses/gpl.html Licence GNU-GPL</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> SVN: $$Id: GestionnaireException.php 158 2010-03-04 17:14:36Z jpm $$</span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a18"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-key">class </span><a href="../Framework/GestionnaireException.html">GestionnaireException</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a20"></a> </div></li> |
<li><div class="src-line"><a name="a21"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a22"></a><span class="src-doc"> * Liste des exceptions enregistrées</span></div></li> |
<li><div class="src-line"><a name="a23"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a24"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$exceptions </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a25"></a> </div></li> |
<li><div class="src-line"><a name="a26"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a27"></a><span class="src-doc"> * Détermine si l'on affiche ou non le contexte</span></div></li> |
<li><div class="src-line"><a name="a28"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a29"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$contexte </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a30"></a> </div></li> |
<li><div class="src-line"><a name="a31"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a32"></a><span class="src-doc"> * Détermine si l'on loggue ou non les erreurs</span></div></li> |
<li><div class="src-line"><a name="a33"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$logger </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a35"></a> </div></li> |
<li><div class="src-line"><a name="a36"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a37"></a><span class="src-doc"> * Definit si php est lancé en ligne de commande ou en mode serveur</span></div></li> |
<li><div class="src-line"><a name="a38"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a39"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$mode </span>= <span class="src-id">php_sapi_name </span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a40"></a> </div></li> |
<li><div class="src-line"><a name="a41"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a42"></a><span class="src-doc"> * le gestionnaire d'exception est un singleton</span></div></li> |
<li><div class="src-line"><a name="a43"></a><span class="src-doc"> * et possède donc un "pointeur statique sur lui-même"</span></div></li> |
<li><div class="src-line"><a name="a44"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a45"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$gestionnaireException</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a46"></a> </div></li> |
<li><div class="src-line"><a name="a47"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a48"></a><span class="src-doc"> * Constructeur avec paramètres optionnel</span></div></li> |
<li><div class="src-line"><a name="a49"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">bool </span><span class="src-doc">indique si l'on veut afficher ou non le contexte des exceptions (i.e. la trace)</span></div></li> |
<li><div class="src-line"><a name="a50"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a51"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/GestionnaireException.html#method__construct">__construct</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a52"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$exceptions </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a53"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$contexte </span>= <span class="src-id">Config</span><span class="src-sym">::</span><span class="src-id">get</span><span class="src-sym">(</span><span class="src-str">'fw_debogage_contexte'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a54"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$logger </span>= <span class="src-id">Config</span><span class="src-sym">::</span><span class="src-id">get</span><span class="src-sym">(</span><span class="src-str">'fw_log_debogage'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a55"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$mode </span>= <span class="src-id">php_sapi_name</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a56"></a> </div></li> |
<li><div class="src-line"><a name="a57"></a> <a href="http://www.php.net/set_exception_handler">set_exception_handler</a><span class="src-sym">(</span><span class="src-key">array</span><span class="src-sym">(</span><a href="http://www.php.net/get_class">get_class</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">)</span><span class="src-sym">,</span><span class="src-str">'gererException'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a58"></a> <a href="http://www.php.net/set_error_handler">set_error_handler</a><span class="src-sym">(</span><span class="src-key">array</span><span class="src-sym">(</span><a href="http://www.php.net/get_class">get_class</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">)</span><span class="src-sym">,</span><span class="src-str">'gererErreur'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a59"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a60"></a> </div></li> |
<li><div class="src-line"><a name="a61"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a62"></a><span class="src-doc"> * Renvoie le booleen définissant si l'on affiche le contexte ou non</span></div></li> |
<li><div class="src-line"><a name="a63"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a64"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/GestionnaireException.html#methodgetContexte">getContexte</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a65"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$contexte</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a66"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a67"></a> </div></li> |
<li><div class="src-line"><a name="a68"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a69"></a><span class="src-doc"> * Definit si l'on veut afficher le contexte ou non</span></div></li> |
<li><div class="src-line"><a name="a70"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">bool </span><span class="src-doc">true si on veut afficher le contexte, false sinon, par défaut vaut false</span></div></li> |
<li><div class="src-line"><a name="a71"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a72"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/GestionnaireException.html#methodsetContexte">setContexte</a><span class="src-sym">(</span><span class="src-var">$contexte</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a73"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$contexte </span>= <span class="src-var">$contexte</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a74"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a75"></a> </div></li> |
<li><div class="src-line"><a name="a76"></a> <span class="src-doc">/** Fonction d'accès au singleton</span></div></li> |
<li><div class="src-line"><a name="a77"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">GestionnaireErreur </span><span class="src-doc">le gestionnaire d'exceptions courant</span></div></li> |
<li><div class="src-line"><a name="a78"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a79"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/GestionnaireException.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a80"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$gestionnaireException </span>instanceof <span class="src-id">GestionnaireException</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a81"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$gestionnaireException</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a82"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a83"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$gestionnaireException </span>= <span class="src-key">new </span><span class="src-id">GestionnaireException</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a84"></a> </div></li> |
<li><div class="src-line"><a name="a85"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$gestionnaireException</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a86"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a87"></a> </div></li> |
<li><div class="src-line"><a name="a88"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a89"></a><span class="src-doc"> * Fonction de gestion des exceptions, remplace le handler par défaut</span></div></li> |
<li><div class="src-line"><a name="a90"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">Exception </span><span class="src-doc-var">$e </span><span class="src-doc">l'exception à traiter</span></div></li> |
<li><div class="src-line"><a name="a91"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a92"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/GestionnaireException.html#methodgererException">gererException</a><span class="src-sym">(</span><span class="src-id">Exception </span><span class="src-var">$e</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a93"></a> <span class="src-comm">// pour le moment on se contente de l'ajouter au tableau et de les afficher</span></div></li> |
<li><div class="src-line"><a name="a94"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$exceptions</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$e</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a95"></a> </div></li> |
<li><div class="src-line"><a name="a96"></a> <span class="src-comm">// si on doit logger on envoie l'exception au loggeur</span></div></li> |
<li><div class="src-line"><a name="a97"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$logger</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a98"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">loggerException</span><span class="src-sym">(</span><span class="src-var">$e</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a99"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a100"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a101"></a> </div></li> |
<li><div class="src-line"><a name="a102"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a103"></a><span class="src-doc"> * Gère les erreurs en les convertissant en exceptions (remplace la fonction gestion d'erreurs native de php)</span></div></li> |
<li><div class="src-line"><a name="a104"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc-var">$niveau </span><span class="src-doc">le niveau de l'erreur</span></div></li> |
<li><div class="src-line"><a name="a105"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$message </span><span class="src-doc">le message associé à l'erreur</span></div></li> |
<li><div class="src-line"><a name="a106"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$fichier </span><span class="src-doc">le nom du fichier où l'erreur s'est produite</span></div></li> |
<li><div class="src-line"><a name="a107"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc-var">$ligne </span><span class="src-doc">la ligne où l'erreur s'est produite</span></div></li> |
<li><div class="src-line"><a name="a108"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$contexte </span><span class="src-doc">le contexte associé à l'erreur</span></div></li> |
<li><div class="src-line"><a name="a109"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a110"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/GestionnaireException.html#methodgererErreur">gererErreur</a><span class="src-sym">(</span><span class="src-var">$niveau</span><span class="src-sym">, </span><span class="src-var">$message</span><span class="src-sym">, </span><span class="src-var">$fichier</span><span class="src-sym">, </span><span class="src-var">$ligne</span><span class="src-sym">, </span><span class="src-var">$contexte</span><span class="src-sym">)</span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a111"></a> <span class="src-comm">// si aucun rapport d'erreur, on sort directement</span></div></li> |
<li><div class="src-line"><a name="a112"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/error_reporting">error_reporting</a><span class="src-sym">(</span><span class="src-sym">) </span>== <span class="src-num">0</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a113"></a> <span class="src-key">return</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a114"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a115"></a> </div></li> |
<li><div class="src-line"><a name="a116"></a> <span class="src-comm">// sinon on crée une exception</span></div></li> |
<li><div class="src-line"><a name="a117"></a> <span class="src-var">$e </span>= <span class="src-key">new </span><span class="src-id">ErrorException</span><span class="src-sym">(</span><span class="src-var">$message</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-var">$niveau</span><span class="src-sym">, </span><span class="src-var">$fichier</span><span class="src-sym">, </span><span class="src-var">$ligne</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a118"></a> <span class="src-comm">// que l'on donne au tableau d'exceptions</span></div></li> |
<li><div class="src-line"><a name="a119"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$exceptions</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$e</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a120"></a> <span class="src-comm">// on la logge si nécéssaire</span></div></li> |
<li><div class="src-line"><a name="a121"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$logger</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a122"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">loggerException</span><span class="src-sym">(</span><span class="src-var">$e</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a123"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a124"></a> <span class="src-key">return</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a125"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a126"></a> </div></li> |
<li><div class="src-line"><a name="a127"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a128"></a><span class="src-doc"> * Renvoie les exceptions au format (X)HTML</span></div></li> |
<li><div class="src-line"><a name="a129"></a><span class="src-doc"> * ou bien au format texte suivant le mode d'utilisation de PHP</span></div></li> |
<li><div class="src-line"><a name="a130"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a131"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/GestionnaireException.html#methodgetExceptions">getExceptions</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a132"></a> <span class="src-var">$retour </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a133"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$exceptions </span><span class="src-key">as </span><span class="src-var">$cle </span>=> <span class="src-var">$e</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a134"></a> <span class="src-key">switch </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$mode</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a135"></a> <span class="src-key">case </span><span class="src-str">'cli' </span>:</div></li> |
<li><div class="src-line"><a name="a136"></a> <span class="src-var">$retour </span>.= <span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getMessage</span><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a137"></a> <span class="src-var">$retour </span>.= <span class="src-str">'Fichier : '</span>.<span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getFile</span><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a138"></a> <span class="src-var">$retour </span>.= <span class="src-str">'Ligne : '</span>.<span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getLine</span><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a139"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getContexte</span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a140"></a> <span class="src-var">$retour </span>.= <span class="src-str">'Contexte : '</span>.<span class="src-str">"\n"</span>.<a href="http://www.php.net/print_r">print_r</a><span class="src-sym">(</span><span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getTraceAsString</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-id">true</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a141"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a142"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a143"></a> <span class="src-key">default</span>:</div></li> |
<li><div class="src-line"><a name="a144"></a> <span class="src-var">$retour </span>.= <span class="src-str">'<pre class="debogage">'</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a145"></a> <span class="src-var">$retour </span>.= <span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getMessage</span><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a146"></a> <span class="src-var">$retour </span>.= <span class="src-str">'<span class="debogage_fichier">'</span>.<span class="src-str">'Fichier : '</span>.<span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getFile</span><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">'</span>'</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a147"></a> <span class="src-var">$retour </span>.= <span class="src-str">'<span class="debogage_ligne">'</span>.<span class="src-str">'Ligne : '</span>.<span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getLine</span><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">'</span>'</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a148"></a> <span class="src-var">$retour </span>.= <span class="src-str">'</pre>'</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a149"></a> </div></li> |
<li><div class="src-line"><a name="a150"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getContexte</span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a151"></a> <span class="src-var">$retour </span>.= <span class="src-str">'<pre>'</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a152"></a> <span class="src-var">$retour </span>.= <span class="src-str">'<strong>Contexte : </strong>'</span>.<span class="src-str">"\n"</span>.<a href="http://www.php.net/print_r">print_r</a><span class="src-sym">(</span><span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getTraceAsString</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-id">true</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a153"></a> <span class="src-var">$retour </span>.= <span class="src-str">'</pre>'</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a154"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a155"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a156"></a> <span class="src-comm">// Nous vidons le tableau des exceptions au fur et à mesure</span></div></li> |
<li><div class="src-line"><a name="a157"></a> unset<span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$exceptions</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a158"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a159"></a> <span class="src-key">return </span><span class="src-var">$retour</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a160"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a161"></a> </div></li> |
<li><div class="src-line"><a name="a162"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a163"></a><span class="src-doc"> * logge une exception donnée sous une forme lisible</span></div></li> |
<li><div class="src-line"><a name="a164"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">Exception </span><span class="src-doc"> </span><span class="src-doc-var">$e </span><span class="src-doc">l'exception à logger</span></div></li> |
<li><div class="src-line"><a name="a165"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a166"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">loggerException</span><span class="src-sym">(</span><span class="src-var">$e</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a167"></a> <span class="src-var">$erreur </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a168"></a> <span class="src-var">$erreur </span>.= <span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getMessage</span><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a169"></a> <span class="src-var">$erreur </span>.= <span class="src-str">'Fichier : '</span>.<span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getFile</span><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a170"></a> <span class="src-var">$erreur </span>.= <span class="src-str">'Ligne : '</span>.<span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getLine</span><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a171"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getContexte</span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a172"></a> <span class="src-var">$erreur </span>.= <span class="src-str">'Contexte : '</span>.<span class="src-str">"\n"</span>.<a href="http://www.php.net/print_r">print_r</a><span class="src-sym">(</span><span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getTraceAsString</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-id">true</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a173"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a174"></a> <span class="src-var">$erreur </span>.= <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a175"></a> <span class="src-id"><a href="../Framework/Log.html">Log</a></span><span class="src-sym">::</span><a href="../Framework/Log.html#methodajouterEntree">ajouterEntree</a><span class="src-sym">(</span><span class="src-str">'erreurs'</span><span class="src-sym">,</span><span class="src-var">$erreur</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a176"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a177"></a> </div></li> |
<li><div class="src-line"><a name="a178"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/GestionnaireException.html#method__destruct">__destruct</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a179"></a> <span class="src-comm">// Si des erreurs n'ont pas été affichée nous forçons leur affichage</span></div></li> |
<li><div class="src-line"><a name="a180"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/count">count</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$exceptions</span><span class="src-sym">) </span>> <span class="src-num">0</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a181"></a> echo <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getExceptions</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a182"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a183"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a184"></a> </div></li> |
<li><div class="src-line"><a name="a185"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a186"></a><span class="src-php">?></span></div></li> |
</ol></div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:23 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</body> |
</html> |
/trunk/doc/HTMLframesConverter/__filesource/fsource_Framework__Controleur.php.html |
---|
New file |
0,0 → 1,133 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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>File Source for Controleur.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" href="../media/stylesheet.css" /> |
</head> |
<body> |
<h1>Source for file Controleur.php</h1> |
<p>Documentation is available at <a href="../Framework/_Controleur.php.html">Controleur.php</a></p> |
<div class="src-code"> |
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Classe Controleur, coeur d'une application, c'est normalement la seule classe d'une application</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> * qui devrait être appelée de l'extérieur.</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> * Elle est abstraite donc doit obligatoirement être étendue.</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> php5</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Aurélien PERONNET <aurelien@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2009 Tela-Botanica</span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL</span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.gnu.org/licenses/gpl.html Licence GNU-GPL</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> SVN: $$Id: Controleur.php 158 2010-03-04 17:14:36Z jpm $$</span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a18"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-key">abstract </span><span class="src-key">class </span><a href="../Framework/Controleur.html">Controleur</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a20"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a21"></a><span class="src-doc"> * Registre global, normalement accessible partout</span></div></li> |
<li><div class="src-line"><a name="a22"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a23"></a> <span class="src-key">private </span><span class="src-var">$registre</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a24"></a> </div></li> |
<li><div class="src-line"><a name="a25"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a26"></a><span class="src-doc"> * Constructeur par défaut</span></div></li> |
<li><div class="src-line"><a name="a27"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a28"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Controleur.html#method__construct">__construct</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a29"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodexiste">existe</a><span class="src-sym">(</span><span class="src-str">'fw_html_errors'</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a30"></a> <a href="http://www.php.net/ini_set">ini_set</a><span class="src-sym">(</span><span class="src-str">'html_errors'</span><span class="src-sym">, </span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'fw_html_errors'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a31"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a32"></a> </div></li> |
<li><div class="src-line"><a name="a33"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">registre </span>= <span class="src-id"><a href="../Framework/Registre.html">Registre</a></span><span class="src-sym">::</span><a href="../Framework/Registre.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">registre</span><span class="src-sym">-></span><span class="src-id">set</span><span class="src-sym">(</span><span class="src-str">'base_chemin_modele'</span><span class="src-sym">, </span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'chemin_modeles'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a35"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">registre</span><span class="src-sym">-></span><span class="src-id">set</span><span class="src-sym">(</span><span class="src-str">'base_chemin_squelette'</span><span class="src-sym">, </span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'chemin_squelettes'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a36"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">registre</span><span class="src-sym">-></span><span class="src-id">set</span><span class="src-sym">(</span><span class="src-str">'base_chemin_controleur'</span><span class="src-sym">, </span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'chemin_controleurs'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a37"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">registre</span><span class="src-sym">-></span><span class="src-id">set</span><span class="src-sym">(</span><span class="src-str">'base_url_application'</span><span class="src-sym">, </span><span class="src-key">new </span><span class="src-id"><a href="../Framework/Url.html">Url</a></span><span class="src-sym">(</span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'url_base'</span><span class="src-sym">)))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a38"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a39"></a> </div></li> |
<li><div class="src-line"><a name="a40"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a41"></a><span class="src-doc"> * Charge un modele donné et le rend disponible sous la forme $this->nom_modele</span></div></li> |
<li><div class="src-line"><a name="a42"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a43"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nom_modele </span><span class="src-doc">le nom du modèle à charger</span></div></li> |
<li><div class="src-line"><a name="a44"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a45"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">boolean </span><span class="src-doc">false si le chargement a échoué, sinon true.</span></div></li> |
<li><div class="src-line"><a name="a46"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a47"></a> <span class="src-key">final </span><span class="src-key">protected </span><span class="src-key">function </span><a href="../Framework/Controleur.html#methodchargerModele">chargerModele</a><span class="src-sym">(</span><span class="src-var">$nom_modele</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a48"></a> <span class="src-var">$sortie </span>= <span class="src-id">true</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a49"></a> <span class="src-var">$modele </span>= <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Controleur.html#methodgetModele">getModele</a><span class="src-sym">(</span><span class="src-var">$nom_modele</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a50"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$modele </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a51"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$nom_modele </span>= <span class="src-key">new </span><span class="src-var">$nom_modele</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a52"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a53"></a> <span class="src-var">$sortie </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a54"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a55"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a56"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a57"></a> </div></li> |
<li><div class="src-line"><a name="a58"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a59"></a><span class="src-doc"> * Retourne un modele donné</span></div></li> |
<li><div class="src-line"><a name="a60"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a61"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nom_modele </span><span class="src-doc">le nom du modèle à charger</span></div></li> |
<li><div class="src-line"><a name="a62"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a63"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">mixed </span><span class="src-doc">false si le chargement a échoué, sinon l'objet du modèle demandé.</span></div></li> |
<li><div class="src-line"><a name="a64"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a65"></a> <span class="src-key">final </span><span class="src-key">protected </span><span class="src-key">function </span><a href="../Framework/Controleur.html#methodgetModele">getModele</a><span class="src-sym">(</span><span class="src-var">$nom_modele</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a66"></a> <span class="src-var">$sortie </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a67"></a> <span class="src-var">$chemin_modele </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">registre</span><span class="src-sym">-></span><span class="src-id">get</span><span class="src-sym">(</span><span class="src-str">'base_chemin_modele'</span><span class="src-sym">)</span>.<span class="src-var">$nom_modele</span>.<span class="src-str">'.php'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a68"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/file_exists">file_exists</a><span class="src-sym">(</span><span class="src-var">$chemin_modele</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a69"></a> <span class="src-inc">include_once </span><span class="src-var">$chemin_modele</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a70"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/class_exists">class_exists</a><span class="src-sym">(</span><span class="src-var">$nom_modele</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a71"></a> <span class="src-var">$sortie </span>= <span class="src-key">new </span><span class="src-var">$nom_modele</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a72"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a73"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a74"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a75"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a76"></a> </div></li> |
<li><div class="src-line"><a name="a77"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a78"></a><span class="src-doc"> * Fonction prenant en paramètre le nom d'un squelette et un tableau associatif de données,</span></div></li> |
<li><div class="src-line"><a name="a79"></a><span class="src-doc"> * en extrait les variables, charge le squelette et retourne le résultat des deux combinés.</span></div></li> |
<li><div class="src-line"><a name="a80"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a81"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">String </span><span class="src-doc-var">$nom_squelette </span><span class="src-doc">le nom du squelette</span></div></li> |
<li><div class="src-line"><a name="a82"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">Array </span><span class="src-doc"> </span><span class="src-doc-var">$donnees </span><span class="src-doc"> un tableau associatif contenant les variables a injecter dans la vue</span></div></li> |
<li><div class="src-line"><a name="a83"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a84"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">boolean </span><span class="src-doc">false si la vue n'existe pas, sinon la chaine résultat.</span></div></li> |
<li><div class="src-line"><a name="a85"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a86"></a> <span class="src-key">final </span><span class="src-key">protected </span><span class="src-key">function </span><a href="../Framework/Controleur.html#methodgetVue">getVue</a><span class="src-sym">(</span><span class="src-var">$nom_squelette</span><span class="src-sym">, </span><span class="src-var">$donnees </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a87"></a> <span class="src-var">$chemin_squelette </span>= <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">registre</span><span class="src-sym">-></span><span class="src-id">get</span><span class="src-sym">(</span><span class="src-str">'base_chemin_squelette'</span><span class="src-sym">))</span>.<span class="src-var">$nom_squelette</span>.<span class="src-str">'.tpl.html'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a88"></a> <span class="src-var">$sortie </span>= <span class="src-id"><a href="../Framework/SquelettePhp.html">SquelettePhp</a></span><span class="src-sym">::</span><a href="../Framework/SquelettePhp.html#methodanalyser">analyser</a><span class="src-sym">(</span><span class="src-var">$chemin_squelette</span><span class="src-sym">, </span><span class="src-var">$donnees</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a89"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a90"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a91"></a> </div></li> |
<li><div class="src-line"><a name="a92"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a93"></a><span class="src-doc"> * Fonction prenant en paramètre le nom d'un squelette et un tableau associatif de données,</span></div></li> |
<li><div class="src-line"><a name="a94"></a><span class="src-doc"> * en extrait les variables, charge le squelette et crée une variable de classe portant le nom du squelette</span></div></li> |
<li><div class="src-line"><a name="a95"></a><span class="src-doc"> * contenant les deux combinés.</span></div></li> |
<li><div class="src-line"><a name="a96"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a97"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">String </span><span class="src-doc-var">$nom_squelette </span><span class="src-doc">le nom du squelette</span></div></li> |
<li><div class="src-line"><a name="a98"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">Array </span><span class="src-doc"> </span><span class="src-doc-var">$donnees </span><span class="src-doc"> un tableau associatif contenant les variables a injecter dans la vue</span></div></li> |
<li><div class="src-line"><a name="a99"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a100"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">boolean </span><span class="src-doc">false si la vue n'existe pas, sinon true.</span></div></li> |
<li><div class="src-line"><a name="a101"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a102"></a> <span class="src-key">final </span><span class="src-key">protected </span><span class="src-key">function </span><a href="../Framework/Controleur.html#methodchargerVue">chargerVue</a><span class="src-sym">(</span><span class="src-var">$nom_squelette</span><span class="src-sym">, </span><span class="src-var">$donnees </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a103"></a> <span class="src-var">$sortie </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a104"></a> <span class="src-var">$rendu </span>= <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Controleur.html#methodgetVue">getVue</a><span class="src-sym">(</span><span class="src-var">$nom_squelette</span><span class="src-sym">, </span><span class="src-var">$donnees</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a105"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$rendu </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a106"></a> <span class="src-comm">// Création d'une variable de classe contenant le rendu</span></div></li> |
<li><div class="src-line"><a name="a107"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$nom_squelette </span>= <span class="src-var">$rendu</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a108"></a> <span class="src-var">$sortie </span>= <span class="src-id">true</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a109"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a110"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a111"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a112"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a113"></a><span class="src-php">?></span></div></li> |
</ol></div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:20 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</body> |
</html> |
/trunk/doc/HTMLframesConverter/__filesource/fsource_Framework__autoload.inc.php.html |
---|
New file |
0,0 → 1,87 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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>File Source for autoload.inc.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" href="../media/stylesheet.css" /> |
</head> |
<body> |
<h1>Source for file autoload.inc.php</h1> |
<p>Documentation is available at <a href="../Framework/_autoload.inc.php.html">autoload.inc.php</a></p> |
<div class="src-code"> |
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Fichier contenant la fonction de chargement automatique de classes, il doit toujours rester à la racine</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> * du framework car il initialise le chemin de l'application en se basant sur son propre emplacement.</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> * PHP Version 5.1.2</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> Fichier_De_Fonctions</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> // Auteur principal :</span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Aurelien PERONNET <aurelien@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> // Autres auteurs :</span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> GPL v3 <http://www.gnu.org/licenses/gpl.txt></span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt></span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> $$Id: autoload.inc.php 153 2010-03-04 10:48:32Z jpm $$</span></div></li> |
<li><div class="src-line"><a name="a18"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 1999-2009 Tela Botanica (accueil@tela-botanica.org)</span></div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a20"></a> </div></li> |
<li><div class="src-line"><a name="a21"></a><span class="src-comm">// Redéfinition de la constante DIRECTORY_SEPARATOR</span></div></li> |
<li><div class="src-line"><a name="a22"></a><span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'DS'</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a23"></a> <a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'DS'</span><span class="src-sym">, </span><span class="src-id">DIRECTORY_SEPARATOR</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a24"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a25"></a><span class="src-comm">// Redéfinition de la constante PATH_SEPARATOR</span></div></li> |
<li><div class="src-line"><a name="a26"></a><span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'PS'</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a27"></a> <a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'PS'</span><span class="src-sym">, </span><span class="src-id">PATH_SEPARATOR</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a28"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a29"></a> </div></li> |
<li><div class="src-line"><a name="a30"></a><span class="src-comm">// Autoload pour le Framework</span></div></li> |
<li><div class="src-line"><a name="a31"></a><span class="src-key">function </span><a href="../Framework/_autoload.inc.php.html#functionautoloadFw">autoloadFw</a><span class="src-sym">(</span><span class="src-var">$nom_classe_fw</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a32"></a> <span class="src-var">$fichier_a_inclure </span>= <a href="http://www.php.net/dirname">dirname</a><span class="src-sym">(</span>__FILE__<span class="src-sym">)</span>.<span class="src-id"><a href="../Framework/_autoload.inc.php.html#defineDS">DS</a></span>.<span class="src-var">$nom_classe_fw</span>.<span class="src-str">'.php'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a33"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/file_exists">file_exists</a><span class="src-sym">(</span><span class="src-var">$fichier_a_inclure</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-inc">include_once </span><span class="src-var">$fichier_a_inclure</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a35"></a> <span class="src-key">return </span><span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a36"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a37"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a38"></a><a href="http://www.php.net/spl_autoload_register">spl_autoload_register</a><span class="src-sym">(</span><span class="src-str">'autoloadFw'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a39"></a> </div></li> |
<li><div class="src-line"><a name="a40"></a><span class="src-comm">// Instanciation du gestionnaire d'exception</span></div></li> |
<li><div class="src-line"><a name="a41"></a><span class="src-id"><a href="../Framework/GestionnaireException.html">GestionnaireException</a></span><span class="src-sym">::</span><a href="../Framework/GestionnaireException.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a42"></a><span class="src-comm">// Instanciation du gestionnaire de logs</span></div></li> |
<li><div class="src-line"><a name="a43"></a><span class="src-id"><a href="../Framework/Log.html">Log</a></span><span class="src-sym">::</span><a href="../Framework/Log.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a44"></a><span class="src-comm">// Encodage de l'application (défini ici car on peut avoir des sorties d'erreurs dès le début)</span></div></li> |
<li><div class="src-line"><a name="a45"></a><a href="http://www.php.net/mb_internal_encoding">mb_internal_encoding</a><span class="src-sym">(</span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'appli_encodage'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a46"></a> </div></li> |
<li><div class="src-line"><a name="a47"></a><span class="src-comm">// Autoload par défaut pour l'application</span></div></li> |
<li><div class="src-line"><a name="a48"></a><span class="src-key">function </span><a href="../Framework/_autoload.inc.php.html#functionautoloadAppliDefaut">autoloadAppliDefaut</a><span class="src-sym">(</span><span class="src-var">$nom_classe</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a49"></a> <span class="src-var">$dossiers_classes </span>= <span class="src-key">array</span><span class="src-sym">( </span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'chemin_controleurs'</span><span class="src-sym">)</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a50"></a> <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'chemin_modeles'</span><span class="src-sym">)</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a51"></a> <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'chemin_bibliotheque'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a52"></a> </div></li> |
<li><div class="src-line"><a name="a53"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$dossiers_classes </span><span class="src-key">as </span><span class="src-var">$chemin</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a54"></a> <span class="src-var">$fichier_a_tester </span>= <span class="src-var">$chemin</span>.<span class="src-var">$nom_classe</span>.<span class="src-str">'.php'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a55"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/file_exists">file_exists</a><span class="src-sym">(</span><span class="src-var">$fichier_a_tester</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a56"></a> <span class="src-inc">include_once </span><span class="src-var">$fichier_a_tester</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a57"></a> <span class="src-key">return </span><span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a58"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a59"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a60"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a61"></a><a href="http://www.php.net/spl_autoload_register">spl_autoload_register</a><span class="src-sym">(</span><span class="src-str">'autoloadAppliDefaut'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a62"></a> </div></li> |
<li><div class="src-line"><a name="a63"></a><span class="src-comm">// Autoload défini par l'application</span></div></li> |
<li><div class="src-line"><a name="a64"></a><span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/function_exists">function_exists</a><span class="src-sym">(</span><span class="src-str">'__autoload'</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a65"></a> <a href="http://www.php.net/spl_autoload_register">spl_autoload_register</a><span class="src-sym">(</span><span class="src-str">'__autoload'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a66"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a67"></a><span class="src-php">?></span></div></li> |
</ol></div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:09 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</body> |
</html> |
/trunk/doc/HTMLframesConverter/__filesource/fsource_Framework__Log.php.html |
---|
New file |
0,0 → 1,205 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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>File Source for Log.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" href="../media/stylesheet.css" /> |
</head> |
<body> |
<h1>Source for file Log.php</h1> |
<p>Documentation is available at <a href="../Framework/_Log.php.html">Log.php</a></p> |
<div class="src-code"> |
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">//declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Classe permettant de logger des messages dans les fichier situés dans le dossier de log</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> * PHP Version 5</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> PHP</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> aurelien <aurelien@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2009 Tela-Botanica</span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL</span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> SVN: <svn_id></span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a16"></a> </div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-key">class </span><a href="../Framework/Log.html">Log</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a18"></a> </div></li> |
<li><div class="src-line"><a name="a19"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a20"></a><span class="src-doc"> * Tableau associatif stockant les descripteurs de fichiers</span></div></li> |
<li><div class="src-line"><a name="a21"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a22"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$fichiersLog </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a23"></a> </div></li> |
<li><div class="src-line"><a name="a24"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a25"></a><span class="src-doc"> * Chemin de base du dossier log de l'application</span></div></li> |
<li><div class="src-line"><a name="a26"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a27"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$cheminLogs </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a28"></a> </div></li> |
<li><div class="src-line"><a name="a29"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a30"></a><span class="src-doc"> * Booleen indiquant si l'on peut correctement écrire dans les fichiers de logs</span></div></li> |
<li><div class="src-line"><a name="a31"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a32"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$droitLogger </span>= <span class="src-id">true</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a33"></a> </div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a35"></a><span class="src-doc"> * Zone horaire (pour éviter des avertissements dans les dates)</span></div></li> |
<li><div class="src-line"><a name="a36"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a37"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$timeZone </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a38"></a> </div></li> |
<li><div class="src-line"><a name="a39"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a40"></a><span class="src-doc"> * Taille maximum d'un fichier de log avant que celui ne soit archivé (en octets)</span></div></li> |
<li><div class="src-line"><a name="a41"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a42"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$tailleMax </span>= <span class="src-num">10000</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a43"></a> </div></li> |
<li><div class="src-line"><a name="a44"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a45"></a><span class="src-doc"> * séparateur de chemin</span></div></li> |
<li><div class="src-line"><a name="a46"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a47"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$sd </span>= <span class="src-id">DIRECTORY_SEPARATOR</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a48"></a> </div></li> |
<li><div class="src-line"><a name="a49"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a50"></a><span class="src-doc"> * Extension des fichiers de log</span></div></li> |
<li><div class="src-line"><a name="a51"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a52"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$ext </span>= <span class="src-str">'.log'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a53"></a> </div></li> |
<li><div class="src-line"><a name="a54"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a55"></a><span class="src-doc"> * La classe registre se contient elle-même, (pour le pattern singleton)</span></div></li> |
<li><div class="src-line"><a name="a56"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a57"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$log</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a58"></a> </div></li> |
<li><div class="src-line"><a name="a59"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a60"></a><span class="src-doc"> * Constructeur par défaut, privé, car on accède à la classe par le getInstance</span></div></li> |
<li><div class="src-line"><a name="a61"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a62"></a> <span class="src-key">private </span><span class="src-key">function </span><span class="src-id">__construct</span><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a63"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$sd </span>= <span class="src-id">Config</span><span class="src-sym">::</span><span class="src-id">get</span><span class="src-sym">(</span><span class="src-str">'ds'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a64"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$cheminLogs </span>= <span class="src-id">Config</span><span class="src-sym">::</span><span class="src-id">get</span><span class="src-sym">(</span><span class="src-str">'chemin_logs'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a65"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$timeZone </span>= <span class="src-id">Config</span><span class="src-sym">::</span><span class="src-id">get</span><span class="src-sym">(</span><span class="src-str">'fw_timezone'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a66"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$tailleMax </span>= <span class="src-id">Config</span><span class="src-sym">::</span><span class="src-id">get</span><span class="src-sym">(</span><span class="src-str">'fw_taille_max_logs'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a67"></a> </div></li> |
<li><div class="src-line"><a name="a68"></a> <span class="src-comm">// gestion de la timezone pour éviter des erreurs</span></div></li> |
<li><div class="src-line"><a name="a69"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/function_exists">function_exists</a><span class="src-sym">(</span><span class="src-str">'date_default_timezone_set'</span><span class="src-sym">) </span>&& <a href="http://www.php.net/function_exists">function_exists</a><span class="src-sym">(</span><span class="src-str">'date_default_timezone_get'</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a70"></a> <a href="http://www.php.net/date_default_timezone_set">date_default_timezone_set</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$timeZone</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a71"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a72"></a> </div></li> |
<li><div class="src-line"><a name="a73"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-id">is_dir</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$cheminLogs</span><span class="src-sym">) </span>|| <span class="src-sym">!</span><span class="src-id">is_writable</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$cheminLogs</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a74"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">desactiverEcriture</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a75"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a76"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a77"></a> </div></li> |
<li><div class="src-line"><a name="a78"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a79"></a><span class="src-doc"> * Fonction qui renvoie l'instance de classe en assurant son unicité, c'est l'unique méthode qui doit être</span></div></li> |
<li><div class="src-line"><a name="a80"></a><span class="src-doc"> * utilisée pour récupérer l'objet Registre</span></div></li> |
<li><div class="src-line"><a name="a81"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">Log </span><span class="src-doc"> le gestionnaire de log en cours</span></div></li> |
<li><div class="src-line"><a name="a82"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a83"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Log.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a84"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$log </span>instanceof <span class="src-id">Log</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a85"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$log</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a86"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a87"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$log </span>= <span class="src-key">new </span><span class="src-id">Log</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a88"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$log</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a89"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a90"></a> </div></li> |
<li><div class="src-line"><a name="a91"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a92"></a><span class="src-doc"> * Ajoute une entrée au log spécifié par le paramètre $nomFichier</span></div></li> |
<li><div class="src-line"><a name="a93"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nomFichier </span><span class="src-doc">le nom du fichier dans lequel écrire</span></div></li> |
<li><div class="src-line"><a name="a94"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a95"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Log.html#methodajouterEntree">ajouterEntree</a><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">,</span><span class="src-var">$entree</span><span class="src-sym">,</span><span class="src-var">$mode</span>=<span class="src-str">'a+'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a96"></a> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$droitLogger</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a97"></a> <span class="src-var">$date </span>= <span class="src-str">"\n"</span>.<span class="src-str">"\n"</span>.<span class="src-id">date</span><span class="src-sym">(</span><span class="src-str">'d m Y H:i'</span><span class="src-sym">)</span>.<span class="src-str">"\n" </span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a98"></a> </div></li> |
<li><div class="src-line"><a name="a99"></a> <span class="src-comm">// si le fichier est déjà dans le tableau et qu'on peut y écrire</span></div></li> |
<li><div class="src-line"><a name="a100"></a> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">verifierOuvrirFichier</span><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">,</span><span class="src-var">$mode</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a101"></a> <span class="src-comm">// on y écrit le message de log</span></div></li> |
<li><div class="src-line"><a name="a102"></a> <a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$fichiersLog</span><span class="src-sym">[</span><span class="src-var">$nomFichier</span><span class="src-sym">]</span><span class="src-sym">,</span><span class="src-var">$date</span>.<span class="src-var">$entree</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a103"></a> <span class="src-comm">// on vérifie si le fichier ne dépasse pas la taille maximale</span></div></li> |
<li><div class="src-line"><a name="a104"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">verifierTailleFichierOuArchiver</span><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a105"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a106"></a> <span class="src-comm">// sinon on interdit l'écriture</span></div></li> |
<li><div class="src-line"><a name="a107"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">desactiverEcriture</span><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a108"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a109"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a110"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a111"></a> </div></li> |
<li><div class="src-line"><a name="a112"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a113"></a><span class="src-doc"> * Vide un fichier log indiqué</span></div></li> |
<li><div class="src-line"><a name="a114"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nomFichier </span><span class="src-doc">le nom du fichier à vider</span></div></li> |
<li><div class="src-line"><a name="a115"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a116"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Log.html#methodviderLog">viderLog</a><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a117"></a> <a href="../Framework/Log.html#methodajouterEntree">ajouterEntree</a><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">, </span><span class="src-str">''</span><span class="src-sym">, </span><span class="src-str">'w'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a118"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a119"></a> </div></li> |
<li><div class="src-line"><a name="a120"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a121"></a><span class="src-doc"> * Vérifie la présence d'un fichier dans le tableau, ses droits d'écriture,</span></div></li> |
<li><div class="src-line"><a name="a122"></a><span class="src-doc"> * l'ouvre si nécessaire</span></div></li> |
<li><div class="src-line"><a name="a123"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nomFichier </span><span class="src-doc">le nom du fichier dont on doit vérifier la présence</span></div></li> |
<li><div class="src-line"><a name="a124"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">boolean </span><span class="src-doc">true si le fichier est ouvert ou maintenant accessible, false sinon</span></div></li> |
<li><div class="src-line"><a name="a125"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a126"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Log.html#methodverifierOuvrirFichier">verifierOuvrirFichier</a><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">,</span><span class="src-var">$mode</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a127"></a> <span class="src-comm">// le fichier est il déjà ouvert ?</span></div></li> |
<li><div class="src-line"><a name="a128"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/in_array">in_array</a><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">, </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$fichiersLog</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a129"></a> <span class="src-comm">// si oui peut on y écrire ?</span></div></li> |
<li><div class="src-line"><a name="a130"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">is_writable</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$cheminLogs</span>.<span class="src-var">$nomFichier</span>.<span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$ext</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a131"></a> <span class="src-comm">// si oui on renvoie le descripteur</span></div></li> |
<li><div class="src-line"><a name="a132"></a> <span class="src-key">return </span><span class="src-id">true</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a133"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a134"></a> <span class="src-key">return </span><span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a135"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a136"></a> <span class="src-comm">// sinon on l'ouvre</span></div></li> |
<li><div class="src-line"><a name="a137"></a> <span class="src-var">$fp </span>= <span class="src-sym">@</span><a href="http://www.php.net/fopen">fopen</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$cheminLogs</span>.<span class="src-var">$nomFichier</span>.<span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$ext</span><span class="src-sym">,</span><span class="src-var">$mode</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a138"></a> <span class="src-comm">// si l'ouverture a réussi et si le fichier a les droits d'écriture</span></div></li> |
<li><div class="src-line"><a name="a139"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$fp </span>&& <span class="src-id">is_writable</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$cheminLogs</span>.<span class="src-var">$nomFichier</span>.<span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$ext</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a140"></a> <span class="src-comm">// si oui on renvoie le descripteur qu'on ajoute au tableau</span></div></li> |
<li><div class="src-line"><a name="a141"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$fichiersLog</span><span class="src-sym">[</span><span class="src-var">$nomFichier</span><span class="src-sym">] </span>= <span class="src-var">$fp</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a142"></a> <span class="src-key">return </span><span class="src-id">true</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a143"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a144"></a> <span class="src-key">return </span><span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a145"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a146"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a147"></a> </div></li> |
<li><div class="src-line"><a name="a148"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a149"></a><span class="src-doc"> * Vérifie la taille d'un fichier donné et si celle ci est trop importante</span></div></li> |
<li><div class="src-line"><a name="a150"></a><span class="src-doc"> * archive le fichier de log</span></div></li> |
<li><div class="src-line"><a name="a151"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nomFichier </span><span class="src-doc">nom du fichier à vérifier</span></div></li> |
<li><div class="src-line"><a name="a152"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a153"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">verifierTailleFichierOuArchiver</span><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a154"></a> <span class="src-key">if</span><span class="src-sym">(</span><a href="http://www.php.net/filesize">filesize</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$cheminLogs</span>.<span class="src-var">$nomFichier</span>.<span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$ext</span><span class="src-sym">) </span>> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$tailleMax</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a155"></a> <span class="src-id">rename</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$cheminLogs</span>.<span class="src-var">$nomFichier</span>.<span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$ext</span><span class="src-sym">,</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$cheminLogs</span>.<span class="src-var">$nomFichier</span>.<span class="src-id">date</span><span class="src-sym">(</span><span class="src-str">'d_m_Y_H:i'</span><span class="src-sym">)</span>.<span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$ext</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a156"></a> <span class="src-id">ajouterEntree</span><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">,</span><span class="src-str">''</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a157"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a158"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a159"></a> </div></li> |
<li><div class="src-line"><a name="a160"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a161"></a><span class="src-doc"> * Désactive l'écriture du log et envoie un message au gestionnaire d'erreurs</span></div></li> |
<li><div class="src-line"><a name="a162"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nomFichier </span><span class="src-doc">le nom du fichier qui a causé l'erreur</span></div></li> |
<li><div class="src-line"><a name="a163"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a164"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">desactiverEcriture</span><span class="src-sym">(</span><span class="src-var">$nomFichier </span>= <span class="src-str">''</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a165"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$droitLogger </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a166"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$nomFichier </span>!= <span class="src-str">''</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a167"></a> <span class="src-var">$fichierDossier </span>= <span class="src-str">'fichier '</span>.<span class="src-var">$nomFichier </span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a168"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a169"></a> <span class="src-var">$fichierDossier </span>= <span class="src-str">'dossier des logs'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a170"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a171"></a> <span class="src-var">$message </span>= <span class="src-str">'Écriture impossible dans le '</span>.<span class="src-var">$fichierDossier</span>.<span class="src-str">', Assurez-vous des droits du dossier et des fichiers'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a172"></a> <span class="src-var">$e </span>= <span class="src-key">new </span><span class="src-id">ErrorException</span><span class="src-sym">(</span><span class="src-var">$message</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-id">E_USER_WARNING</span><span class="src-sym">, </span>__FILE__<span class="src-sym">, </span>__LINE__<span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a173"></a> <span class="src-id"><a href="../Framework/GestionnaireException.html">GestionnaireException</a></span><span class="src-sym">::</span><a href="../Framework/GestionnaireException.html#methodgererException">gererException</a><span class="src-sym">(</span><span class="src-var">$e</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a174"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a175"></a> </div></li> |
<li><div class="src-line"><a name="a176"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a177"></a><span class="src-doc"> * destructeur de classe, ferme les descripteurs ouverts</span></div></li> |
<li><div class="src-line"><a name="a178"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a179"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Log.html#method__destruct">__destruct</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a180"></a> <span class="src-key">foreach</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$fichiersLog </span><span class="src-key">as </span><span class="src-var">$nomFichier </span>=> <span class="src-var">$fp</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a181"></a> <span class="src-id">fclose</span><span class="src-sym">(</span><span class="src-var">$fp</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a182"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a183"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a184"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a185"></a><span class="src-php">?></span></div></li> |
</ol></div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:23 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</body> |
</html> |
/trunk/doc/HTMLframesConverter/__filesource/fsource_Framework__Url.php.html |
---|
New file |
0,0 → 1,779 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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>File Source for Url.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" href="../media/stylesheet.css" /> |
</head> |
<body> |
<h1>Source for file Url.php</h1> |
<p>Documentation is available at <a href="../Framework/_Url.php.html">Url.php</a></p> |
<div class="src-code"> |
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc">* classe Url, gérant le découpage des paramètres, leurs modification etc...</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc">* Traduction et conversion d'une classe (NET_Url2) issue de Pear</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc">*</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc">* </span><span class="src-doc-coretag">@category</span><span class="src-doc"> Php5</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc">* </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc">// Auteur principal</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc">* </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Christian Schmidt <schmidt@php.net></span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc">// Autre auteurs</span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc">* </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Aurélien PERONNET <aurelien@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc">* </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc">* </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2009 Tela-Botanica</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc">* </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL</span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc">* </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.gnu.org/licenses/gpl.html Licence GNU-GPL</span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc">* </span><span class="src-doc-coretag">@version</span><span class="src-doc"> SVN: $Id: Url.php 150 2010-03-03 15:49:06Z jpm $</span></div></li> |
<li><div class="src-line"><a name="a18"></a><span class="src-doc">* </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-doc">*</span></div></li> |
<li><div class="src-line"><a name="a20"></a><span class="src-doc">*/</span></div></li> |
<li><div class="src-line"><a name="a21"></a><span class="src-key">class </span><a href="../Framework/Url.html">Url</a></div></li> |
<li><div class="src-line"><a name="a22"></a><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a23"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a24"></a><span class="src-doc"> * Parsing strict dans resoudre() (voir RFC 3986, section 5.2.2). Par défaut</span></div></li> |
<li><div class="src-line"><a name="a25"></a><span class="src-doc"> * à true.</span></div></li> |
<li><div class="src-line"><a name="a26"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a27"></a> <span class="src-key">const </span><span class="src-id">OPTION_STRICTE </span>= <span class="src-str">'strict'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a28"></a> </div></li> |
<li><div class="src-line"><a name="a29"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a30"></a><span class="src-doc"> * Répresenter les tableaux dans les requêtes en utilisant la notation php []. Par défaut à true.</span></div></li> |
<li><div class="src-line"><a name="a31"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a32"></a> <span class="src-key">const </span><span class="src-id">OPTION_UTILISER_CROCHETS </span>= <span class="src-str">'use_brackets'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a33"></a> </div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a35"></a><span class="src-doc"> * URL-encoder les clés des variables dans les requêtes. Par défaut à true.</span></div></li> |
<li><div class="src-line"><a name="a36"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a37"></a> <span class="src-key">const </span><span class="src-id">OPTION_ENCODER_CLES </span>= <span class="src-str">'encode_keys'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a38"></a> </div></li> |
<li><div class="src-line"><a name="a39"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a40"></a><span class="src-doc"> * Séparateurs de variables lors du parsing de la requête. Chaque caractère</span></div></li> |
<li><div class="src-line"><a name="a41"></a><span class="src-doc"> * est considéré comme un séparateur. Par défaut, spécifié par le paramêtre</span></div></li> |
<li><div class="src-line"><a name="a42"></a><span class="src-doc"> * arg_separator.input dans php.ini (par défaut "&").</span></div></li> |
<li><div class="src-line"><a name="a43"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a44"></a> <span class="src-key">const </span><span class="src-id">OPTION_SEPARATEUR_ENTREE </span>= <span class="src-str">'input_separator'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a45"></a> </div></li> |
<li><div class="src-line"><a name="a46"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a47"></a><span class="src-doc"> * Séparateur de variables lors de la génération de la requête. Par défaut, spécifié</span></div></li> |
<li><div class="src-line"><a name="a48"></a><span class="src-doc"> * par le paramètre arg_separator.output dans php.ini (par défaut "&").</span></div></li> |
<li><div class="src-line"><a name="a49"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a50"></a> <span class="src-key">const </span><span class="src-id">OPTION_SEPARATEUR_SORTIE </span>= <span class="src-str">'output_separator'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a51"></a> </div></li> |
<li><div class="src-line"><a name="a52"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a53"></a><span class="src-doc"> * Options par défaut correspondant au comportement de php</span></div></li> |
<li><div class="src-line"><a name="a54"></a><span class="src-doc"> * vis à vis de $_GET</span></div></li> |
<li><div class="src-line"><a name="a55"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a56"></a> <span class="src-key">private </span><span class="src-var">$options </span>= <span class="src-key">array</span><span class="src-sym">(</span></div></li> |
<li><div class="src-line"><a name="a57"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_STRICTE </span>=> <span class="src-id">true</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a58"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_UTILISER_CROCHETS </span>=> <span class="src-id">true</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a59"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_ENCODER_CLES </span>=> <span class="src-id">true</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a60"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_SEPARATEUR_ENTREE </span>=> <span class="src-str">'x&'</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a61"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_SEPARATEUR_SORTIE </span>=> <span class="src-str">'x&'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a62"></a> </div></li> |
<li><div class="src-line"><a name="a63"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a64"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a65"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a66"></a> <span class="src-key">private </span><span class="src-var">$schema </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a67"></a> </div></li> |
<li><div class="src-line"><a name="a68"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a69"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a70"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a71"></a> <span class="src-key">private </span><span class="src-var">$infoUtilisateur </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a72"></a> </div></li> |
<li><div class="src-line"><a name="a73"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a74"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a75"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a76"></a> <span class="src-key">private </span><span class="src-var">$hote </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a77"></a> </div></li> |
<li><div class="src-line"><a name="a78"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a79"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc"> </span><span class="src-doc-type">int</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a80"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a81"></a> <span class="src-key">private </span><span class="src-var">$port </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a82"></a> </div></li> |
<li><div class="src-line"><a name="a83"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a84"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc"> </span><span class="src-doc-type">string </span></div></li> |
<li><div class="src-line"><a name="a85"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a86"></a> <span class="src-key">private </span><span class="src-var">$chemin </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a87"></a> </div></li> |
<li><div class="src-line"><a name="a88"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a89"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a90"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a91"></a> <span class="src-key">private </span><span class="src-var">$requete </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a92"></a> </div></li> |
<li><div class="src-line"><a name="a93"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a94"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a95"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a96"></a> <span class="src-key">private </span><span class="src-var">$fragment </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a97"></a> </div></li> |
<li><div class="src-line"><a name="a98"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a99"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$url </span><span class="src-doc"> une URL relative ou absolue</span></div></li> |
<li><div class="src-line"><a name="a100"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc"> </span><span class="src-doc-var">$options </span></div></li> |
<li><div class="src-line"><a name="a101"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a102"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#method__construct">__construct</a><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">, </span><span class="src-var">$options </span>= <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a103"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetOption">setOption</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_SEPARATEUR_ENTREE</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a104"></a> <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'fw_url_arg_separateur_entree'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a105"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetOption">setOption</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_SEPARATEUR_SORTIE</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a106"></a> <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'fw_url_arg_separateur_sortie'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a107"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$options</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a108"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$options </span><span class="src-key">as </span><span class="src-var">$nomOption </span>=> <span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a109"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetOption">setOption</a><span class="src-sym">(</span><span class="src-var">$nomOption</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a110"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a111"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a112"></a> </div></li> |
<li><div class="src-line"><a name="a113"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'@^([a-z][a-z0-9.+-]*):@i'</span><span class="src-sym">, </span><span class="src-var">$url</span><span class="src-sym">, </span><span class="src-var">$reg</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a114"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">schema </span>= <span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a115"></a> <span class="src-var">$url </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">, </span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a116"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a117"></a> </div></li> |
<li><div class="src-line"><a name="a118"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'@^//([^/#?]+)@'</span><span class="src-sym">, </span><span class="src-var">$url</span><span class="src-sym">, </span><span class="src-var">$reg</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a119"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetAutorite">setAutorite</a><span class="src-sym">(</span><span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a120"></a> <span class="src-var">$url </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">, </span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a121"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a122"></a> </div></li> |
<li><div class="src-line"><a name="a123"></a> <span class="src-var">$i </span>= <a href="http://www.php.net/strcspn">strcspn</a><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">, </span><span class="src-str">'?#'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a124"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">chemin </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-var">$i</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a125"></a> <span class="src-var">$url </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">, </span><span class="src-var">$i</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a126"></a> </div></li> |
<li><div class="src-line"><a name="a127"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'@^\?([^#]*)@'</span><span class="src-sym">, </span><span class="src-var">$url</span><span class="src-sym">, </span><span class="src-var">$reg</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a128"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">requete </span>= <span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a129"></a> <span class="src-var">$url </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">, </span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a130"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a131"></a> </div></li> |
<li><div class="src-line"><a name="a132"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a133"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">fragment </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">, </span><span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a134"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a135"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a136"></a> </div></li> |
<li><div class="src-line"><a name="a137"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a138"></a><span class="src-doc"> * Retourne le schéma, c.a.d. "http" ou "urn", ou false si aucun schéma n'est</span></div></li> |
<li><div class="src-line"><a name="a139"></a><span class="src-doc"> * spécifié, i.e. l'url est une url relative</span></div></li> |
<li><div class="src-line"><a name="a140"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a141"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a142"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a143"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetSchema">getSchema</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a144"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">schema</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a145"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a146"></a> </div></li> |
<li><div class="src-line"><a name="a147"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a148"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span><span class="src-doc-var">$schema </span></div></li> |
<li><div class="src-line"><a name="a149"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a150"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a151"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> getSchema()</span></div></li> |
<li><div class="src-line"><a name="a152"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a153"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetSchema">setSchema</a><span class="src-sym">(</span><span class="src-var">$schema</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a154"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">schema </span>= <span class="src-var">$schema</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a155"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a156"></a> </div></li> |
<li><div class="src-line"><a name="a157"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a158"></a><span class="src-doc"> * renvoie la partie user de la partie infoUtilisateur (partie précédant le premier</span></div></li> |
<li><div class="src-line"><a name="a159"></a><span class="src-doc"> * ":"), ou false si aucune partie infoUtilisateur n'est définie.</span></div></li> |
<li><div class="src-line"><a name="a160"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a161"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a162"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a163"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetUtilisateur">getUtilisateur</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a164"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur </span>!== <span class="src-id">false </span>? <a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span><span class="src-str">'@:.*$@'</span><span class="src-sym">, </span><span class="src-str">''</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur</span><span class="src-sym">) </span>: <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a165"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a166"></a> </div></li> |
<li><div class="src-line"><a name="a167"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a168"></a><span class="src-doc"> * renvoie la partie mot de passe de la partie infoUtilisateur (partie après le premier</span></div></li> |
<li><div class="src-line"><a name="a169"></a><span class="src-doc"> * ":"), , ou false si aucune partie infoUtilisateur n'est définie (i.e. l'URL ne contient</span></div></li> |
<li><div class="src-line"><a name="a170"></a><span class="src-doc"> * pas de "@" en face du nom d'hôte) ou si la partie infoUtilisateur ne contient pas de ":".</span></div></li> |
<li><div class="src-line"><a name="a171"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a172"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a173"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a174"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetMotDePasse">getMotDePasse</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a175"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur </span>!== <span class="src-id">false </span>? <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><a href="http://www.php.net/strstr">strstr</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur</span><span class="src-sym">, </span><span class="src-str">':'</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-num">1</span><span class="src-sym">) </span>: <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a176"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a177"></a> </div></li> |
<li><div class="src-line"><a name="a178"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a179"></a><span class="src-doc"> * Renvoie la partie userinfio, ou false si celle-ci n'existe pas, i.e. si la partie</span></div></li> |
<li><div class="src-line"><a name="a180"></a><span class="src-doc"> * autorité ne contient pas de "@"</span></div></li> |
<li><div class="src-line"><a name="a181"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a182"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a183"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a184"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetInfoUtilisateur">getInfoUtilisateur</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a185"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a186"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a187"></a> </div></li> |
<li><div class="src-line"><a name="a188"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a189"></a><span class="src-doc"> * Setteur pour la partie infoUtilisateur. Si deux argument sont passé, ils sont combinés</span></div></li> |
<li><div class="src-line"><a name="a190"></a><span class="src-doc"> * dans la partie infoUtilisateur de cette manière username ":" password.</span></div></li> |
<li><div class="src-line"><a name="a191"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a192"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span><span class="src-doc-var">$infoUtilisateur </span><span class="src-doc">infoUtilisateur ou username</span></div></li> |
<li><div class="src-line"><a name="a193"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span><span class="src-doc-var">$motDePasse </span></div></li> |
<li><div class="src-line"><a name="a194"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a195"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a196"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a197"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetInfoUtilisateur">setInfoUtilisateur</a><span class="src-sym">(</span><span class="src-var">$infoUtilisateur</span><span class="src-sym">, </span><span class="src-var">$motDePasse </span>= <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a198"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur </span>= <span class="src-var">$infoUtilisateur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a199"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$motDePasse </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a200"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur </span>.= <span class="src-str">':' </span>. <span class="src-var">$motDePasse</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a201"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a202"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a203"></a> </div></li> |
<li><div class="src-line"><a name="a204"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a205"></a><span class="src-doc"> * Renvoie la partie hôte, ou false s'il n'y a pas de partie autorité, c.a.d.</span></div></li> |
<li><div class="src-line"><a name="a206"></a><span class="src-doc"> * l'URL est relative.</span></div></li> |
<li><div class="src-line"><a name="a207"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a208"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a209"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a210"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetHote">getHote</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a211"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a212"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a213"></a> </div></li> |
<li><div class="src-line"><a name="a214"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a215"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span><span class="src-doc-var">$hote </span></div></li> |
<li><div class="src-line"><a name="a216"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a217"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a218"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a219"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetHote">setHote</a><span class="src-sym">(</span><span class="src-var">$hote</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a220"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote </span>= <span class="src-var">$hote</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a221"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a222"></a> </div></li> |
<li><div class="src-line"><a name="a223"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a224"></a><span class="src-doc"> * Renvoie le numéro de port, ou false si aucun numéro de port n'est spécifié,</span></div></li> |
<li><div class="src-line"><a name="a225"></a><span class="src-doc"> * i.e. le port par défaut doit utilisé.</span></div></li> |
<li><div class="src-line"><a name="a226"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a227"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">int</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a228"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a229"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetPort">getPort</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a230"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">port</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a231"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a232"></a> </div></li> |
<li><div class="src-line"><a name="a233"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a234"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int</span><span class="src-doc">|</span><span class="src-doc-type">bool</span><span class="src-doc-var">$port </span></div></li> |
<li><div class="src-line"><a name="a235"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a236"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a237"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a238"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetPort">setPort</a><span class="src-sym">(</span><span class="src-var">$port</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a239"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">port </span>= <a href="http://www.php.net/intval">intval</a><span class="src-sym">(</span><span class="src-var">$port</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a240"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a241"></a> </div></li> |
<li><div class="src-line"><a name="a242"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a243"></a><span class="src-doc"> * Renvoie la partie autorité, i.e. [ infoUtilisateur "@" ] hote [ ":" port ], ou</span></div></li> |
<li><div class="src-line"><a name="a244"></a><span class="src-doc"> * false si celle-ci est absente.</span></div></li> |
<li><div class="src-line"><a name="a245"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a246"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a247"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a248"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetAutorite">getAutorite</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a249"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a250"></a> <span class="src-key">return </span><span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a251"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a252"></a> </div></li> |
<li><div class="src-line"><a name="a253"></a> <span class="src-var">$autorite </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a254"></a> </div></li> |
<li><div class="src-line"><a name="a255"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a256"></a> <span class="src-var">$autorite </span>.= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur </span>. <span class="src-str">'@'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a257"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a258"></a> </div></li> |
<li><div class="src-line"><a name="a259"></a> <span class="src-var">$autorite </span>.= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a260"></a> </div></li> |
<li><div class="src-line"><a name="a261"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">port </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a262"></a> <span class="src-var">$autorite </span>.= <span class="src-str">':' </span>. <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">port</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a263"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a264"></a> </div></li> |
<li><div class="src-line"><a name="a265"></a> <span class="src-key">return </span><span class="src-var">$autorite</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a266"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a267"></a> </div></li> |
<li><div class="src-line"><a name="a268"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a269"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">false</span><span class="src-doc-var">$autorite </span></div></li> |
<li><div class="src-line"><a name="a270"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a271"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a272"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a273"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetAutorite">setAutorite</a><span class="src-sym">(</span><span class="src-var">$autorite</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a274"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">user </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a275"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">pass </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a276"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a277"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">port </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a278"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'@^(([^\@]+)\@)?([^:]+)(:(\d*))?$@'</span><span class="src-sym">, </span><span class="src-var">$autorite</span><span class="src-sym">, </span><span class="src-var">$reg</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a279"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a280"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur </span>= <span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">2</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a281"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a282"></a> </div></li> |
<li><div class="src-line"><a name="a283"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote </span>= <span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">3</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a284"></a> <span class="src-key">if </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">5</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a285"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">port </span>= <a href="http://www.php.net/intval">intval</a><span class="src-sym">(</span><span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">5</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a286"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a287"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a288"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a289"></a> </div></li> |
<li><div class="src-line"><a name="a290"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a291"></a><span class="src-doc"> * Renvoie la partie chemin (chemin) (éventuellement vide).</span></div></li> |
<li><div class="src-line"><a name="a292"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a293"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span></div></li> |
<li><div class="src-line"><a name="a294"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a295"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetChemin">getChemin</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a296"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">chemin</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a297"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a298"></a> </div></li> |
<li><div class="src-line"><a name="a299"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a300"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$chemin </span></div></li> |
<li><div class="src-line"><a name="a301"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a302"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a303"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a304"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetChemin">setChemin</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a305"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">chemin </span>= <span class="src-var">$chemin</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a306"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a307"></a> </div></li> |
<li><div class="src-line"><a name="a308"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a309"></a><span class="src-doc"> * renvoie la chaine de requête (requete string) (sans le premier "?"), ou false si "?"</span></div></li> |
<li><div class="src-line"><a name="a310"></a><span class="src-doc"> * n'est pas présent dans l'url.</span></div></li> |
<li><div class="src-line"><a name="a311"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a312"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a313"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> self::getVariablesRequete()</span></div></li> |
<li><div class="src-line"><a name="a314"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a315"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetRequete">getRequete</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a316"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">requete</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a317"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a318"></a> </div></li> |
<li><div class="src-line"><a name="a319"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a320"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span><span class="src-doc-var">$requete </span></div></li> |
<li><div class="src-line"><a name="a321"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a322"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a323"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> self::setVariablesRequete()</span></div></li> |
<li><div class="src-line"><a name="a324"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a325"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetRequete">setRequete</a><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a326"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">requete </span>= <span class="src-var">$requete</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a327"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a328"></a> </div></li> |
<li><div class="src-line"><a name="a329"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a330"></a><span class="src-doc"> * Renvoie le nom du fragment, ou false si "#" n'est pas present dans l'URL.</span></div></li> |
<li><div class="src-line"><a name="a331"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a332"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a333"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a334"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetFragment">getFragment</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a335"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">fragment</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a336"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a337"></a> </div></li> |
<li><div class="src-line"><a name="a338"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a339"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span><span class="src-doc-var">$fragment </span></div></li> |
<li><div class="src-line"><a name="a340"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a341"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a342"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a343"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetFragment">setFragment</a><span class="src-sym">(</span><span class="src-var">$fragment</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a344"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">fragment </span>= <span class="src-var">$fragment</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a345"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a346"></a> </div></li> |
<li><div class="src-line"><a name="a347"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a348"></a><span class="src-doc"> * Renvoie la requete string sous forme d'un tableau de variables telles qu'elles apparaitraient</span></div></li> |
<li><div class="src-line"><a name="a349"></a><span class="src-doc"> * dans le $_GET d'un script PHP</span></div></li> |
<li><div class="src-line"><a name="a350"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a351"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">array </span></div></li> |
<li><div class="src-line"><a name="a352"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a353"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetVariablesRequete">getVariablesRequete</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a354"></a> <span class="src-var">$pattern </span>= <span class="src-str">'/' </span>.</div></li> |
<li><div class="src-line"><a name="a355"></a> <a href="http://www.php.net/preg_quote">preg_quote</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetOption">getOption</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_SEPARATEUR_ENTREE</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-str">'/'</span><span class="src-sym">) </span>.</div></li> |
<li><div class="src-line"><a name="a356"></a> <span class="src-str">'/'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a357"></a> <span class="src-var">$parties </span>= <a href="http://www.php.net/preg_split">preg_split</a><span class="src-sym">(</span><span class="src-var">$pattern</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">requete</span><span class="src-sym">, </span>-<span class="src-num">1</span><span class="src-sym">, </span><span class="src-id">PREG_SPLIT_NO_EMPTY</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a358"></a> <span class="src-var">$retour </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a359"></a> </div></li> |
<li><div class="src-line"><a name="a360"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$parties </span><span class="src-key">as </span><span class="src-var">$partie</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a361"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$partie</span><span class="src-sym">, </span><span class="src-str">'='</span><span class="src-sym">) </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a362"></a> list<span class="src-sym">(</span><span class="src-var">$cle</span><span class="src-sym">, </span><span class="src-var">$valeur</span><span class="src-sym">) </span>= <a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">'='</span><span class="src-sym">, </span><span class="src-var">$partie</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a363"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a364"></a> <span class="src-var">$cle </span>= <span class="src-var">$partie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a365"></a> <span class="src-var">$valeur </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a366"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a367"></a> </div></li> |
<li><div class="src-line"><a name="a368"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetOption">getOption</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_ENCODER_CLES</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a369"></a> <span class="src-var">$cle </span>= <a href="http://www.php.net/rawurldecode">rawurldecode</a><span class="src-sym">(</span><span class="src-var">$cle</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a370"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a371"></a> <span class="src-var">$valeur </span>= <a href="http://www.php.net/rawurldecode">rawurldecode</a><span class="src-sym">(</span><span class="src-var">$valeur</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a372"></a> </div></li> |
<li><div class="src-line"><a name="a373"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetOption">getOption</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_UTILISER_CROCHETS</span><span class="src-sym">) </span>&&</div></li> |
<li><div class="src-line"><a name="a374"></a> <a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'#^(.*)\[([0-9a-z_-]*)\]#i'</span><span class="src-sym">, </span><span class="src-var">$cle</span><span class="src-sym">, </span><span class="src-var">$matches</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a375"></a> </div></li> |
<li><div class="src-line"><a name="a376"></a> <span class="src-var">$cle </span>= <span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a377"></a> <span class="src-var">$idx </span>= <span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-num">2</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a378"></a> </div></li> |
<li><div class="src-line"><a name="a379"></a> <span class="src-comm">// On s'assure que c'est bien un tableau</span></div></li> |
<li><div class="src-line"><a name="a380"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">) </span>|| <span class="src-sym">!</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a381"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">] </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a382"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a383"></a> </div></li> |
<li><div class="src-line"><a name="a384"></a> <span class="src-comm">// Ajout des données</span></div></li> |
<li><div class="src-line"><a name="a385"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$idx </span>=== <span class="src-str">''</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a386"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$valeur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a387"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a388"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$idx</span><span class="src-sym">] </span>= <span class="src-var">$valeur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a389"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a390"></a> <span class="src-sym">} </span><span class="src-key">elseif </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetOption">getOption</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_UTILISER_CROCHETS</span><span class="src-sym">)</span></div></li> |
<li><div class="src-line"><a name="a391"></a> && <span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">)</span></div></li> |
<li><div class="src-line"><a name="a392"></a> <span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a393"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">] </span>= (array) <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a394"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$valeur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a395"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a396"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">] </span>= <span class="src-var">$valeur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a397"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a398"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a399"></a> </div></li> |
<li><div class="src-line"><a name="a400"></a> <span class="src-key">return </span><span class="src-var">$retour</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a401"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a402"></a> </div></li> |
<li><div class="src-line"><a name="a403"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a404"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc-var">$tableau </span><span class="src-doc">(nom => valeur) tableau</span></div></li> |
<li><div class="src-line"><a name="a405"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a406"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a407"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a408"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetVariablesRequete">setVariablesRequete</a><span class="src-sym">(</span><span class="src-key">array </span><span class="src-var">$tableau</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a409"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$tableau</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a410"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">requete </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a411"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a412"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$tableau </span><span class="src-key">as </span><span class="src-var">$nom </span>=> <span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a413"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">getOption</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_ENCODER_CLES</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a414"></a> <span class="src-var">$nom </span>= <span class="src-id">rawurlencode</span><span class="src-sym">(</span><span class="src-var">$nom</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a415"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a416"></a> </div></li> |
<li><div class="src-line"><a name="a417"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$valeur</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a418"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$valeur </span><span class="src-key">as </span><span class="src-var">$k </span>=> <span class="src-var">$v</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a419"></a> <span class="src-var">$parties</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetOption">getOption</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_UTILISER_CROCHETS</span><span class="src-sym">)</span></div></li> |
<li><div class="src-line"><a name="a420"></a> ? <a href="http://www.php.net/sprintf">sprintf</a><span class="src-sym">(</span><span class="src-str">'%s[%s]=%s'</span><span class="src-sym">, </span><span class="src-var">$nom</span><span class="src-sym">, </span><span class="src-var">$k</span><span class="src-sym">, </span><span class="src-var">$v</span><span class="src-sym">)</span></div></li> |
<li><div class="src-line"><a name="a421"></a> : <span class="src-sym">(</span><span class="src-var">$nom </span>. <span class="src-str">'=' </span>. <span class="src-var">$v</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a422"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a423"></a> <span class="src-sym">} </span><span class="src-key">elseif </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_null">is_null</a><span class="src-sym">(</span><span class="src-var">$valeur</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a424"></a> <span class="src-var">$parties</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$nom </span>. <span class="src-str">'=' </span>. <span class="src-var">$valeur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a425"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a426"></a> <span class="src-var">$parties</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$nom</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a427"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a428"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a429"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">requete </span>= <a href="http://www.php.net/implode">implode</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetOption">getOption</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_SEPARATEUR_SORTIE</span><span class="src-sym">)</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a430"></a> <span class="src-var">$parties</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a431"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a432"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a433"></a> </div></li> |
<li><div class="src-line"><a name="a434"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a435"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nom </span></div></li> |
<li><div class="src-line"><a name="a436"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">mixed </span><span class="src-doc"> </span><span class="src-doc-var">$valeur </span></div></li> |
<li><div class="src-line"><a name="a437"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a438"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">array </span></div></li> |
<li><div class="src-line"><a name="a439"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a440"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetVariableRequete">setVariableRequete</a><span class="src-sym">(</span><span class="src-var">$nom</span><span class="src-sym">, </span><span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a441"></a> <span class="src-var">$tableau </span>= <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetVariablesRequete">getVariablesRequete</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a442"></a> <span class="src-var">$tableau</span><span class="src-sym">[</span><span class="src-var">$nom</span><span class="src-sym">] </span>= <span class="src-var">$valeur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a443"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetVariablesRequete">setVariablesRequete</a><span class="src-sym">(</span><span class="src-var">$tableau</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a444"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a445"></a> </div></li> |
<li><div class="src-line"><a name="a446"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a447"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nom </span></div></li> |
<li><div class="src-line"><a name="a448"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a449"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a450"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a451"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodunsetVariableRequete">unsetVariableRequete</a><span class="src-sym">(</span><span class="src-var">$nom</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a452"></a> <span class="src-var">$tableau </span>= <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetVariablesRequete">getVariablesRequete</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a453"></a> unset<span class="src-sym">(</span><span class="src-var">$tableau</span><span class="src-sym">[</span><span class="src-var">$nom</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a454"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetVariablesRequete">setVariablesRequete</a><span class="src-sym">(</span><span class="src-var">$tableau</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a455"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a456"></a> </div></li> |
<li><div class="src-line"><a name="a457"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a458"></a><span class="src-doc"> * Renvoie un représentation sous forme de chaine de l'URL</span></div></li> |
<li><div class="src-line"><a name="a459"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a460"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string </span></div></li> |
<li><div class="src-line"><a name="a461"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a462"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetURL">getURL</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a463"></a> <span class="src-comm">// Voir RFC 3986, section 5.3</span></div></li> |
<li><div class="src-line"><a name="a464"></a> <span class="src-var">$url </span>= <span class="src-str">""</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a465"></a> </div></li> |
<li><div class="src-line"><a name="a466"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a467"></a> <span class="src-var">$url </span>.= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema </span>. <span class="src-str">':'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a468"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a469"></a> </div></li> |
<li><div class="src-line"><a name="a470"></a> <span class="src-var">$autorite </span>= <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetAutorite">getAutorite</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a471"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$autorite </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a472"></a> <span class="src-var">$url </span>.= <span class="src-str">'//' </span>. <span class="src-var">$autorite</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a473"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a474"></a> <span class="src-var">$url </span>.= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a475"></a> </div></li> |
<li><div class="src-line"><a name="a476"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">requete </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a477"></a> <span class="src-var">$url </span>.= <span class="src-str">'?' </span>. <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">requete</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a478"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a479"></a> </div></li> |
<li><div class="src-line"><a name="a480"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">fragment </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a481"></a> <span class="src-var">$url </span>.= <span class="src-str">'#' </span>. <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">fragment</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a482"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a483"></a> </div></li> |
<li><div class="src-line"><a name="a484"></a> <span class="src-key">return </span><span class="src-var">$url</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a485"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a486"></a> </div></li> |
<li><div class="src-line"><a name="a487"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a488"></a><span class="src-doc"> * Renvoie une représentation de cette URL sous forme de chaine normalisée. Utile pour la</span></div></li> |
<li><div class="src-line"><a name="a489"></a><span class="src-doc"> * comparaison d'URLs</span></div></li> |
<li><div class="src-line"><a name="a490"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a491"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string </span></div></li> |
<li><div class="src-line"><a name="a492"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a493"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetURLNormalisee">getURLNormalisee</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a494"></a> <span class="src-var">$url </span>= <span class="src-key">clone </span><span class="src-var">$this</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a495"></a> <span class="src-var">$url</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodnormaliser">normaliser</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a496"></a> <span class="src-key">return </span><span class="src-var">$url</span><span class="src-sym">-></span><span class="src-id">getUrl</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a497"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a498"></a> </div></li> |
<li><div class="src-line"><a name="a499"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a500"></a><span class="src-doc"> * Renvoie une instance normalisée de Url</span></div></li> |
<li><div class="src-line"><a name="a501"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a502"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">Url </span></div></li> |
<li><div class="src-line"><a name="a503"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a504"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodnormaliser">normaliser</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a505"></a> <span class="src-comm">// See RFC 3886, section 6</span></div></li> |
<li><div class="src-line"><a name="a506"></a> </div></li> |
<li><div class="src-line"><a name="a507"></a> <span class="src-comm">// les cchémas sont insesibles à la casse</span></div></li> |
<li><div class="src-line"><a name="a508"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a509"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema </span>= <a href="http://www.php.net/strtolower">strtolower</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a510"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a511"></a> </div></li> |
<li><div class="src-line"><a name="a512"></a> <span class="src-comm">// les noms d'hotes sont insensibles à la casse</span></div></li> |
<li><div class="src-line"><a name="a513"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hote</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a514"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hote </span>= <a href="http://www.php.net/strtolower">strtolower</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hote</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a515"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a516"></a> </div></li> |
<li><div class="src-line"><a name="a517"></a> <span class="src-comm">// Supprimer le numéro de port par défaut pour les schemas connus (RFC 3986, section 6.2.3)</span></div></li> |
<li><div class="src-line"><a name="a518"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">port </span>&&</div></li> |
<li><div class="src-line"><a name="a519"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema </span>&&</div></li> |
<li><div class="src-line"><a name="a520"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">port </span>== <a href="http://www.php.net/getservbyname">getservbyname</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema</span><span class="src-sym">, </span><span class="src-str">'tcp'</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a521"></a> </div></li> |
<li><div class="src-line"><a name="a522"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">port </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a523"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a524"></a> </div></li> |
<li><div class="src-line"><a name="a525"></a> <span class="src-comm">// normalisation dans le cas d'un encodage avec %XX pourcentage (RFC 3986, section 6.2.2.1)</span></div></li> |
<li><div class="src-line"><a name="a526"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'infoUtilisateur'</span><span class="src-sym">, </span><span class="src-str">'hote'</span><span class="src-sym">, </span><span class="src-str">'chemin'</span><span class="src-sym">) </span><span class="src-key">as </span><span class="src-var">$partie</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a527"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$partie</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a528"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$partie </span>= <a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span><span class="src-str">'/%[0-9a-f]{2}/ie'</span><span class="src-sym">, </span><span class="src-str">'strtoupper("\0")'</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$partie</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a529"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a530"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a531"></a> </div></li> |
<li><div class="src-line"><a name="a532"></a> <span class="src-comm">// normalisation des segments du chemin (RFC 3986, section 6.2.2.3)</span></div></li> |
<li><div class="src-line"><a name="a533"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">supprimerSegmentsAPoints</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a534"></a> </div></li> |
<li><div class="src-line"><a name="a535"></a> <span class="src-comm">// normalisation basée sur le schéma (RFC 3986, section 6.2.3)</span></div></li> |
<li><div class="src-line"><a name="a536"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hote </span>&& <span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a537"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin </span>= <span class="src-str">'/'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a538"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a539"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a540"></a> </div></li> |
<li><div class="src-line"><a name="a541"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a542"></a><span class="src-doc"> * Renvoie vrai ou faux suivant que l'instance en cours représente une URL relative ou absolue.</span></div></li> |
<li><div class="src-line"><a name="a543"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a544"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">bool </span></div></li> |
<li><div class="src-line"><a name="a545"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a546"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodetreAbsolue">etreAbsolue</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a547"></a> <span class="src-key">return </span>(bool) <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a548"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a549"></a> </div></li> |
<li><div class="src-line"><a name="a550"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a551"></a><span class="src-doc"> * Renvoie une instance de Url représentant une URL absolue relative à</span></div></li> |
<li><div class="src-line"><a name="a552"></a><span class="src-doc"> * cette URL.</span></div></li> |
<li><div class="src-line"><a name="a553"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a554"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">Url</span><span class="src-doc">|</span><span class="src-doc-type">string</span><span class="src-doc-var">$reference </span><span class="src-doc">URL relative</span></div></li> |
<li><div class="src-line"><a name="a555"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a556"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">Url </span></div></li> |
<li><div class="src-line"><a name="a557"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a558"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodresoudre">resoudre</a><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a559"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/is_string">is_string</a><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a560"></a> <span class="src-var">$reference </span>= <span class="src-key">new </span><span class="src-id">self</span><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a561"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a562"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodetreAbsolue">etreAbsolue</a><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a563"></a> throw <span class="src-key">new </span><span class="src-id">Exception</span><span class="src-sym">(</span><span class="src-str">'L\'URL de base doit être absolue !'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a564"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a565"></a> </div></li> |
<li><div class="src-line"><a name="a566"></a> <span class="src-comm">// Un parseur non strict peut choisir d'ignorer un schema dans la référence</span></div></li> |
<li><div class="src-line"><a name="a567"></a> <span class="src-comm">// si celui ci est identique au schéma de base de l'URI.</span></div></li> |
<li><div class="src-line"><a name="a568"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetOption">getOption</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_STRICTE</span><span class="src-sym">) </span>&& <span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">schema </span>== <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a569"></a> <span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">schema </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a570"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a571"></a> </div></li> |
<li><div class="src-line"><a name="a572"></a> <span class="src-var">$cible </span>= <span class="src-key">new </span><span class="src-id">self</span><span class="src-sym">(</span><span class="src-str">''</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a573"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">schema </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a574"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">schema </span>= <span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">schema</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a575"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetAutorite">setAutorite</a><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetAutorite">getAutorite</a><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a576"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">chemin </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">supprimerSegmentsAPoints</span><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a577"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">requete </span>= <span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">requete</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a578"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a579"></a> <span class="src-var">$autorite </span>= <span class="src-var">$reference</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetAutorite">getAutorite</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a580"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$autorite </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a581"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetAutorite">setAutorite</a><span class="src-sym">(</span><span class="src-var">$autorite</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a582"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">chemin </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">supprimerSegmentsAPoints</span><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a583"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">requete </span>= <span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">requete</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a584"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a585"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">chemin </span>== <span class="src-str">''</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a586"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">chemin </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a587"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">requete </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a588"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">requete </span>= <span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">requete</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a589"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a590"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">requete </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">requete</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a591"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a592"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a593"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-num">1</span><span class="src-sym">) </span>== <span class="src-str">'/'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a594"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">chemin </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">supprimerSegmentsAPoints</span><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a595"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a596"></a> <span class="src-comm">// Concaténation chemins (RFC 3986, section 5.2.3)</span></div></li> |
<li><div class="src-line"><a name="a597"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hote </span>!== <span class="src-id">false </span>&& <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin </span>== <span class="src-str">''</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a598"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">chemin </span>= <span class="src-str">'/' </span>. <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a599"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a600"></a> <span class="src-var">$i </span>= <a href="http://www.php.net/strrpos">strrpos</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">, </span><span class="src-str">'/'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a601"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$i </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a602"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">chemin </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-var">$i </span>+ <span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a603"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a604"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">chemin </span>.= <span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a605"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a606"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">chemin </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">supprimerSegmentsAPoints</span><span class="src-sym">(</span><span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a607"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a608"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">requete </span>= <span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">requete</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a609"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a610"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetAutorite">setAutorite</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetAutorite">getAutorite</a><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a611"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a612"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">schema </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a613"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a614"></a> </div></li> |
<li><div class="src-line"><a name="a615"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">fragment </span>= <span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">fragment</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a616"></a> </div></li> |
<li><div class="src-line"><a name="a617"></a> <span class="src-key">return </span><span class="src-var">$cible</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a618"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a619"></a> </div></li> |
<li><div class="src-line"><a name="a620"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a621"></a><span class="src-doc"> * La suppression des segments à points est décrite dans la RFC 3986, section 5.2.4, e.g.</span></div></li> |
<li><div class="src-line"><a name="a622"></a><span class="src-doc"> * "/foo/../bar/baz" => "/bar/baz"</span></div></li> |
<li><div class="src-line"><a name="a623"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a624"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$chemin </span><span class="src-doc">un chemin</span></div></li> |
<li><div class="src-line"><a name="a625"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a626"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">un chemin</span></div></li> |
<li><div class="src-line"><a name="a627"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a628"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">supprimerSegmentsAPoints</span><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a629"></a> <span class="src-var">$sortie </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a630"></a> </div></li> |
<li><div class="src-line"><a name="a631"></a> <span class="src-comm">// Assurons de ne pas nous retrouver piégés dans une boucle infinie due à un bug de</span></div></li> |
<li><div class="src-line"><a name="a632"></a> <span class="src-comm">// cette méthode</span></div></li> |
<li><div class="src-line"><a name="a633"></a> <span class="src-var">$j </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a634"></a> <span class="src-key">while </span><span class="src-sym">(</span><span class="src-var">$chemin </span>&& <span class="src-var">$j</span>++ < <span class="src-num">100</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a635"></a> <span class="src-comm">// Étape A</span></div></li> |
<li><div class="src-line"><a name="a636"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">) </span>== <span class="src-str">'./'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a637"></a> <span class="src-var">$chemin </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a638"></a> <span class="src-sym">} </span><span class="src-key">elseif </span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">) </span>== <span class="src-str">'../'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a639"></a> <span class="src-var">$chemin </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a640"></a> </div></li> |
<li><div class="src-line"><a name="a641"></a> <span class="src-comm">// Étape B</span></div></li> |
<li><div class="src-line"><a name="a642"></a> <span class="src-sym">} </span><span class="src-key">elseif </span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">) </span>== <span class="src-str">'/./' </span>|| <span class="src-var">$chemin </span>== <span class="src-str">'/.'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a643"></a> <span class="src-var">$chemin </span>= <span class="src-str">'/' </span>. <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a644"></a> </div></li> |
<li><div class="src-line"><a name="a645"></a> <span class="src-comm">// Étape C</span></div></li> |
<li><div class="src-line"><a name="a646"></a> <span class="src-sym">} </span><span class="src-key">elseif </span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-num">4</span><span class="src-sym">) </span>== <span class="src-str">'/../' </span>|| <span class="src-var">$chemin </span>== <span class="src-str">'/..'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a647"></a> <span class="src-var">$chemin </span>= <span class="src-str">'/' </span>. <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-num">4</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a648"></a> <span class="src-var">$i </span>= <a href="http://www.php.net/strrpos">strrpos</a><span class="src-sym">(</span><span class="src-var">$sortie</span><span class="src-sym">, </span><span class="src-str">'/'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a649"></a> <span class="src-var">$sortie </span>= <span class="src-var">$i </span>=== <span class="src-id">false </span>? <span class="src-str">'' </span>: <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$sortie</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-var">$i</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a650"></a> </div></li> |
<li><div class="src-line"><a name="a651"></a> <span class="src-comm">// Étape D</span></div></li> |
<li><div class="src-line"><a name="a652"></a> <span class="src-sym">} </span><span class="src-key">elseif </span><span class="src-sym">(</span><span class="src-var">$chemin </span>== <span class="src-str">'.' </span>|| <span class="src-var">$chemin </span>== <span class="src-str">'..'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a653"></a> <span class="src-var">$chemin </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a654"></a> </div></li> |
<li><div class="src-line"><a name="a655"></a> <span class="src-comm">// Étape E</span></div></li> |
<li><div class="src-line"><a name="a656"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a657"></a> <span class="src-var">$i </span>= <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-str">'/'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a658"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$i </span>=== <span class="src-num">0</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a659"></a> <span class="src-var">$i </span>= <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-str">'/'</span><span class="src-sym">, </span><span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a660"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a661"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$i </span>=== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a662"></a> <span class="src-var">$i </span>= <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a663"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a664"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-var">$i</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a665"></a> <span class="src-var">$chemin </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-var">$i</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a666"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a667"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a668"></a> </div></li> |
<li><div class="src-line"><a name="a669"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a670"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a671"></a> </div></li> |
<li><div class="src-line"><a name="a672"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a673"></a><span class="src-doc"> * Renvoie une instance de Url representant l'URL canonique du script PHP</span></div></li> |
<li><div class="src-line"><a name="a674"></a><span class="src-doc"> * en cours d'éxécution</span></div></li> |
<li><div class="src-line"><a name="a675"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a676"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string </span></div></li> |
<li><div class="src-line"><a name="a677"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a678"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetCanonique">getCanonique</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a679"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'REQUEST_METHOD'</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a680"></a> <span class="src-comm">// ALERT - pas d'URL en cours</span></div></li> |
<li><div class="src-line"><a name="a681"></a> throw <span class="src-key">new </span><span class="src-id">Exception</span><span class="src-sym">(</span><span class="src-str">'Le script n\'a pas été appellé à travers un serveur web'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a682"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a683"></a> </div></li> |
<li><div class="src-line"><a name="a684"></a> <span class="src-comm">// on part d'une URL relative</span></div></li> |
<li><div class="src-line"><a name="a685"></a> <span class="src-var">$url </span>= <span class="src-key">new </span><span class="src-id">self</span><span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'PHP_SELF'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a686"></a> <span class="src-var">$url</span><span class="src-sym">-></span><span class="src-id">schema </span>= isset<span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'HTTPS'</span><span class="src-sym">]</span><span class="src-sym">) </span>? <span class="src-str">'https' </span>: <span class="src-str">'http'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a687"></a> <span class="src-var">$url</span><span class="src-sym">-></span><span class="src-id">hote </span>= <span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'SERVER_NAME'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a688"></a> <span class="src-var">$port </span>= <a href="http://www.php.net/intval">intval</a><span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'SERVER_PORT'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a689"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">-></span><span class="src-id">schema </span>== <span class="src-str">'http' </span>&& <span class="src-var">$port </span>!= <span class="src-num">80 </span>||</div></li> |
<li><div class="src-line"><a name="a690"></a> <span class="src-var">$url</span><span class="src-sym">-></span><span class="src-id">schema </span>== <span class="src-str">'https' </span>&& <span class="src-var">$port </span>!= <span class="src-num">443</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a691"></a> </div></li> |
<li><div class="src-line"><a name="a692"></a> <span class="src-var">$url</span><span class="src-sym">-></span><span class="src-id">port </span>= <span class="src-var">$port</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a693"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a694"></a> <span class="src-key">return </span><span class="src-var">$url</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a695"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a696"></a> </div></li> |
<li><div class="src-line"><a name="a697"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a698"></a><span class="src-doc"> * Renvoie l'URL utilisée pour récupérer la requête en cours</span></div></li> |
<li><div class="src-line"><a name="a699"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a700"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string </span></div></li> |
<li><div class="src-line"><a name="a701"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a702"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetURLDemande">getURLDemande</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a703"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getDemande</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-></span><span class="src-id">getUrl</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a704"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a705"></a> </div></li> |
<li><div class="src-line"><a name="a706"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a707"></a><span class="src-doc"> * Renvoie une instance de Url representant l'URL utilisée pour</span></div></li> |
<li><div class="src-line"><a name="a708"></a><span class="src-doc"> * récupérer la requête en cours</span></div></li> |
<li><div class="src-line"><a name="a709"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a710"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">Url </span></div></li> |
<li><div class="src-line"><a name="a711"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a712"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetDemande">getDemande</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a713"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'REQUEST_METHOD'</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a714"></a> <span class="src-comm">// ALERTE - pas d'URL en cours</span></div></li> |
<li><div class="src-line"><a name="a715"></a> throw <span class="src-key">new </span><span class="src-id">Exception</span><span class="src-sym">(</span><span class="src-str">'Le script n\'a pas été appellé à travers un serveur web'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a716"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a717"></a> </div></li> |
<li><div class="src-line"><a name="a718"></a> <span class="src-comm">// On part d'une URL relative</span></div></li> |
<li><div class="src-line"><a name="a719"></a> <span class="src-var">$url </span>= <span class="src-key">new </span><span class="src-id">self</span><span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'REQUEST_URI'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a720"></a> <span class="src-var">$url</span><span class="src-sym">-></span><span class="src-id">schema </span>= isset<span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'HTTPS'</span><span class="src-sym">]</span><span class="src-sym">) </span>? <span class="src-str">'https' </span>: <span class="src-str">'http'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a721"></a> <span class="src-comm">// On met à jour les valeurs de l'hote et si possible du port</span></div></li> |
<li><div class="src-line"><a name="a722"></a> <span class="src-var">$url</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetAutorite">setAutorite</a><span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'HTTP_hote'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a723"></a> <span class="src-key">return </span><span class="src-var">$url</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a724"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a725"></a> </div></li> |
<li><div class="src-line"><a name="a726"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a727"></a><span class="src-doc"> * Met à jour la valeur de l'option spécifiée.</span></div></li> |
<li><div class="src-line"><a name="a728"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a729"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nomOption </span><span class="src-doc">une des constantes commençant par self::OPTION_</span></div></li> |
<li><div class="src-line"><a name="a730"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">mixed </span><span class="src-doc"> </span><span class="src-doc-var">$valeur </span><span class="src-doc"> valeur de l'option</span></div></li> |
<li><div class="src-line"><a name="a731"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a732"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a733"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> self::OPTION_STRICTE</span></div></li> |
<li><div class="src-line"><a name="a734"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> self::OPTION_UTILISER_CROCHETS</span></div></li> |
<li><div class="src-line"><a name="a735"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> self::OPTION_ENCODER_CLES</span></div></li> |
<li><div class="src-line"><a name="a736"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a737"></a> <span class="src-key">function </span><a href="../Framework/Url.html#methodsetOption">setOption</a><span class="src-sym">(</span><span class="src-var">$nomOption</span><span class="src-sym">, </span><span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a738"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/array_key_exists">array_key_exists</a><span class="src-sym">(</span><span class="src-var">$nomOption</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">options</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a739"></a> <span class="src-key">return </span><span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a740"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a741"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">options</span><span class="src-sym">[</span><span class="src-var">$nomOption</span><span class="src-sym">] </span>= <span class="src-var">$valeur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a742"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a743"></a> </div></li> |
<li><div class="src-line"><a name="a744"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a745"></a><span class="src-doc"> * Renvoie la valeur de l'option specifiée.</span></div></li> |
<li><div class="src-line"><a name="a746"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a747"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nomOption </span><span class="src-doc">Nom de l'option demandée</span></div></li> |
<li><div class="src-line"><a name="a748"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a749"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">mixed </span></div></li> |
<li><div class="src-line"><a name="a750"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a751"></a> <span class="src-key">function </span><a href="../Framework/Url.html#methodgetOption">getOption</a><span class="src-sym">(</span><span class="src-var">$nomOption</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a752"></a> <span class="src-key">return </span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">options</span><span class="src-sym">[</span><span class="src-var">$nomOption</span><span class="src-sym">]</span><span class="src-sym">)</span></div></li> |
<li><div class="src-line"><a name="a753"></a> ? <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">options</span><span class="src-sym">[</span><span class="src-var">$nomOption</span><span class="src-sym">] </span>: <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a754"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a755"></a> </div></li> |
<li><div class="src-line"><a name="a756"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#method__toString">__toString</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a757"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetURL">getURL</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a758"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a759"></a><span class="src-sym">}</span></div></li> |
</ol></div> |
</div> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:28 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</body> |
</html> |
/trunk/doc/HTMLframesConverter/errors.html |
---|
New file |
0,0 → 1,87 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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>phpDocumentor Parser Errors and Warnings</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" href="media/stylesheet.css" /> |
</head> |
<body> |
<a href="#Post-parsing">Post-parsing</a><br> |
<a href="#autoload.inc.php">autoload.inc.php</a><br> |
<a href="#Chronometre.php">Chronometre.php</a><br> |
<a href="#Config.php">Config.php</a><br> |
<a href="#Controleur.php">Controleur.php</a><br> |
<a href="#Debug.php">Debug.php</a><br> |
<a href="#GestionnaireException.php">GestionnaireException.php</a><br> |
<a href="#Log.php">Log.php</a><br> |
<a href="#Modele.php">Modele.php</a><br> |
<a href="#Registre.php">Registre.php</a><br> |
<a href="#SquelettePhp.php">SquelettePhp.php</a><br> |
<a href="#Url.php">Url.php</a><br> |
<a name="Application.php"></a> |
<h1>Application.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 17</b> - package Framework is already in category php5, will now replace with category Debogage<br> |
<b>Warning on line 17</b> - DocBlock would be page-level, but precedes class "Application", use another DocBlock to document the file<br> |
<a name="autoload.inc.php"></a> |
<h1>autoload.inc.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 21</b> - package Framework is already in category Class, will now replace with category Fichier_De_Fonctions<br> |
<b>Warning on line 22</b> - Page-level DocBlock precedes "define DS", use another DocBlock to document the source element<br> |
<a name="Chronometre.php"></a> |
<h1>Chronometre.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 22</b> - package Framework is already in category Class, will now replace with category PHP<br> |
<b>Warning on line 22</b> - DocBlock would be page-level, but precedes class "Chronometre", use another DocBlock to document the file<br> |
<a name="Config.php"></a> |
<h1>Config.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 18</b> - package Framework is already in category php5, will now replace with category PHP<br> |
<b>Warning on line 18</b> - DocBlock would be page-level, but precedes class "Config", use another DocBlock to document the file<br> |
<a name="Controleur.php"></a> |
<h1>Controleur.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 18</b> - DocBlock would be page-level, but precedes class "Controleur", use another DocBlock to document the file<br> |
<b>Warning on line 18</b> - package Framework is already in category Php5, will now replace with category php5<br> |
<a name="Debug.php"></a> |
<h1>Debug.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 19</b> - package Framework is already in category Class, will now replace with category Debogage<br> |
<b>Warning on line 19</b> - DocBlock would be page-level, but precedes class "Debug", use another DocBlock to document the file<br> |
<a name="GestionnaireException.php"></a> |
<h1>GestionnaireException.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 18</b> - DocBlock would be page-level, but precedes class "GestionnaireException", use another DocBlock to document the file<br> |
<b>Warning on line 18</b> - package Framework is already in category Fichier_De_Fonctions, will now replace with category Class<br> |
<a name="Log.php"></a> |
<h1>Log.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 16</b> - package Framework is already in category Debogage, will now replace with category PHP<br> |
<b>Warning on line 16</b> - DocBlock would be page-level, but precedes class "Log", use another DocBlock to document the file<br> |
<a name="Modele.php"></a> |
<h1>Modele.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 20</b> - package Framework is already in category PHP, will now replace with category Class<br> |
<b>Warning on line 20</b> - DocBlock would be page-level, but precedes class "Modele", use another DocBlock to document the file<br> |
<a name="Registre.php"></a> |
<h1>Registre.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 18</b> - package Framework is already in category PHP, will now replace with category Class<br> |
<b>Warning on line 18</b> - DocBlock would be page-level, but precedes class "Registre", use another DocBlock to document the file<br> |
<a name="SquelettePhp.php"></a> |
<h1>SquelettePhp.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 15</b> - DocBlock would be page-level, but precedes class "SquelettePhp", use another DocBlock to document the file<br> |
<b>Warning on line 15</b> - package Framework is already in category Debogage, will now replace with category php5<br> |
<a name="Url.php"></a> |
<h1>Url.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 20</b> - package Framework is already in category php, will now replace with category Php5<br> |
<b>Warning on line 21</b> - DocBlock would be page-level, but precedes class "Url", use another DocBlock to document the file<br> |
<p class="notes" id="credit"> |
Documentation generated on Thu, 04 Mar 2010 19:27:28 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> |
</p> |
</body> |
</html> |
/trunk/doc/HTMLframesConverter/media/stylesheet.css |
---|
New file |
0,0 → 1,184 |
a { color: #0000C0; text-decoration: underline; } |
a:hover { text-decoration: underline; background-color: #FFFFFF } |
a:active { text-decoration: underline; background-color: #FFFFFF } |
body, table { background-color: #EEEEEE; font-family: Verdana, Arial, sans-serif; font-size: 10pt } |
p, li { line-height: 140% } |
a img { border: 0px; } |
dd { margin-left: 0px; padding-left: 1em; } |
/* Page layout/boxes */ |
.info-box {} |
.info-box-title { margin: 1em 0em 0em 0em; padding: .25em; font-weight: normal; font-size: 14pt; border: 2px solid #999999; background-color: #FFFFFF } |
.info-box-body { border: 1px solid #999999; padding: .5em; } |
.nav-bar { font-size: 8pt; white-space: nowrap; text-align: right; padding: .2em; margin: 0em 0em 1em 0em; } |
.oddrow { background-color: #F8F8F8; border: 1px solid #AAAAAA; padding: .5em; margin-bottom: 1em} |
.evenrow { border: 1px solid #AAAAAA; padding: .5em; margin-bottom: 1em} |
.page-body { max-width: 800px; margin: auto; } |
.tree { } |
/* Index formatting classes */ |
.index-item-body { margin-top: .5em; margin-bottom: .5em} |
.index-item-description { margin-top: .25em } |
.index-item-details { font-weight: normal; font-style: italic; font-size: 8pt } |
.index-letter-section { background-color: #EEEEEE; border: 1px dotted #999999; padding: .5em; margin-bottom: 1em} |
.index-letter-title { font-size: 12pt; font-weight: bold } |
.index-letter-menu { text-align: center; margin: 1em } |
.index-letter { font-size: 12pt } |
/* Docbook classes */ |
.description {} |
.short-description { font-weight: bold; color: #666666; } |
.tags { padding-left: 0em; margin-left: 3em; color: #666666; list-style-type: square; } |
.parameters { padding-left: 0em; margin-left: 3em; font-style: italic; list-style-type: square; } |
.redefinitions { font-size: 8pt; padding-left: 0em; margin-left: 2em; } |
.package { } |
.package-title { font-weight: bold; font-size: 14pt; border-bottom: 1px solid black } |
.package-details { font-size: 85%; } |
.sub-package { font-weight: bold; font-size: 120% } |
.tutorial { border-width: thin; border-color: #0066ff } |
.tutorial-nav-box { width: 100%; border: 1px solid #AAAAAA; background-color: #DDDDFF; } |
.nav-button-disabled { color: #AAAAAA; } |
.nav-button:active, |
.nav-button:focus, |
.nav-button:hover { background-color: #CCCCCC; outline: 1px solid #999999; text-decoration: none } |
.folder-title { font-style: italic } |
/* Generic formatting */ |
.field { font-weight: bold; } |
.detail { font-size: 8pt; } |
.notes { font-style: italic; font-size: 8pt; } |
.separator { background-color: #999999; height: 2px; } |
.warning { color: #FF6600; } |
.disabled { font-style: italic; color: #999999; } |
/* Code elements */ |
.line-number { } |
.class-table { width: 100%; } |
.class-table-header { border-bottom: 1px dotted #666666; text-align: left; background-color: DDDDFF } |
.class-name { color: #000000; font-weight: bold; } |
.method-summary { padding-left: 1em; font-size: 8pt } |
.method-header { background-color: #DDDDFF; padding: 1px; } |
.method-definition { margin-bottom: .3em } |
.method-title { font-weight: bold } |
.method-name { font-weight: bold; } |
.method-signature { font-size: 85%; color: #666666; margin: .5em 0em } |
.method-result { font-style: italic; } |
.var-summary { padding-left: 1em; font-size: 8pt; } |
.var-header { background-color: #DDDDFF; padding: 1px; } |
.var-title { margin-bottom: .3em } |
.var-type { font-style: italic; } |
.var-name { font-weight: bold; } |
.var-default {} |
.var-description { font-weight: normal; color: #000000; } |
.include-title { } |
.include-type { font-style: italic; } |
.include-name { font-weight: bold; } |
.const-title { } |
.const-name { font-weight: bold; } |
/* Syntax highlighting */ |
.src-code { border: 1px solid #999999; padding: 1em; |
font-family: 'Courier New', Courier, monospace; font-weight: normal; } |
.src-line { font-family: 'Courier New', Courier, monospace; font-weight: normal; } |
.src-comm { color: green; } |
.src-id { } |
.src-inc { color: #0000FF; } |
.src-key { color: #0000FF; } |
.src-num { color: #CC0000; } |
.src-str { color: #66cccc; } |
.src-sym { font-weight: bold; } |
.src-var { } |
.src-php { font-weight: bold; } |
.src-doc { color: #009999 } |
.src-doc-close-template { color: #0000FF } |
.src-doc-coretag { color: #0099FF; font-weight: bold } |
.src-doc-inlinetag { color: #0099FF } |
.src-doc-internal { color: #6699cc } |
.src-doc-tag { color: #0080CC } |
.src-doc-template { color: #0000FF } |
.src-doc-type { font-style: italic } |
.src-doc-var { font-style: italic } |
.tute-tag { color: #009999 } |
.tute-attribute-name { color: #0000FF } |
.tute-attribute-value { color: #0099FF } |
.tute-entity { font-weight: bold; } |
.tute-comment { font-style: italic } |
.tute-inline-tag { color: #636311; font-weight: bold } |
/* tutorial */ |
.authors { } |
.author { font-style: italic; font-weight: bold } |
.author-blurb { margin: .5em 0em .5em 2em; font-size: 85%; font-weight: normal; font-style: normal } |
.example { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; } |
.listing { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; white-space: nowrap; } |
.release-info { font-size: 85%; font-style: italic; margin: 1em 0em } |
.ref-title-box { } |
.ref-title { } |
.ref-purpose { font-style: italic; color: #666666 } |
.ref-synopsis { } |
.title { font-weight: bold; border: 2px solid #999999; background-color: #FFFFFF; padding: 2px } |
.cmd-synopsis { margin: 1em 0em } |
.cmd-title { font-weight: bold } |
.toc { margin-left: 2em; padding-left: 0em } |
/*------------------------------------------------------------------------------ |
webfx-tree |
------------------------------------------------------------------------------*/ |
.webfx-tree-container { |
margin: 0px; |
padding: 0px; |
white-space: nowrap; |
font: icon; |
} |
.webfx-tree-item { |
padding: 0px; |
margin: 0px; |
color: black; |
white-space: nowrap; |
font: icon; |
} |
.webfx-tree-item a { |
margin-left: 3px; |
padding: 1px 2px 1px 2px; |
color: black; |
text-decoration: none; |
} |
.webfx-tree-item a:hover, .webfx-tree-item a:active { |
color: #666666; |
background: white; |
text-decoration: none |
} |
.webfx-tree-item img { |
vertical-align: middle; |
border: 0px; |
} |
.webfx-tree-icon { |
width: 16px; |
height: 16px; |
} |
/trunk/doc/HTMLframesConverter/media/images/minus.gif |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/doc/HTMLframesConverter/media/images/minus.gif |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/doc/HTMLframesConverter/media/images/empty.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
/trunk/doc/HTMLframesConverter/media/images/empty.png |
---|
New file |
Property changes: |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/trunk/doc/HTMLframesConverter/media/images/Lplus.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
/trunk/doc/HTMLframesConverter/media/images/Lplus.png |
---|
New file |
Property changes: |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/trunk/doc/HTMLframesConverter/media/images/Tminus.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
/trunk/doc/HTMLframesConverter/media/images/Tminus.png |
---|
New file |
Property changes: |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/trunk/doc/HTMLframesConverter/media/images/T.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
/trunk/doc/HTMLframesConverter/media/images/T.png |
---|
New file |
Property changes: |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/trunk/doc/HTMLframesConverter/media/images/plus.gif |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/doc/HTMLframesConverter/media/images/plus.gif |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/doc/HTMLframesConverter/media/images/Lminus.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
/trunk/doc/HTMLframesConverter/media/images/Lminus.png |
---|
New file |
Property changes: |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/trunk/doc/HTMLframesConverter/media/images/Tplus.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
/trunk/doc/HTMLframesConverter/media/images/Tplus.png |
---|
New file |
Property changes: |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/trunk/doc/HTMLframesConverter/media/images/blank.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
/trunk/doc/HTMLframesConverter/media/images/blank.png |
---|
New file |
Property changes: |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/trunk/doc/HTMLframesConverter/media/images/I.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
/trunk/doc/HTMLframesConverter/media/images/I.png |
---|
New file |
Property changes: |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/trunk/doc/HTMLframesConverter/media/images/L.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
/trunk/doc/HTMLframesConverter/media/images/L.png |
---|
New file |
Property changes: |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/trunk/doc/HTMLframesConverter/media/lib/classTree.js |
---|
New file |
0,0 → 1,454 |
/*----------------------------------------\ |
| Cross Browser Tree Widget 1.1 | |
|-----------------------------------------| |
| Created by Emil A. Eklund (eae@eae.net) | |
| For WebFX (http://webfx.eae.net/) | |
|-----------------------------------------| |
| This script is provided as is without | |
| any warranty whatsoever. It may be used | |
| free of charge for non commerical sites | |
| For commerical use contact the author | |
| of this script for further details. | |
|-----------------------------------------| |
| Created 2000-12-11 | Updated 2001-09-06 | |
\----------------------------------------*/ |
var webFXTreeConfig = { |
rootIcon : 'media/images/empty.png', |
openRootIcon : 'media/images/empty.png', |
folderIcon : 'media/images/empty.png', |
openFolderIcon : 'media/images/empty.png', |
fileIcon : 'media/images/empty.png', |
iIcon : 'media/images/I.png', |
lIcon : 'media/images/L.png', |
lMinusIcon : 'media/images/Lminus.png', |
lPlusIcon : 'media/images/Lplus.png', |
tIcon : 'media/images/T.png', |
tMinusIcon : 'media/images/Tminus.png', |
tPlusIcon : 'media/images/Tplus.png', |
blankIcon : 'media/images/blank.png', |
defaultText : 'Tree Item', |
defaultAction : 'javascript:void(0);', |
defaultTarget : 'right', |
defaultBehavior : 'classic' |
}; |
var webFXTreeHandler = { |
idCounter : 0, |
idPrefix : "webfx-tree-object-", |
all : {}, |
behavior : null, |
selected : null, |
getId : function() { return this.idPrefix + this.idCounter++; }, |
toggle : function (oItem) { this.all[oItem.id.replace('-plus','')].toggle(); }, |
select : function (oItem) { this.all[oItem.id.replace('-icon','')].select(); }, |
focus : function (oItem) { this.all[oItem.id.replace('-anchor','')].focus(); }, |
blur : function (oItem) { this.all[oItem.id.replace('-anchor','')].blur(); }, |
keydown : function (oItem) { return this.all[oItem.id].keydown(window.event.keyCode); }, |
cookies : new WebFXCookie() |
}; |
/* |
* WebFXCookie class |
*/ |
function WebFXCookie() { |
if (document.cookie.length) { this.cookies = ' ' + document.cookie; } |
} |
WebFXCookie.prototype.setCookie = function (key, value) { |
document.cookie = key + "=" + escape(value); |
} |
WebFXCookie.prototype.getCookie = function (key) { |
if (this.cookies) { |
var start = this.cookies.indexOf(' ' + key + '='); |
if (start == -1) { return null; } |
var end = this.cookies.indexOf(";", start); |
if (end == -1) { end = this.cookies.length; } |
end -= start; |
var cookie = this.cookies.substr(start,end); |
return unescape(cookie.substr(cookie.indexOf('=') + 1, cookie.length - cookie.indexOf('=') + 1)); |
} |
else { return null; } |
} |
/* |
* WebFXTreeAbstractNode class |
*/ |
function WebFXTreeAbstractNode(sText, sAction, sTarget) { |
this.childNodes = []; |
this.id = webFXTreeHandler.getId(); |
this.text = sText || webFXTreeConfig.defaultText; |
this.action = sAction || webFXTreeConfig.defaultAction; |
this.targetWindow = sTarget || webFXTreeConfig.defaultTarget; |
this._last = false; |
webFXTreeHandler.all[this.id] = this; |
} |
WebFXTreeAbstractNode.prototype.add = function (node) { |
node.parentNode = this; |
this.childNodes[this.childNodes.length] = node; |
var root = this; |
if (this.childNodes.length >=2) { |
this.childNodes[this.childNodes.length -2]._last = false; |
} |
while (root.parentNode) { root = root.parentNode; } |
if (root.rendered) { |
if (this.childNodes.length >= 2) { |
document.getElementById(this.childNodes[this.childNodes.length -2].id + '-plus').src = ((this.childNodes[this.childNodes.length -2].folder)?webFXTreeConfig.tMinusIcon:webFXTreeConfig.tIcon); |
if (this.childNodes[this.childNodes.length -2].folder) { |
this.childNodes[this.childNodes.length -2].plusIcon = webFXTreeConfig.tPlusIcon; |
this.childNodes[this.childNodes.length -2].minusIcon = webFXTreeConfig.tMinusIcon; |
} |
this.childNodes[this.childNodes.length -2]._last = false; |
} |
this._last = true; |
var foo = this; |
while (foo.parentNode) { |
for (var i = 0; i < foo.parentNode.childNodes.length; i++) { |
if (foo.id == foo.parentNode.childNodes[i].id) { break; } |
} |
if (++i == foo.parentNode.childNodes.length) { foo.parentNode._last = true; } |
else { foo.parentNode._last = false; } |
foo = foo.parentNode; |
} |
document.getElementById(this.id + '-cont').insertAdjacentHTML("beforeEnd", node.toString()); |
if ((!this.folder) && (!this.openIcon)) { |
this.icon = webFXTreeConfig.folderIcon; |
this.openIcon = webFXTreeConfig.openFolderIcon; |
} |
this.folder = true; |
this.indent(); |
this.expand(); |
} |
return node; |
} |
WebFXTreeAbstractNode.prototype.toggle = function() { |
if (this.folder) { |
if (this.open) { this.collapse(); } |
else { this.expand(); } |
} |
} |
WebFXTreeAbstractNode.prototype.select = function() { |
document.getElementById(this.id + '-anchor').focus(); |
} |
WebFXTreeAbstractNode.prototype.focus = function() { |
webFXTreeHandler.selected = this; |
if ((this.openIcon) && (webFXTreeHandler.behavior != 'classic')) { document.getElementById(this.id + '-icon').src = this.openIcon; } |
document.getElementById(this.id + '-anchor').style.backgroundColor = 'highlight'; |
document.getElementById(this.id + '-anchor').style.color = 'highlighttext'; |
document.getElementById(this.id + '-anchor').focus(); |
} |
WebFXTreeAbstractNode.prototype.blur = function() { |
if ((this.openIcon) && (webFXTreeHandler.behavior != 'classic')) { document.getElementById(this.id + '-icon').src = this.icon; } |
document.getElementById(this.id + '-anchor').style.backgroundColor = 'transparent'; |
document.getElementById(this.id + '-anchor').style.color = 'menutext'; |
} |
WebFXTreeAbstractNode.prototype.doExpand = function() { |
if (webFXTreeHandler.behavior == 'classic') { document.getElementById(this.id + '-icon').src = this.openIcon; } |
if (this.childNodes.length) { document.getElementById(this.id + '-cont').style.display = 'block'; } |
this.open = true; |
webFXTreeHandler.cookies.setCookie(this.id.substr(18,this.id.length - 18), '1'); |
} |
WebFXTreeAbstractNode.prototype.doCollapse = function() { |
if (webFXTreeHandler.behavior == 'classic') { document.getElementById(this.id + '-icon').src = this.icon; } |
if (this.childNodes.length) { document.getElementById(this.id + '-cont').style.display = 'none'; } |
this.open = false; |
webFXTreeHandler.cookies.setCookie(this.id.substr(18,this.id.length - 18), '0'); |
} |
WebFXTreeAbstractNode.prototype.expandAll = function() { |
this.expandChildren(); |
if ((this.folder) && (!this.open)) { this.expand(); } |
} |
WebFXTreeAbstractNode.prototype.expandChildren = function() { |
for (var i = 0; i < this.childNodes.length; i++) { |
this.childNodes[i].expandAll(); |
} } |
WebFXTreeAbstractNode.prototype.collapseAll = function() { |
if ((this.folder) && (this.open)) { this.collapse(); } |
this.collapseChildren(); |
} |
WebFXTreeAbstractNode.prototype.collapseChildren = function() { |
for (var i = 0; i < this.childNodes.length; i++) { |
this.childNodes[i].collapseAll(); |
} } |
WebFXTreeAbstractNode.prototype.indent = function(lvl, del, last, level) { |
/* |
* Since we only want to modify items one level below ourself, |
* and since the rightmost indentation position is occupied by |
* the plus icon we set this to -2 |
*/ |
if (lvl == null) { lvl = -2; } |
var state = 0; |
for (var i = this.childNodes.length - 1; i >= 0 ; i--) { |
state = this.childNodes[i].indent(lvl + 1, del, last, level); |
if (state) { return; } |
} |
if (del) { |
if (level >= this._level) { |
if (this.folder) { |
document.getElementById(this.id + '-plus').src = (this.open)?webFXTreeConfig.lMinusIcon:webFXTreeConfig.lPlusIcon; |
this.plusIcon = webFXTreeConfig.lPlusIcon; |
this.minusIcon = webFXTreeConfig.lMinusIcon; |
} |
else { document.getElementById(this.id + '-plus').src = webFXTreeConfig.lIcon; } |
return 1; |
} |
} |
var foo = document.getElementById(this.id + '-indent-' + lvl); |
if (foo) { |
if ((del) && (last)) { foo._last = true; } |
if (foo._last) { foo.src = webFXTreeConfig.blankIcon; } |
else { foo.src = webFXTreeConfig.iIcon; } |
} |
return 0; |
} |
/* |
* WebFXTree class |
*/ |
function WebFXTree(sText, sAction, sBehavior, sIcon, sOpenIcon) { |
this.base = WebFXTreeAbstractNode; |
this.base(sText, sAction); |
this.icon = sIcon || webFXTreeConfig.rootIcon; |
this.openIcon = sOpenIcon || webFXTreeConfig.openRootIcon; |
/* Defaults to open */ |
this.open = (webFXTreeHandler.cookies.getCookie(this.id.substr(18,this.id.length - 18)) == '0')?false:true; |
this.folder = true; |
this.rendered = false; |
if (!webFXTreeHandler.behavior) { webFXTreeHandler.behavior = sBehavior || webFXTreeConfig.defaultBehavior; } |
this.targetWindow = 'right'; |
} |
WebFXTree.prototype = new WebFXTreeAbstractNode; |
WebFXTree.prototype.setBehavior = function (sBehavior) { |
webFXTreeHandler.behavior = sBehavior; |
}; |
WebFXTree.prototype.getBehavior = function (sBehavior) { |
return webFXTreeHandler.behavior; |
}; |
WebFXTree.prototype.getSelected = function() { |
if (webFXTreeHandler.selected) { return webFXTreeHandler.selected; } |
else { return null; } |
} |
WebFXTree.prototype.remove = function() { } |
WebFXTree.prototype.expand = function() { |
this.doExpand(); |
} |
WebFXTree.prototype.collapse = function() { |
this.focus(); |
this.doCollapse(); |
} |
WebFXTree.prototype.getFirst = function() { |
return null; |
} |
WebFXTree.prototype.getLast = function() { |
return null; |
} |
WebFXTree.prototype.getNextSibling = function() { |
return null; |
} |
WebFXTree.prototype.getPreviousSibling = function() { |
return null; |
} |
WebFXTree.prototype.keydown = function(key) { |
if (key == 39) { this.expand(); return false; } |
if (key == 37) { this.collapse(); return false; } |
if ((key == 40) && (this.open)) { this.childNodes[0].select(); return false; } |
return true; |
} |
WebFXTree.prototype.toString = function() { |
var str = "<div id=\"" + this.id + "\" ondblclick=\"webFXTreeHandler.toggle(this);\" class=\"webfx-tree-item\" onkeydown=\"return webFXTreeHandler.keydown(this)\">"; |
str += "<img id=\"" + this.id + "-icon\" class=\"webfx-tree-icon\" src=\"" + ((webFXTreeHandler.behavior == 'classic' && this.open)?this.openIcon:this.icon) + "\" onclick=\"webFXTreeHandler.select(this);\"><a href=\"" + this.action + "\" id=\"" + this.id + "-anchor\" target=\"" + this.targetWindow + "\" onfocus=\"webFXTreeHandler.focus(this);\" onblur=\"webFXTreeHandler.blur(this);\">" + this.text + "</a></div>"; |
str += "<div id=\"" + this.id + "-cont\" class=\"webfx-tree-container\" style=\"display: " + ((this.open)?'block':'none') + ";\">"; |
for (var i = 0; i < this.childNodes.length; i++) { |
str += this.childNodes[i].toString(i, this.childNodes.length); |
} |
str += "</div>"; |
this.rendered = true; |
return str; |
}; |
/* |
* WebFXTreeItem class |
*/ |
function WebFXTreeItem(sText, sAction, eParent, sIcon, sOpenIcon) { |
this.base = WebFXTreeAbstractNode; |
this.base(sText, sAction); |
/* Defaults to close */ |
this.open = (webFXTreeHandler.cookies.getCookie(this.id.substr(18,this.id.length - 18)) == '1')?true:false; |
if (eParent) { eParent.add(this); } |
if (sIcon) { this.icon = sIcon; } |
if (sOpenIcon) { this.openIcon = sOpenIcon; } |
} |
WebFXTreeItem.prototype = new WebFXTreeAbstractNode; |
WebFXTreeItem.prototype.remove = function() { |
var parentNode = this.parentNode; |
var prevSibling = this.getPreviousSibling(true); |
var nextSibling = this.getNextSibling(true); |
var folder = this.parentNode.folder; |
var last = ((nextSibling) && (nextSibling.parentNode) && (nextSibling.parentNode.id == parentNode.id))?false:true; |
this.getPreviousSibling().focus(); |
this._remove(); |
if (parentNode.childNodes.length == 0) { |
parentNode.folder = false; |
parentNode.open = false; |
} |
if (last) { |
if (parentNode.id == prevSibling.id) { |
document.getElementById(parentNode.id + '-icon').src = webFXTreeConfig.fileIcon; |
} |
else { } |
} |
if ((!prevSibling.parentNode) || (prevSibling.parentNode != parentNode)) { |
parentNode.indent(null, true, last, this._level); |
} |
if (document.getElementById(prevSibling.id + '-plus')) { |
if (nextSibling) { |
if ((parentNode == prevSibling) && (parentNode.getNextSibling)) { document.getElementById(prevSibling.id + '-plus').src = webFXTreeConfig.tIcon; } |
else if (nextSibling.parentNode != prevSibling) { document.getElementById(prevSibling.id + '-plus').src = webFXTreeConfig.lIcon; } |
} |
else { document.getElementById(prevSibling.id + '-plus').src = webFXTreeConfig.lIcon; } |
} |
} |
WebFXTreeItem.prototype._remove = function() { |
for (var i = this.childNodes.length - 1; i >= 0; i--) { |
this.childNodes[i]._remove(); |
} |
for (var i = 0; i < this.parentNode.childNodes.length; i++) { |
if (this.id == this.parentNode.childNodes[i].id) { |
for (var j = i; j < this.parentNode.childNodes.length; j++) { |
this.parentNode.childNodes[i] = this.parentNode.childNodes[i+1] |
} |
this.parentNode.childNodes.length = this.parentNode.childNodes.length - 1; |
if (i + 1 == this.parentNode.childNodes.length) { this.parentNode._last = true; } |
} |
} |
webFXTreeHandler.all[this.id] = null; |
if (document.getElementById(this.id)) { |
document.getElementById(this.id).innerHTML = ""; |
document.getElementById(this.id).removeNode(); |
} |
} |
WebFXTreeItem.prototype.expand = function() { |
this.doExpand(); |
document.getElementById(this.id + '-plus').src = this.minusIcon; |
} |
WebFXTreeItem.prototype.collapse = function() { |
this.focus(); |
this.doCollapse(); |
document.getElementById(this.id + '-plus').src = this.plusIcon; |
} |
WebFXTreeItem.prototype.getFirst = function() { |
return this.childNodes[0]; |
} |
WebFXTreeItem.prototype.getLast = function() { |
if (this.childNodes[this.childNodes.length - 1].open) { return this.childNodes[this.childNodes.length - 1].getLast(); } |
else { return this.childNodes[this.childNodes.length - 1]; } |
} |
WebFXTreeItem.prototype.getNextSibling = function() { |
for (var i = 0; i < this.parentNode.childNodes.length; i++) { |
if (this == this.parentNode.childNodes[i]) { break; } |
} |
if (++i == this.parentNode.childNodes.length) { return this.parentNode.getNextSibling(); } |
else { return this.parentNode.childNodes[i]; } |
} |
WebFXTreeItem.prototype.getPreviousSibling = function(b) { |
for (var i = 0; i < this.parentNode.childNodes.length; i++) { |
if (this == this.parentNode.childNodes[i]) { break; } |
} |
if (i == 0) { return this.parentNode; } |
else { |
if ((this.parentNode.childNodes[--i].open) || (b && this.parentNode.childNodes[i].folder)) { return this.parentNode.childNodes[i].getLast(); } |
else { return this.parentNode.childNodes[i]; } |
} } |
WebFXTreeItem.prototype.keydown = function(key) { |
if ((key == 39) && (this.folder)) { |
if (!this.open) { this.expand(); return false; } |
else { this.getFirst().select(); return false; } |
} |
else if (key == 37) { |
if (this.open) { this.collapse(); return false; } |
else { this.parentNode.select(); return false; } |
} |
else if (key == 40) { |
if (this.open) { this.getFirst().select(); return false; } |
else { |
var sib = this.getNextSibling(); |
if (sib) { sib.select(); return false; } |
} } |
else if (key == 38) { this.getPreviousSibling().select(); return false; } |
return true; |
} |
WebFXTreeItem.prototype.toString = function (nItem, nItemCount) { |
var foo = this.parentNode; |
var indent = ''; |
if (nItem + 1 == nItemCount) { this.parentNode._last = true; } |
var i = 0; |
while (foo.parentNode) { |
foo = foo.parentNode; |
indent = "<img id=\"" + this.id + "-indent-" + i + "\" src=\"" + ((foo._last)?webFXTreeConfig.blankIcon:webFXTreeConfig.iIcon) + "\">" + indent; |
i++; |
} |
this._level = i; |
if (this.childNodes.length) { this.folder = 1; } |
else { this.open = false; } |
if ((this.folder) || (webFXTreeHandler.behavior != 'classic')) { |
if (!this.icon) { this.icon = webFXTreeConfig.folderIcon; } |
if (!this.openIcon) { this.openIcon = webFXTreeConfig.openFolderIcon; } |
} |
else if (!this.icon) { this.icon = webFXTreeConfig.fileIcon; } |
var label = this.text; |
label = label.replace('<', '<'); |
label = label.replace('>', '>'); |
var str = "<div id=\"" + this.id + "\" ondblclick=\"webFXTreeHandler.toggle(this);\" class=\"webfx-tree-item\" onkeydown=\"return webFXTreeHandler.keydown(this)\">"; |
str += indent; |
str += "<img id=\"" + this.id + "-plus\" src=\"" + ((this.folder)?((this.open)?((this.parentNode._last)?webFXTreeConfig.lMinusIcon:webFXTreeConfig.tMinusIcon):((this.parentNode._last)?webFXTreeConfig.lPlusIcon:webFXTreeConfig.tPlusIcon)):((this.parentNode._last)?webFXTreeConfig.lIcon:webFXTreeConfig.tIcon)) + "\" onclick=\"webFXTreeHandler.toggle(this);\">" |
str += "<img id=\"" + this.id + "-icon\" src=\"" + ((webFXTreeHandler.behavior == 'classic' && this.open)?this.openIcon:this.icon) + "\" onclick=\"webFXTreeHandler.select(this);\"><a href=\"" + this.action + "\" id=\"" + this.id + "-anchor\" target=\"" + this.targetWindow + "\" onfocus=\"webFXTreeHandler.focus(this);\" onblur=\"webFXTreeHandler.blur(this);\">" + label + "</a></div>"; |
str += "<div id=\"" + this.id + "-cont\" class=\"webfx-tree-container\" style=\"display: " + ((this.open)?'block':'none') + ";\">"; |
for (var i = 0; i < this.childNodes.length; i++) { |
str += this.childNodes[i].toString(i,this.childNodes.length); |
} |
str += "</div>"; |
this.plusIcon = ((this.parentNode._last)?webFXTreeConfig.lPlusIcon:webFXTreeConfig.tPlusIcon); |
this.minusIcon = ((this.parentNode._last)?webFXTreeConfig.lMinusIcon:webFXTreeConfig.tMinusIcon); |
return str; |
} |
/trunk/doc/HTMLframesConverter/media/banner.css |
---|
New file |
0,0 → 1,32 |
body |
{ |
background-color: #FFFFFF; |
margin: 0px; |
padding: 0px; |
} |
/* Banner (top bar) classes */ |
.banner { } |
.banner-menu |
{ |
clear: both; |
padding: .5em; |
border-top: 2px solid #999999; |
} |
.banner-title |
{ |
text-align: right; |
font-size: 20pt; |
font-weight: bold; |
margin: .2em; |
} |
.package-selector |
{ |
background-color: #EEEEEE; |
border: 1px solid black; |
color: #0000C0; |
} |
/trunk/doc/HTMLframesConverter/elementindex_Framework.html |
---|
New file |
0,0 → 1,934 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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></title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" href="media/stylesheet.css" /> |
</head> |
<body> |
<a name="top"></a> |
<h2>[Framework] element index</h2> |
<a href="elementindex.html">All elements</a> |
<br /> |
<div class="index-letter-menu"> |
<a class="index-letter" href="elementindex_Framework.html#a">a</a> |
<a class="index-letter" href="elementindex_Framework.html#c">c</a> |
<a class="index-letter" href="elementindex_Framework.html#d">d</a> |
<a class="index-letter" href="elementindex_Framework.html#e">e</a> |
<a class="index-letter" href="elementindex_Framework.html#g">g</a> |
<a class="index-letter" href="elementindex_Framework.html#i">i</a> |
<a class="index-letter" href="elementindex_Framework.html#l">l</a> |
<a class="index-letter" href="elementindex_Framework.html#m">m</a> |
<a class="index-letter" href="elementindex_Framework.html#n">n</a> |
<a class="index-letter" href="elementindex_Framework.html#o">o</a> |
<a class="index-letter" href="elementindex_Framework.html#p">p</a> |
<a class="index-letter" href="elementindex_Framework.html#r">r</a> |
<a class="index-letter" href="elementindex_Framework.html#s">s</a> |
<a class="index-letter" href="elementindex_Framework.html#u">u</a> |
<a class="index-letter" href="elementindex_Framework.html#v">v</a> |
<a class="index-letter" href="elementindex_Framework.html#_">_</a> |
</div> |
<a name="_"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">_</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">__construct</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Chronometre.html#method__construct">Chronometre::__construct()</a> in Chronometre.php</div> |
<div class="index-item-description">Constructeur : *</div> |
</dd> |
<dt class="field"> |
<span class="method-title">__construct</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Modele.html#method__construct">Modele::__construct()</a> in Modele.php</div> |
<div class="index-item-description">Constructeur par défaut, appelé à l'initialisation.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">__construct</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#method__construct">Url::__construct()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">__construct</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/GestionnaireException.html#method__construct">GestionnaireException::__construct()</a> in GestionnaireException.php</div> |
<div class="index-item-description">Constructeur avec paramètres optionnel</div> |
</dd> |
<dt class="field"> |
<span class="method-title">__construct</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Controleur.html#method__construct">Controleur::__construct()</a> in Controleur.php</div> |
<div class="index-item-description">Constructeur par défaut</div> |
</dd> |
<dt class="field"> |
<span class="method-title">__destruct</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Modele.html#method__destruct">Modele::__destruct()</a> in Modele.php</div> |
<div class="index-item-description">Destructeur de classe, se contente de fermer explicitement la connexion</div> |
</dd> |
<dt class="field"> |
<span class="method-title">__destruct</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Log.html#method__destruct">Log::__destruct()</a> in Log.php</div> |
<div class="index-item-description">destructeur de classe, ferme les descripteurs ouverts</div> |
</dd> |
<dt class="field"> |
<span class="method-title">__destruct</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/GestionnaireException.html#method__destruct">GestionnaireException::__destruct()</a> in GestionnaireException.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">__toString</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#method__toString">Url::__toString()</a> in Url.php</div> |
</dd> |
</dl> |
<a name="a"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">a</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">afficherChrono</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Chronometre.html#methodafficherChrono">Chronometre::afficherChrono()</a> in Chronometre.php</div> |
<div class="index-item-description">Méthode afficherChrono() - Permet d'afficher les temps d'éxécution de différentes parties d'un script.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">ajouterEntree</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Log.html#methodajouterEntree">Log::ajouterEntree()</a> in Log.php</div> |
<div class="index-item-description">Ajoute une entrée au log spécifié par le paramètre $nomFichier</div> |
</dd> |
<dt class="field"> |
<span class="method-title">analyser</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/SquelettePhp.html#methodanalyser">SquelettePhp::analyser()</a> in SquelettePhp.php</div> |
<div class="index-item-description">Fonction prenant en paramètre un chemin de fichier squelette et un tableau associatif de données, en extrait les variables, charge le squelette et retourne le résultat des deux combinés.</div> |
</dd> |
<dt class="field"> |
Application |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Application.html">Application</a> in Application.php</div> |
<div class="index-item-description">Classe fournissant des informations au Framework sur l'application.</div> |
</dd> |
<dt class="field"> |
<span class="include-title">Application.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_Application.php.html">Application.php</a> in Application.php</div> |
</dd> |
<dt class="field"> |
<span class="include-title">autoload.inc.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_autoload.inc.php.html">autoload.inc.php</a> in autoload.inc.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">autoloadAppliDefaut</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_autoload.inc.php.html#functionautoloadAppliDefaut">autoloadAppliDefaut()</a> in autoload.inc.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">autoloadFw</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_autoload.inc.php.html#functionautoloadFw">autoloadFw()</a> in autoload.inc.php</div> |
</dd> |
</dl> |
<a name="c"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">c</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">charger</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Config.html#methodcharger">Config::charger()</a> in Config.php</div> |
<div class="index-item-description">Charge un fichier ini dans le tableau des paramètres de l'appli</div> |
</dd> |
<dt class="field"> |
<span class="method-title">chargerModele</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Controleur.html#methodchargerModele">Controleur::chargerModele()</a> in Controleur.php</div> |
<div class="index-item-description">Charge un modele donné et le rend disponible sous la forme $this->nom_modele</div> |
</dd> |
<dt class="field"> |
<span class="method-title">chargerVue</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Controleur.html#methodchargerVue">Controleur::chargerVue()</a> in Controleur.php</div> |
<div class="index-item-description">Fonction prenant en paramètre le nom d'un squelette et un tableau associatif de données, en extrait les variables, charge le squelette et crée une variable de classe portant le nom du squelette contenant les deux combinés.</div> |
</dd> |
<dt class="field"> |
Chronometre |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Chronometre.html">Chronometre</a> in Chronometre.php</div> |
<div class="index-item-description">Classe Chronometre() - Permet de stocker et d'afficher les temps d'éxécution de script.</div> |
</dd> |
<dt class="field"> |
<span class="include-title">Chronometre.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_Chronometre.php.html">Chronometre.php</a> in Chronometre.php</div> |
</dd> |
<dt class="field"> |
Config |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Config.html">Config</a> in Config.php</div> |
<div class="index-item-description">Config permet de charger automatiquement les fichiers ini du Framework et de l'application.</div> |
</dd> |
<dt class="field"> |
<span class="include-title">Config.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_Config.php.html">Config.php</a> in Config.php</div> |
</dd> |
<dt class="field"> |
Controleur |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Controleur.html">Controleur</a> in Controleur.php</div> |
<div class="index-item-description">Classe Controleur, coeur d'une application, c'est normalement la seule classe d'une application qui devrait être appelée de l'extérieur.</div> |
</dd> |
<dt class="field"> |
<span class="include-title">Controleur.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_Controleur.php.html">Controleur.php</a> in Controleur.php</div> |
</dd> |
</dl> |
<a name="d"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">d</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
Debug |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Debug.html">Debug</a> in Debug.php</div> |
<div class="index-item-description">Classe fournissant des fonctions de débogage équivalante à var_dump et print_r.</div> |
</dd> |
<dt class="field"> |
<span class="include-title">Debug.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_Debug.php.html">Debug.php</a> in Debug.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">detruire</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Registre.html#methoddetruire">Registre::detruire()</a> in Registre.php</div> |
<div class="index-item-description">Détruit l'objet associé à l'intitulé, n'a pas d'effet si il n'y a pas d'objet associé</div> |
</dd> |
<dt class="field"> |
<span class="const-title">DS</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_autoload.inc.php.html#defineDS">DS</a> in autoload.inc.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">dump</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Debug.html#methoddump">Debug::dump()</a> in Debug.php</div> |
<div class="index-item-description">Equivalent de var_dump</div> |
</dd> |
</dl> |
<a name="e"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">e</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">etreAbsolue</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodetreAbsolue">Url::etreAbsolue()</a> in Url.php</div> |
<div class="index-item-description">Renvoie vrai ou faux suivant que l'instance en cours représente une URL relative ou absolue.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">existe</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Registre.html#methodexiste">Registre::existe()</a> in Registre.php</div> |
<div class="index-item-description">Teste si un objet est présent sous un intitulé donné</div> |
</dd> |
<dt class="field"> |
<span class="method-title">existe</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Config.html#methodexiste">Config::existe()</a> in Config.php</div> |
<div class="index-item-description">Vérifie si la valeur d'un paramètre existe</div> |
</dd> |
</dl> |
<a name="g"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">g</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">gererErreur</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/GestionnaireException.html#methodgererErreur">GestionnaireException::gererErreur()</a> in GestionnaireException.php</div> |
<div class="index-item-description">Gère les erreurs en les convertissant en exceptions (remplace la fonction gestion d'erreurs native de php)</div> |
</dd> |
<dt class="field"> |
<span class="method-title">gererException</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/GestionnaireException.html#methodgererException">GestionnaireException::gererException()</a> in GestionnaireException.php</div> |
<div class="index-item-description">Fonction de gestion des exceptions, remplace le handler par défaut</div> |
</dd> |
<dt class="field"> |
GestionnaireException |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/GestionnaireException.html">GestionnaireException</a> in GestionnaireException.php</div> |
<div class="index-item-description">Classe de gestion des exceptions.</div> |
</dd> |
<dt class="field"> |
<span class="include-title">GestionnaireException.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_GestionnaireException.php.html">GestionnaireException.php</a> in GestionnaireException.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">get</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Registre.html#methodget">Registre::get()</a> in Registre.php</div> |
<div class="index-item-description">Renvoie l'objet associé à l'intitulé donné en paramètre</div> |
</dd> |
<dt class="field"> |
<span class="method-title">get</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Config.html#methodget">Config::get()</a> in Config.php</div> |
<div class="index-item-description">Acesseur pour la valeur d'un paramètre</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getAutorite</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetAutorite">Url::getAutorite()</a> in Url.php</div> |
<div class="index-item-description">Renvoie la partie autorité, i.e. [ infoUtilisateur "@" ] hote [ ":" port ], ou false si celle-ci est absente.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getCanonique</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetCanonique">Url::getCanonique()</a> in Url.php</div> |
<div class="index-item-description">Renvoie une instance de Url representant l'URL canonique du script PHP en cours d'éxécution</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getChemin</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Application.html#methodgetChemin">Application::getChemin()</a> in Application.php</div> |
<div class="index-item-description">accesseur pour le chemin</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getChemin</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetChemin">Url::getChemin()</a> in Url.php</div> |
<div class="index-item-description">Renvoie la partie chemin (chemin) (éventuellement vide).</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getContexte</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/GestionnaireException.html#methodgetContexte">GestionnaireException::getContexte()</a> in GestionnaireException.php</div> |
<div class="index-item-description">Renvoie le booleen définissant si l'on affiche le contexte ou non</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getDemande</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetDemande">Url::getDemande()</a> in Url.php</div> |
<div class="index-item-description">Renvoie une instance de Url representant l'URL utilisée pour récupérer la requête en cours</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getExceptions</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/GestionnaireException.html#methodgetExceptions">GestionnaireException::getExceptions()</a> in GestionnaireException.php</div> |
<div class="index-item-description">Renvoie les exceptions au format (X)HTML</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getFragment</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetFragment">Url::getFragment()</a> in Url.php</div> |
<div class="index-item-description">Renvoie le nom du fragment, ou false si "#" n'est pas present dans l'URL.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getHote</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetHote">Url::getHote()</a> in Url.php</div> |
<div class="index-item-description">Renvoie la partie hôte, ou false s'il n'y a pas de partie autorité, c.a.d.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getInfo</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Application.html#methodgetInfo">Application::getInfo()</a> in Application.php</div> |
<div class="index-item-description">accesseur pour le tableau d'infos</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getInfoUtilisateur</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetInfoUtilisateur">Url::getInfoUtilisateur()</a> in Url.php</div> |
<div class="index-item-description">Renvoie la partie userinfio, ou false si celle-ci n'existe pas, i.e. si la partie autorité ne contient pas de "@"</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getInstance</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Registre.html#methodgetInstance">Registre::getInstance()</a> in Registre.php</div> |
<div class="index-item-description">Fonction qui renvoie l'instance de classe en assurant son unicité, c'est l'unique méthode qui doit être</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getInstance</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/GestionnaireException.html#methodgetInstance">GestionnaireException::getInstance()</a> in GestionnaireException.php</div> |
<div class="index-item-description">Fonction d'accès au singleton</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getInstance</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Log.html#methodgetInstance">Log::getInstance()</a> in Log.php</div> |
<div class="index-item-description">Fonction qui renvoie l'instance de classe en assurant son unicité, c'est l'unique méthode qui doit être</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getMode</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Debug.html#methodgetMode">Debug::getMode()</a> in Debug.php</div> |
<div class="index-item-description">Accesseur pour le mode</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getModele</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Controleur.html#methodgetModele">Controleur::getModele()</a> in Controleur.php</div> |
<div class="index-item-description">Retourne un modele donné</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getMotDePasse</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetMotDePasse">Url::getMotDePasse()</a> in Url.php</div> |
<div class="index-item-description">renvoie la partie mot de passe de la partie infoUtilisateur (partie après le premier ":"), , ou false si aucune partie infoUtilisateur n'est définie (i.e. l'URL ne contient pas de "@" en face du nom d'hôte) ou si la partie infoUtilisateur ne contient pas de ":".</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getOption</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetOption">Url::getOption()</a> in Url.php</div> |
<div class="index-item-description">Renvoie la valeur de l'option specifiée.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getPort</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetPort">Url::getPort()</a> in Url.php</div> |
<div class="index-item-description">Renvoie le numéro de port, ou false si aucun numéro de port n'est spécifié, i.e. le port par défaut doit utilisé.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getRequete</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetRequete">Url::getRequete()</a> in Url.php</div> |
<div class="index-item-description">renvoie la chaine de requête (requete string) (sans le premier "?"), ou false si "?" n'est pas présent dans l'url.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getSchema</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetSchema">Url::getSchema()</a> in Url.php</div> |
<div class="index-item-description">Retourne le schéma, c.a.d. "http" ou "urn", ou false si aucun schéma n'est spécifié, i.e. l'url est une url relative</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getTemps</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Chronometre.html#methodgetTemps">Chronometre::getTemps()</a> in Chronometre.php</div> |
<div class="index-item-description">Accesseurs :</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getURL</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetURL">Url::getURL()</a> in Url.php</div> |
<div class="index-item-description">Renvoie un représentation sous forme de chaine de l'URL</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getURLDemande</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetURLDemande">Url::getURLDemande()</a> in Url.php</div> |
<div class="index-item-description">Renvoie l'URL utilisée pour récupérer la requête en cours</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getURLNormalisee</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetURLNormalisee">Url::getURLNormalisee()</a> in Url.php</div> |
<div class="index-item-description">Renvoie une représentation de cette URL sous forme de chaine normalisée. Utile pour la comparaison d'URLs</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getUtilisateur</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetUtilisateur">Url::getUtilisateur()</a> in Url.php</div> |
<div class="index-item-description">renvoie la partie user de la partie infoUtilisateur (partie précédant le premier ":"), ou false si aucune partie infoUtilisateur n'est définie.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getVariablesRequete</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetVariablesRequete">Url::getVariablesRequete()</a> in Url.php</div> |
<div class="index-item-description">Renvoie la requete string sous forme d'un tableau de variables telles qu'elles apparaitraient dans le $_GET d'un script PHP</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getVue</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Controleur.html#methodgetVue">Controleur::getVue()</a> in Controleur.php</div> |
<div class="index-item-description">Fonction prenant en paramètre le nom d'un squelette et un tableau associatif de données, en extrait les variables, charge le squelette et retourne le résultat des deux combinés.</div> |
</dd> |
</dl> |
<a name="i"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">i</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">initialiserProtocole</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Modele.html#methodinitialiserProtocole">Modele::initialiserProtocole()</a> in Modele.php</div> |
<div class="index-item-description">initialise les constantes de classe à leur bonne valeur</div> |
</dd> |
</dl> |
<a name="l"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">l</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
Log |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Log.html">Log</a> in Log.php</div> |
<div class="index-item-description">Classe permettant de logger des messages dans les fichier situés dans le dossier de log</div> |
</dd> |
<dt class="field"> |
<span class="include-title">Log.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_Log.php.html">Log.php</a> in Log.php</div> |
</dd> |
</dl> |
<a name="m"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">m</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="var-title">$mode</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Debug.html#var$mode">Debug::$mode</a> in Debug.php</div> |
<div class="index-item-description">mode de php (cli ou sapi)</div> |
</dd> |
<dt class="field"> |
Modele |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Modele.html">Modele</a> in Modele.php</div> |
<div class="index-item-description">Classe modèle, donc d'accés au données, elle ne devrait pas être appelée de l'extérieur.</div> |
</dd> |
<dt class="field"> |
<span class="include-title">Modele.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_Modele.php.html">Modele.php</a> in Modele.php</div> |
</dd> |
</dl> |
<a name="n"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">n</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">normaliser</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodnormaliser">Url::normaliser()</a> in Url.php</div> |
<div class="index-item-description">Renvoie une instance normalisée de Url</div> |
</dd> |
</dl> |
<a name="o"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">o</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
OPTION_ENCODER_CLES |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#constOPTION_ENCODER_CLES">Url::OPTION_ENCODER_CLES</a> in Url.php</div> |
<div class="index-item-description">URL-encoder les clés des variables dans les requêtes. Par défaut à true.</div> |
</dd> |
<dt class="field"> |
OPTION_SEPARATEUR_ENTREE |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#constOPTION_SEPARATEUR_ENTREE">Url::OPTION_SEPARATEUR_ENTREE</a> in Url.php</div> |
<div class="index-item-description">Séparateurs de variables lors du parsing de la requête. Chaque caractère est considéré comme un séparateur. Par défaut, spécifié par le paramêtre arg_separator.input dans php.ini (par défaut "&").</div> |
</dd> |
<dt class="field"> |
OPTION_SEPARATEUR_SORTIE |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#constOPTION_SEPARATEUR_SORTIE">Url::OPTION_SEPARATEUR_SORTIE</a> in Url.php</div> |
<div class="index-item-description">Séparateur de variables lors de la génération de la requête. Par défaut, spécifié par le paramètre arg_separator.output dans php.ini (par défaut "&").</div> |
</dd> |
<dt class="field"> |
OPTION_STRICTE |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#constOPTION_STRICTE">Url::OPTION_STRICTE</a> in Url.php</div> |
<div class="index-item-description">Parsing strict dans resoudre() (voir RFC 3986, section 5.2.2). Par défaut à true.</div> |
</dd> |
<dt class="field"> |
OPTION_UTILISER_CROCHETS |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#constOPTION_UTILISER_CROCHETS">Url::OPTION_UTILISER_CROCHETS</a> in Url.php</div> |
<div class="index-item-description">Répresenter les tableaux dans les requêtes en utilisant la notation php []. Par défaut à true.</div> |
</dd> |
</dl> |
<a name="p"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">p</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">printr</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Debug.html#methodprintr">Debug::printr()</a> in Debug.php</div> |
<div class="index-item-description">Equivalent de print_r</div> |
</dd> |
<dt class="field"> |
<span class="method-title">proteger</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Modele.html#methodproteger">Modele::proteger()</a> in Modele.php</div> |
<div class="index-item-description">protège une chaine de caractères avant l'insertion dans la base de données</div> |
</dd> |
<dt class="field"> |
<span class="const-title">PS</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_autoload.inc.php.html#definePS">PS</a> in autoload.inc.php</div> |
</dd> |
</dl> |
<a name="r"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">r</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
Registre |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Registre.html">Registre</a> in Registre.php</div> |
<div class="index-item-description">Classe registre, qui permet un accès à différentes variables à travers les autres classes.</div> |
</dd> |
<dt class="field"> |
<span class="include-title">Registre.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_Registre.php.html">Registre.php</a> in Registre.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">requete</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Modele.html#methodrequete">Modele::requete()</a> in Modele.php</div> |
<div class="index-item-description">Fonction qui appelle la bonne fonction pour executer une requête suivant le type de bdd.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">requeteTous</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Modele.html#methodrequeteTous">Modele::requeteTous()</a> in Modele.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">requeteUn</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Modele.html#methodrequeteUn">Modele::requeteUn()</a> in Modele.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">resoudre</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodresoudre">Url::resoudre()</a> in Url.php</div> |
<div class="index-item-description">Renvoie une instance de Url représentant une URL absolue relative à cette URL.</div> |
</dd> |
</dl> |
<a name="s"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">s</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">set</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Registre.html#methodset">Registre::set()</a> in Registre.php</div> |
<div class="index-item-description">Ajoute un objet au tableau selon un intitulé donné</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setAutorite</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetAutorite">Url::setAutorite()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setChemin</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Application.html#methodsetChemin">Application::setChemin()</a> in Application.php</div> |
<div class="index-item-description">Modificateur pour le chemin de base</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setChemin</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetChemin">Url::setChemin()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setContexte</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/GestionnaireException.html#methodsetContexte">GestionnaireException::setContexte()</a> in GestionnaireException.php</div> |
<div class="index-item-description">Definit si l'on veut afficher le contexte ou non</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setFragment</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetFragment">Url::setFragment()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setHote</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetHote">Url::setHote()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setInfo</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Application.html#methodsetInfo">Application::setInfo()</a> in Application.php</div> |
<div class="index-item-description">Le tableau des informations sur l'application possède les clés suivantes :</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setInfoUtilisateur</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetInfoUtilisateur">Url::setInfoUtilisateur()</a> in Url.php</div> |
<div class="index-item-description">Setteur pour la partie infoUtilisateur. Si deux argument sont passé, ils sont combinés dans la partie infoUtilisateur de cette manière username ":" password.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setOption</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetOption">Url::setOption()</a> in Url.php</div> |
<div class="index-item-description">Met à jour la valeur de l'option spécifiée.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setPort</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetPort">Url::setPort()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setRequete</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetRequete">Url::setRequete()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setSchema</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetSchema">Url::setSchema()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setTemps</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Chronometre.html#methodsetTemps">Chronometre::setTemps()</a> in Chronometre.php</div> |
<div class="index-item-description">Setteur pour la variable temps</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setVariableRequete</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetVariableRequete">Url::setVariableRequete()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setVariablesRequete</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetVariablesRequete">Url::setVariablesRequete()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
SquelettePhp |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/SquelettePhp.html">SquelettePhp</a> in SquelettePhp.php</div> |
<div class="index-item-description">Classe SquelettePhp, traitant les squelette Php utilisant la syntaxe courte php ou pas.</div> |
</dd> |
<dt class="field"> |
<span class="include-title">SquelettePhp.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_SquelettePhp.php.html">SquelettePhp.php</a> in SquelettePhp.php</div> |
</dd> |
</dl> |
<a name="u"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">u</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">unsetVariableRequete</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodunsetVariableRequete">Url::unsetVariableRequete()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
Url |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html">Url</a> in Url.php</div> |
<div class="index-item-description">classe Url, gérant le découpage des paramètres, leurs modification etc...</div> |
</dd> |
<dt class="field"> |
<span class="include-title">Url.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_Url.php.html">Url.php</a> in Url.php</div> |
</dd> |
</dl> |
<a name="v"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">v</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">verifierOuvrirFichier</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Log.html#methodverifierOuvrirFichier">Log::verifierOuvrirFichier()</a> in Log.php</div> |
<div class="index-item-description">Vérifie la présence d'un fichier dans le tableau, ses droits d'écriture,</div> |
</dd> |
<dt class="field"> |
<span class="method-title">viderLog</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Log.html#methodviderLog">Log::viderLog()</a> in Log.php</div> |
<div class="index-item-description">Vide un fichier log indiqué</div> |
</dd> |
</dl> |
<div class="index-letter-menu"> |
<a class="index-letter" href="elementindex_Framework.html#a">a</a> |
<a class="index-letter" href="elementindex_Framework.html#c">c</a> |
<a class="index-letter" href="elementindex_Framework.html#d">d</a> |
<a class="index-letter" href="elementindex_Framework.html#e">e</a> |
<a class="index-letter" href="elementindex_Framework.html#g">g</a> |
<a class="index-letter" href="elementindex_Framework.html#i">i</a> |
<a class="index-letter" href="elementindex_Framework.html#l">l</a> |
<a class="index-letter" href="elementindex_Framework.html#m">m</a> |
<a class="index-letter" href="elementindex_Framework.html#n">n</a> |
<a class="index-letter" href="elementindex_Framework.html#o">o</a> |
<a class="index-letter" href="elementindex_Framework.html#p">p</a> |
<a class="index-letter" href="elementindex_Framework.html#r">r</a> |
<a class="index-letter" href="elementindex_Framework.html#s">s</a> |
<a class="index-letter" href="elementindex_Framework.html#u">u</a> |
<a class="index-letter" href="elementindex_Framework.html#v">v</a> |
<a class="index-letter" href="elementindex_Framework.html#_">_</a> |
</div> </body> |
</html> |
/trunk/doc/HTMLframesConverter/packages.html |
---|
New file |
0,0 → 1,29 |
<?xml version="1.0" encoding="iso-8859-1"?> |
<!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></title> |
<link rel="stylesheet" href="media/stylesheet.css" /> |
<link rel="stylesheet" href="media/banner.css" /> |
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> |
</head> |
<body> |
<div class="banner"> |
<div class="banner-title">Framework</div> |
<div class="banner-menu"> |
<form> |
<table cellpadding="0" cellspacing="0" style="width: 100%"> |
<tr> |
<td> |
</td> |
<td style="width: 2em"> </td> |
<td style="text-align: right"> |
</td> |
</tr> |
</table> |
</form> |
</div> |
</div> |
</body> |
</html> |
/trunk/doc/HTMLframesConverter/elementindex.html |
---|
New file |
0,0 → 1,937 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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></title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" href="media/stylesheet.css" /> |
</head> |
<body> |
<a name="top"></a> |
<h2>Full index</h2> |
<h3>Package indexes</h3> |
<ul> |
<li><a href="elementindex_Framework.html">Framework</a></li> |
</ul> |
<br /> |
<div class="index-letter-menu"> |
<a class="index-letter" href="elementindex.html#a">a</a> |
<a class="index-letter" href="elementindex.html#c">c</a> |
<a class="index-letter" href="elementindex.html#d">d</a> |
<a class="index-letter" href="elementindex.html#e">e</a> |
<a class="index-letter" href="elementindex.html#g">g</a> |
<a class="index-letter" href="elementindex.html#i">i</a> |
<a class="index-letter" href="elementindex.html#l">l</a> |
<a class="index-letter" href="elementindex.html#m">m</a> |
<a class="index-letter" href="elementindex.html#n">n</a> |
<a class="index-letter" href="elementindex.html#o">o</a> |
<a class="index-letter" href="elementindex.html#p">p</a> |
<a class="index-letter" href="elementindex.html#r">r</a> |
<a class="index-letter" href="elementindex.html#s">s</a> |
<a class="index-letter" href="elementindex.html#u">u</a> |
<a class="index-letter" href="elementindex.html#v">v</a> |
<a class="index-letter" href="elementindex.html#_">_</a> |
</div> |
<a name="a"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">a</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">afficherChrono</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Chronometre.html#methodafficherChrono">Chronometre::afficherChrono()</a> in Chronometre.php</div> |
<div class="index-item-description">Méthode afficherChrono() - Permet d'afficher les temps d'éxécution de différentes parties d'un script.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">ajouterEntree</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Log.html#methodajouterEntree">Log::ajouterEntree()</a> in Log.php</div> |
<div class="index-item-description">Ajoute une entrée au log spécifié par le paramètre $nomFichier</div> |
</dd> |
<dt class="field"> |
<span class="method-title">analyser</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/SquelettePhp.html#methodanalyser">SquelettePhp::analyser()</a> in SquelettePhp.php</div> |
<div class="index-item-description">Fonction prenant en paramètre un chemin de fichier squelette et un tableau associatif de données, en extrait les variables, charge le squelette et retourne le résultat des deux combinés.</div> |
</dd> |
<dt class="field"> |
Application |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Application.html">Application</a> in Application.php</div> |
<div class="index-item-description">Classe fournissant des informations au Framework sur l'application.</div> |
</dd> |
<dt class="field"> |
<span class="include-title">Application.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_Application.php.html">Application.php</a> in Application.php</div> |
</dd> |
<dt class="field"> |
<span class="include-title">autoload.inc.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_autoload.inc.php.html">autoload.inc.php</a> in autoload.inc.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">autoloadAppliDefaut</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_autoload.inc.php.html#functionautoloadAppliDefaut">autoloadAppliDefaut()</a> in autoload.inc.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">autoloadFw</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_autoload.inc.php.html#functionautoloadFw">autoloadFw()</a> in autoload.inc.php</div> |
</dd> |
</dl> |
<a name="c"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">c</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">charger</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Config.html#methodcharger">Config::charger()</a> in Config.php</div> |
<div class="index-item-description">Charge un fichier ini dans le tableau des paramètres de l'appli</div> |
</dd> |
<dt class="field"> |
<span class="method-title">chargerModele</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Controleur.html#methodchargerModele">Controleur::chargerModele()</a> in Controleur.php</div> |
<div class="index-item-description">Charge un modele donné et le rend disponible sous la forme $this->nom_modele</div> |
</dd> |
<dt class="field"> |
<span class="method-title">chargerVue</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Controleur.html#methodchargerVue">Controleur::chargerVue()</a> in Controleur.php</div> |
<div class="index-item-description">Fonction prenant en paramètre le nom d'un squelette et un tableau associatif de données, en extrait les variables, charge le squelette et crée une variable de classe portant le nom du squelette contenant les deux combinés.</div> |
</dd> |
<dt class="field"> |
Chronometre |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Chronometre.html">Chronometre</a> in Chronometre.php</div> |
<div class="index-item-description">Classe Chronometre() - Permet de stocker et d'afficher les temps d'éxécution de script.</div> |
</dd> |
<dt class="field"> |
<span class="include-title">Chronometre.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_Chronometre.php.html">Chronometre.php</a> in Chronometre.php</div> |
</dd> |
<dt class="field"> |
Config |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Config.html">Config</a> in Config.php</div> |
<div class="index-item-description">Config permet de charger automatiquement les fichiers ini du Framework et de l'application.</div> |
</dd> |
<dt class="field"> |
<span class="include-title">Config.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_Config.php.html">Config.php</a> in Config.php</div> |
</dd> |
<dt class="field"> |
Controleur |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Controleur.html">Controleur</a> in Controleur.php</div> |
<div class="index-item-description">Classe Controleur, coeur d'une application, c'est normalement la seule classe d'une application qui devrait être appelée de l'extérieur.</div> |
</dd> |
<dt class="field"> |
<span class="include-title">Controleur.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_Controleur.php.html">Controleur.php</a> in Controleur.php</div> |
</dd> |
</dl> |
<a name="d"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">d</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
Debug |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Debug.html">Debug</a> in Debug.php</div> |
<div class="index-item-description">Classe fournissant des fonctions de débogage équivalante à var_dump et print_r.</div> |
</dd> |
<dt class="field"> |
<span class="include-title">Debug.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_Debug.php.html">Debug.php</a> in Debug.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">detruire</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Registre.html#methoddetruire">Registre::detruire()</a> in Registre.php</div> |
<div class="index-item-description">Détruit l'objet associé à l'intitulé, n'a pas d'effet si il n'y a pas d'objet associé</div> |
</dd> |
<dt class="field"> |
<span class="const-title">DS</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_autoload.inc.php.html#defineDS">DS</a> in autoload.inc.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">dump</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Debug.html#methoddump">Debug::dump()</a> in Debug.php</div> |
<div class="index-item-description">Equivalent de var_dump</div> |
</dd> |
</dl> |
<a name="e"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">e</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">etreAbsolue</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodetreAbsolue">Url::etreAbsolue()</a> in Url.php</div> |
<div class="index-item-description">Renvoie vrai ou faux suivant que l'instance en cours représente une URL relative ou absolue.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">existe</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Registre.html#methodexiste">Registre::existe()</a> in Registre.php</div> |
<div class="index-item-description">Teste si un objet est présent sous un intitulé donné</div> |
</dd> |
<dt class="field"> |
<span class="method-title">existe</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Config.html#methodexiste">Config::existe()</a> in Config.php</div> |
<div class="index-item-description">Vérifie si la valeur d'un paramètre existe</div> |
</dd> |
</dl> |
<a name="g"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">g</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">gererErreur</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/GestionnaireException.html#methodgererErreur">GestionnaireException::gererErreur()</a> in GestionnaireException.php</div> |
<div class="index-item-description">Gère les erreurs en les convertissant en exceptions (remplace la fonction gestion d'erreurs native de php)</div> |
</dd> |
<dt class="field"> |
<span class="method-title">gererException</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/GestionnaireException.html#methodgererException">GestionnaireException::gererException()</a> in GestionnaireException.php</div> |
<div class="index-item-description">Fonction de gestion des exceptions, remplace le handler par défaut</div> |
</dd> |
<dt class="field"> |
GestionnaireException |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/GestionnaireException.html">GestionnaireException</a> in GestionnaireException.php</div> |
<div class="index-item-description">Classe de gestion des exceptions.</div> |
</dd> |
<dt class="field"> |
<span class="include-title">GestionnaireException.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_GestionnaireException.php.html">GestionnaireException.php</a> in GestionnaireException.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">get</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Registre.html#methodget">Registre::get()</a> in Registre.php</div> |
<div class="index-item-description">Renvoie l'objet associé à l'intitulé donné en paramètre</div> |
</dd> |
<dt class="field"> |
<span class="method-title">get</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Config.html#methodget">Config::get()</a> in Config.php</div> |
<div class="index-item-description">Acesseur pour la valeur d'un paramètre</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getAutorite</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetAutorite">Url::getAutorite()</a> in Url.php</div> |
<div class="index-item-description">Renvoie la partie autorité, i.e. [ infoUtilisateur "@" ] hote [ ":" port ], ou false si celle-ci est absente.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getCanonique</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetCanonique">Url::getCanonique()</a> in Url.php</div> |
<div class="index-item-description">Renvoie une instance de Url representant l'URL canonique du script PHP en cours d'éxécution</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getChemin</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Application.html#methodgetChemin">Application::getChemin()</a> in Application.php</div> |
<div class="index-item-description">accesseur pour le chemin</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getChemin</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetChemin">Url::getChemin()</a> in Url.php</div> |
<div class="index-item-description">Renvoie la partie chemin (chemin) (éventuellement vide).</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getContexte</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/GestionnaireException.html#methodgetContexte">GestionnaireException::getContexte()</a> in GestionnaireException.php</div> |
<div class="index-item-description">Renvoie le booleen définissant si l'on affiche le contexte ou non</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getDemande</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetDemande">Url::getDemande()</a> in Url.php</div> |
<div class="index-item-description">Renvoie une instance de Url representant l'URL utilisée pour récupérer la requête en cours</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getExceptions</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/GestionnaireException.html#methodgetExceptions">GestionnaireException::getExceptions()</a> in GestionnaireException.php</div> |
<div class="index-item-description">Renvoie les exceptions au format (X)HTML</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getFragment</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetFragment">Url::getFragment()</a> in Url.php</div> |
<div class="index-item-description">Renvoie le nom du fragment, ou false si "#" n'est pas present dans l'URL.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getHote</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetHote">Url::getHote()</a> in Url.php</div> |
<div class="index-item-description">Renvoie la partie hôte, ou false s'il n'y a pas de partie autorité, c.a.d.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getInfo</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Application.html#methodgetInfo">Application::getInfo()</a> in Application.php</div> |
<div class="index-item-description">accesseur pour le tableau d'infos</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getInfoUtilisateur</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetInfoUtilisateur">Url::getInfoUtilisateur()</a> in Url.php</div> |
<div class="index-item-description">Renvoie la partie userinfio, ou false si celle-ci n'existe pas, i.e. si la partie autorité ne contient pas de "@"</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getInstance</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Registre.html#methodgetInstance">Registre::getInstance()</a> in Registre.php</div> |
<div class="index-item-description">Fonction qui renvoie l'instance de classe en assurant son unicité, c'est l'unique méthode qui doit être</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getInstance</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/GestionnaireException.html#methodgetInstance">GestionnaireException::getInstance()</a> in GestionnaireException.php</div> |
<div class="index-item-description">Fonction d'accès au singleton</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getInstance</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Log.html#methodgetInstance">Log::getInstance()</a> in Log.php</div> |
<div class="index-item-description">Fonction qui renvoie l'instance de classe en assurant son unicité, c'est l'unique méthode qui doit être</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getMode</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Debug.html#methodgetMode">Debug::getMode()</a> in Debug.php</div> |
<div class="index-item-description">Accesseur pour le mode</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getModele</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Controleur.html#methodgetModele">Controleur::getModele()</a> in Controleur.php</div> |
<div class="index-item-description">Retourne un modele donné</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getMotDePasse</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetMotDePasse">Url::getMotDePasse()</a> in Url.php</div> |
<div class="index-item-description">renvoie la partie mot de passe de la partie infoUtilisateur (partie après le premier ":"), , ou false si aucune partie infoUtilisateur n'est définie (i.e. l'URL ne contient pas de "@" en face du nom d'hôte) ou si la partie infoUtilisateur ne contient pas de ":".</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getOption</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetOption">Url::getOption()</a> in Url.php</div> |
<div class="index-item-description">Renvoie la valeur de l'option specifiée.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getPort</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetPort">Url::getPort()</a> in Url.php</div> |
<div class="index-item-description">Renvoie le numéro de port, ou false si aucun numéro de port n'est spécifié, i.e. le port par défaut doit utilisé.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getRequete</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetRequete">Url::getRequete()</a> in Url.php</div> |
<div class="index-item-description">renvoie la chaine de requête (requete string) (sans le premier "?"), ou false si "?" n'est pas présent dans l'url.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getSchema</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetSchema">Url::getSchema()</a> in Url.php</div> |
<div class="index-item-description">Retourne le schéma, c.a.d. "http" ou "urn", ou false si aucun schéma n'est spécifié, i.e. l'url est une url relative</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getTemps</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Chronometre.html#methodgetTemps">Chronometre::getTemps()</a> in Chronometre.php</div> |
<div class="index-item-description">Accesseurs :</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getURL</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetURL">Url::getURL()</a> in Url.php</div> |
<div class="index-item-description">Renvoie un représentation sous forme de chaine de l'URL</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getURLDemande</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetURLDemande">Url::getURLDemande()</a> in Url.php</div> |
<div class="index-item-description">Renvoie l'URL utilisée pour récupérer la requête en cours</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getURLNormalisee</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetURLNormalisee">Url::getURLNormalisee()</a> in Url.php</div> |
<div class="index-item-description">Renvoie une représentation de cette URL sous forme de chaine normalisée. Utile pour la comparaison d'URLs</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getUtilisateur</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetUtilisateur">Url::getUtilisateur()</a> in Url.php</div> |
<div class="index-item-description">renvoie la partie user de la partie infoUtilisateur (partie précédant le premier ":"), ou false si aucune partie infoUtilisateur n'est définie.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getVariablesRequete</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodgetVariablesRequete">Url::getVariablesRequete()</a> in Url.php</div> |
<div class="index-item-description">Renvoie la requete string sous forme d'un tableau de variables telles qu'elles apparaitraient dans le $_GET d'un script PHP</div> |
</dd> |
<dt class="field"> |
<span class="method-title">getVue</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Controleur.html#methodgetVue">Controleur::getVue()</a> in Controleur.php</div> |
<div class="index-item-description">Fonction prenant en paramètre le nom d'un squelette et un tableau associatif de données, en extrait les variables, charge le squelette et retourne le résultat des deux combinés.</div> |
</dd> |
</dl> |
<a name="i"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">i</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">initialiserProtocole</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Modele.html#methodinitialiserProtocole">Modele::initialiserProtocole()</a> in Modele.php</div> |
<div class="index-item-description">initialise les constantes de classe à leur bonne valeur</div> |
</dd> |
</dl> |
<a name="l"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">l</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
Log |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Log.html">Log</a> in Log.php</div> |
<div class="index-item-description">Classe permettant de logger des messages dans les fichier situés dans le dossier de log</div> |
</dd> |
<dt class="field"> |
<span class="include-title">Log.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_Log.php.html">Log.php</a> in Log.php</div> |
</dd> |
</dl> |
<a name="m"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">m</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="var-title">$mode</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Debug.html#var$mode">Debug::$mode</a> in Debug.php</div> |
<div class="index-item-description">mode de php (cli ou sapi)</div> |
</dd> |
<dt class="field"> |
Modele |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Modele.html">Modele</a> in Modele.php</div> |
<div class="index-item-description">Classe modèle, donc d'accés au données, elle ne devrait pas être appelée de l'extérieur.</div> |
</dd> |
<dt class="field"> |
<span class="include-title">Modele.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_Modele.php.html">Modele.php</a> in Modele.php</div> |
</dd> |
</dl> |
<a name="n"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">n</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">normaliser</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodnormaliser">Url::normaliser()</a> in Url.php</div> |
<div class="index-item-description">Renvoie une instance normalisée de Url</div> |
</dd> |
</dl> |
<a name="o"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">o</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
OPTION_ENCODER_CLES |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#constOPTION_ENCODER_CLES">Url::OPTION_ENCODER_CLES</a> in Url.php</div> |
<div class="index-item-description">URL-encoder les clés des variables dans les requêtes. Par défaut à true.</div> |
</dd> |
<dt class="field"> |
OPTION_SEPARATEUR_ENTREE |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#constOPTION_SEPARATEUR_ENTREE">Url::OPTION_SEPARATEUR_ENTREE</a> in Url.php</div> |
<div class="index-item-description">Séparateurs de variables lors du parsing de la requête. Chaque caractère est considéré comme un séparateur. Par défaut, spécifié par le paramêtre arg_separator.input dans php.ini (par défaut "&").</div> |
</dd> |
<dt class="field"> |
OPTION_SEPARATEUR_SORTIE |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#constOPTION_SEPARATEUR_SORTIE">Url::OPTION_SEPARATEUR_SORTIE</a> in Url.php</div> |
<div class="index-item-description">Séparateur de variables lors de la génération de la requête. Par défaut, spécifié par le paramètre arg_separator.output dans php.ini (par défaut "&").</div> |
</dd> |
<dt class="field"> |
OPTION_STRICTE |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#constOPTION_STRICTE">Url::OPTION_STRICTE</a> in Url.php</div> |
<div class="index-item-description">Parsing strict dans resoudre() (voir RFC 3986, section 5.2.2). Par défaut à true.</div> |
</dd> |
<dt class="field"> |
OPTION_UTILISER_CROCHETS |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#constOPTION_UTILISER_CROCHETS">Url::OPTION_UTILISER_CROCHETS</a> in Url.php</div> |
<div class="index-item-description">Répresenter les tableaux dans les requêtes en utilisant la notation php []. Par défaut à true.</div> |
</dd> |
</dl> |
<a name="p"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">p</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">printr</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Debug.html#methodprintr">Debug::printr()</a> in Debug.php</div> |
<div class="index-item-description">Equivalent de print_r</div> |
</dd> |
<dt class="field"> |
<span class="method-title">proteger</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Modele.html#methodproteger">Modele::proteger()</a> in Modele.php</div> |
<div class="index-item-description">protège une chaine de caractères avant l'insertion dans la base de données</div> |
</dd> |
<dt class="field"> |
<span class="const-title">PS</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_autoload.inc.php.html#definePS">PS</a> in autoload.inc.php</div> |
</dd> |
</dl> |
<a name="r"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">r</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
Registre |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Registre.html">Registre</a> in Registre.php</div> |
<div class="index-item-description">Classe registre, qui permet un accès à différentes variables à travers les autres classes.</div> |
</dd> |
<dt class="field"> |
<span class="include-title">Registre.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_Registre.php.html">Registre.php</a> in Registre.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">requete</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Modele.html#methodrequete">Modele::requete()</a> in Modele.php</div> |
<div class="index-item-description">Fonction qui appelle la bonne fonction pour executer une requête suivant le type de bdd.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">requeteTous</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Modele.html#methodrequeteTous">Modele::requeteTous()</a> in Modele.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">requeteUn</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Modele.html#methodrequeteUn">Modele::requeteUn()</a> in Modele.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">resoudre</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodresoudre">Url::resoudre()</a> in Url.php</div> |
<div class="index-item-description">Renvoie une instance de Url représentant une URL absolue relative à cette URL.</div> |
</dd> |
</dl> |
<a name="s"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">s</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">set</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Registre.html#methodset">Registre::set()</a> in Registre.php</div> |
<div class="index-item-description">Ajoute un objet au tableau selon un intitulé donné</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setAutorite</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetAutorite">Url::setAutorite()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setChemin</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Application.html#methodsetChemin">Application::setChemin()</a> in Application.php</div> |
<div class="index-item-description">Modificateur pour le chemin de base</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setChemin</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetChemin">Url::setChemin()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setContexte</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/GestionnaireException.html#methodsetContexte">GestionnaireException::setContexte()</a> in GestionnaireException.php</div> |
<div class="index-item-description">Definit si l'on veut afficher le contexte ou non</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setFragment</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetFragment">Url::setFragment()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setHote</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetHote">Url::setHote()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setInfo</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Application.html#methodsetInfo">Application::setInfo()</a> in Application.php</div> |
<div class="index-item-description">Le tableau des informations sur l'application possède les clés suivantes :</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setInfoUtilisateur</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetInfoUtilisateur">Url::setInfoUtilisateur()</a> in Url.php</div> |
<div class="index-item-description">Setteur pour la partie infoUtilisateur. Si deux argument sont passé, ils sont combinés dans la partie infoUtilisateur de cette manière username ":" password.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setOption</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetOption">Url::setOption()</a> in Url.php</div> |
<div class="index-item-description">Met à jour la valeur de l'option spécifiée.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setPort</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetPort">Url::setPort()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setRequete</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetRequete">Url::setRequete()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setSchema</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetSchema">Url::setSchema()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setTemps</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Chronometre.html#methodsetTemps">Chronometre::setTemps()</a> in Chronometre.php</div> |
<div class="index-item-description">Setteur pour la variable temps</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setVariableRequete</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetVariableRequete">Url::setVariableRequete()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">setVariablesRequete</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodsetVariablesRequete">Url::setVariablesRequete()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
SquelettePhp |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/SquelettePhp.html">SquelettePhp</a> in SquelettePhp.php</div> |
<div class="index-item-description">Classe SquelettePhp, traitant les squelette Php utilisant la syntaxe courte php ou pas.</div> |
</dd> |
<dt class="field"> |
<span class="include-title">SquelettePhp.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_SquelettePhp.php.html">SquelettePhp.php</a> in SquelettePhp.php</div> |
</dd> |
</dl> |
<a name="u"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">u</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">unsetVariableRequete</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#methodunsetVariableRequete">Url::unsetVariableRequete()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
Url |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html">Url</a> in Url.php</div> |
<div class="index-item-description">classe Url, gérant le découpage des paramètres, leurs modification etc...</div> |
</dd> |
<dt class="field"> |
<span class="include-title">Url.php</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/_Url.php.html">Url.php</a> in Url.php</div> |
</dd> |
</dl> |
<a name="v"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">v</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">verifierOuvrirFichier</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Log.html#methodverifierOuvrirFichier">Log::verifierOuvrirFichier()</a> in Log.php</div> |
<div class="index-item-description">Vérifie la présence d'un fichier dans le tableau, ses droits d'écriture,</div> |
</dd> |
<dt class="field"> |
<span class="method-title">viderLog</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Log.html#methodviderLog">Log::viderLog()</a> in Log.php</div> |
<div class="index-item-description">Vide un fichier log indiqué</div> |
</dd> |
</dl> |
<a name="_"></a> |
<div class="index-letter-section"> |
<div style="float: left" class="index-letter-title">_</div> |
<div style="float: right"><a href="#top">top</a></div> |
<div style="clear: both"></div> |
</div> |
<dl> |
<dt class="field"> |
<span class="method-title">__construct</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Chronometre.html#method__construct">Chronometre::__construct()</a> in Chronometre.php</div> |
<div class="index-item-description">Constructeur : *</div> |
</dd> |
<dt class="field"> |
<span class="method-title">__construct</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Modele.html#method__construct">Modele::__construct()</a> in Modele.php</div> |
<div class="index-item-description">Constructeur par défaut, appelé à l'initialisation.</div> |
</dd> |
<dt class="field"> |
<span class="method-title">__construct</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#method__construct">Url::__construct()</a> in Url.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">__construct</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/GestionnaireException.html#method__construct">GestionnaireException::__construct()</a> in GestionnaireException.php</div> |
<div class="index-item-description">Constructeur avec paramètres optionnel</div> |
</dd> |
<dt class="field"> |
<span class="method-title">__construct</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Controleur.html#method__construct">Controleur::__construct()</a> in Controleur.php</div> |
<div class="index-item-description">Constructeur par défaut</div> |
</dd> |
<dt class="field"> |
<span class="method-title">__destruct</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Modele.html#method__destruct">Modele::__destruct()</a> in Modele.php</div> |
<div class="index-item-description">Destructeur de classe, se contente de fermer explicitement la connexion</div> |
</dd> |
<dt class="field"> |
<span class="method-title">__destruct</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Log.html#method__destruct">Log::__destruct()</a> in Log.php</div> |
<div class="index-item-description">destructeur de classe, ferme les descripteurs ouverts</div> |
</dd> |
<dt class="field"> |
<span class="method-title">__destruct</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/GestionnaireException.html#method__destruct">GestionnaireException::__destruct()</a> in GestionnaireException.php</div> |
</dd> |
<dt class="field"> |
<span class="method-title">__toString</span> |
</dt> |
<dd class="index-item-body"> |
<div class="index-item-details"><a href="Framework/Url.html#method__toString">Url::__toString()</a> in Url.php</div> |
</dd> |
</dl> |
<div class="index-letter-menu"> |
<a class="index-letter" href="elementindex.html#a">a</a> |
<a class="index-letter" href="elementindex.html#c">c</a> |
<a class="index-letter" href="elementindex.html#d">d</a> |
<a class="index-letter" href="elementindex.html#e">e</a> |
<a class="index-letter" href="elementindex.html#g">g</a> |
<a class="index-letter" href="elementindex.html#i">i</a> |
<a class="index-letter" href="elementindex.html#l">l</a> |
<a class="index-letter" href="elementindex.html#m">m</a> |
<a class="index-letter" href="elementindex.html#n">n</a> |
<a class="index-letter" href="elementindex.html#o">o</a> |
<a class="index-letter" href="elementindex.html#p">p</a> |
<a class="index-letter" href="elementindex.html#r">r</a> |
<a class="index-letter" href="elementindex.html#s">s</a> |
<a class="index-letter" href="elementindex.html#u">u</a> |
<a class="index-letter" href="elementindex.html#v">v</a> |
<a class="index-letter" href="elementindex.html#_">_</a> |
</div> </body> |
</html> |
/trunk/doc/HTMLframesConverter/li_Framework.html |
---|
New file |
0,0 → 1,181 |
<?xml version="1.0" encoding="UTF-8"?> |
<!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></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> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<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> |
<h3 class="package-title">Framework</h3> |
<div class="tree"> |
<script language="Javascript"> |
if (document.getElementById) { |
var tree = new WebFXTree('<span class="package">Framework</span>'); |
tree.setBehavior('classic'); |
var class_trees = new WebFXTreeItem('Class trees', 'classtrees_Framework.html'); |
tree.add(class_trees); |
var elements = new WebFXTreeItem('Index of elements', 'elementindex_Framework.html'); |
tree.add(elements); |
var parent_node; |
var tree_classe = new WebFXTreeItem('Class(es)', ''); |
var classe = new WebFXTreeItem('Application', 'Framework/Application.html'); |
tree_classe.add(classe); |
var classe = new WebFXTreeItem('Chronometre', 'Framework/Chronometre.html'); |
tree_classe.add(classe); |
var classe = new WebFXTreeItem('Config', 'Framework/Config.html'); |
tree_classe.add(classe); |
var classe = new WebFXTreeItem('Controleur', 'Framework/Controleur.html'); |
tree_classe.add(classe); |
var classe = new WebFXTreeItem('Debug', 'Framework/Debug.html'); |
tree_classe.add(classe); |
var classe = new WebFXTreeItem('GestionnaireException', 'Framework/GestionnaireException.html'); |
tree_classe.add(classe); |
var classe = new WebFXTreeItem('Log', 'Framework/Log.html'); |
tree_classe.add(classe); |
var classe = new WebFXTreeItem('Modele', 'Framework/Modele.html'); |
tree_classe.add(classe); |
var classe = new WebFXTreeItem('Registre', 'Framework/Registre.html'); |
tree_classe.add(classe); |
var classe = new WebFXTreeItem('SquelettePhp', 'Framework/SquelettePhp.html'); |
tree_classe.add(classe); |
var classe = new WebFXTreeItem('Url', 'Framework/Url.html'); |
tree_classe.add(classe); |
tree.add(tree_classe); |
var tree_function = new WebFXTreeItem('Function(s)', ''); |
var fic = new WebFXTreeItem('autoloadAppliDefaut', 'Framework/_autoload.inc.php.html#functionautoloadAppliDefaut'); |
tree_function.add(fic); |
var fic = new WebFXTreeItem('autoloadFw', 'Framework/_autoload.inc.php.html#functionautoloadFw'); |
tree_function.add(fic); |
tree.add(tree_function); |
var tree_file = new WebFXTreeItem('File(s)', ''); |
var file = new WebFXTreeItem('Application.php', 'Framework/_Application.php.html'); |
tree_file.add(file); |
var file = new WebFXTreeItem('autoload.inc.php', 'Framework/_autoload.inc.php.html'); |
tree_file.add(file); |
var file = new WebFXTreeItem('Chronometre.php', 'Framework/_Chronometre.php.html'); |
tree_file.add(file); |
var file = new WebFXTreeItem('Config.php', 'Framework/_Config.php.html'); |
tree_file.add(file); |
var file = new WebFXTreeItem('Controleur.php', 'Framework/_Controleur.php.html'); |
tree_file.add(file); |
var file = new WebFXTreeItem('Debug.php', 'Framework/_Debug.php.html'); |
tree_file.add(file); |
var file = new WebFXTreeItem('GestionnaireException.php', 'Framework/_GestionnaireException.php.html'); |
tree_file.add(file); |
var file = new WebFXTreeItem('Log.php', 'Framework/_Log.php.html'); |
tree_file.add(file); |
var file = new WebFXTreeItem('Modele.php', 'Framework/_Modele.php.html'); |
tree_file.add(file); |
var file = new WebFXTreeItem('Registre.php', 'Framework/_Registre.php.html'); |
tree_file.add(file); |
var file = new WebFXTreeItem('SquelettePhp.php', 'Framework/_SquelettePhp.php.html'); |
tree_file.add(file); |
var file = new WebFXTreeItem('Url.php', 'Framework/_Url.php.html'); |
tree_file.add(file); |
tree.add(tree_file); |
document.write(tree); |
} |
</script> |
</div> |
<p class="notes"> |
Generated by |
<a href="http://www.phpdoc.org" target="_blank">phpDocumentor <span class="field">1.4.3</span></a> |
</p> |
</body> |
</html> |
/trunk/doc/.htaccess |
---|
New file |
0,0 → 1,0 |
AddDefaultCharset UTF-8 |
/trunk/doc/HTMLSmartyConverter/classtrees_Framework.html |
---|
New file |
0,0 → 1,102 |
<html> |
<head> |
<title>Class Trees for Package Framework</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="li_Framework.html">Framework</a><br /> |
<br /><br /> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Class Trees for Package Framework</h1> |
<hr /> |
<div class="classtree">Root class Application</div><br /> |
<ul> |
<li><a href="Framework/Application.html">Application</a></li></ul> |
<hr /> |
<div class="classtree">Root class Chronometre</div><br /> |
<ul> |
<li><a href="Framework/Chronometre.html">Chronometre</a></li></ul> |
<hr /> |
<div class="classtree">Root class Config</div><br /> |
<ul> |
<li><a href="Framework/Config.html">Config</a></li></ul> |
<hr /> |
<div class="classtree">Root class Controleur</div><br /> |
<ul> |
<li><a href="Framework/Controleur.html">Controleur</a></li></ul> |
<hr /> |
<div class="classtree">Root class Debug</div><br /> |
<ul> |
<li><a href="Framework/Debug.html">Debug</a></li></ul> |
<hr /> |
<div class="classtree">Root class GestionnaireException</div><br /> |
<ul> |
<li><a href="Framework/GestionnaireException.html">GestionnaireException</a></li></ul> |
<hr /> |
<div class="classtree">Root class Log</div><br /> |
<ul> |
<li><a href="Framework/Log.html">Log</a></li></ul> |
<hr /> |
<div class="classtree">Root class Modele</div><br /> |
<ul> |
<li><a href="Framework/Modele.html">Modele</a></li></ul> |
<hr /> |
<div class="classtree">Root class Registre</div><br /> |
<ul> |
<li><a href="Framework/Registre.html">Registre</a></li></ul> |
<hr /> |
<div class="classtree">Root class SquelettePhp</div><br /> |
<ul> |
<li><a href="Framework/SquelettePhp.html">SquelettePhp</a></li></ul> |
<hr /> |
<div class="classtree">Root class Url</div><br /> |
<ul> |
<li><a href="Framework/Url.html">Url</a></li></ul> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:28 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/index.html |
---|
New file |
0,0 → 1,93 |
<html> |
<head> |
<title>Documentation</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="Framework/Application.html">Application</a><br /> |
<a href="Framework/Chronometre.html">Chronometre</a><br /> |
<a href="Framework/Config.html">Config</a><br /> |
<a href="Framework/Controleur.html">Controleur</a><br /> |
<a href="Framework/Debug.html">Debug</a><br /> |
<a href="Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="Framework/Log.html">Log</a><br /> |
<a href="Framework/Modele.html">Modele</a><br /> |
<a href="Framework/Registre.html">Registre</a><br /> |
<a href="Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<div align="center"><h1>Documentation</h1></div> |
<b>Welcome to Framework!</b><br /> |
<br /> |
This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.3</a><br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:28 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/SquelettePhp.html |
---|
New file |
0,0 → 1,229 |
<html> |
<head> |
<title>Docs For Class SquelettePhp</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Class: SquelettePhp</h1> |
Source Location: /SquelettePhp.php<br /><br /> |
<table width="100%" border="0"> |
<tr><td valign="top"> |
<h3><a href="#class_details">Class Overview</a></h3> |
<pre></pre><br /> |
<div class="description">Classe SquelettePhp, traitant les squelette Php utilisant la syntaxe courte php ou pas.</div><br /><br /> |
<h4>Author(s):</h4> |
<ul> |
<li>Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></li> |
</ul> |
<h4>Version:</h4> |
<ul> |
<li>SVN: $$Id: SquelettePhp.php 153 2010-03-04 10:48:32Z jpm $$</li> |
</ul> |
<h4>Copyright:</h4> |
<ul> |
<li>2010 Tela-Botanica</li> |
</ul> |
</td> |
<td valign="top"> |
<h3><a href="#class_methods">Methods</a></h3> |
<ul> |
<li><a href="../Framework/SquelettePhp.html#methodanalyser">analyser</a></li> |
</ul> |
</td> |
</tr></table> |
<hr /> |
<table width="100%" border="0"><tr> |
</tr></table> |
<hr /> |
<a name="class_details"></a> |
<h3>Class Details</h3> |
<div class="tags"> |
[line <a href="../__filesource/fsource_Framework__SquelettePhp.php.html#a16">16</a>]<br /> |
Classe SquelettePhp, traitant les squelette Php utilisant la syntaxe courte php ou pas.<br /><br /><p>Ces méthodes sont statiques.</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>author:</b> </td><td>Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></td> |
</tr> |
<tr> |
<td><b>version:</b> </td><td>SVN: $$Id: SquelettePhp.php 153 2010-03-04 10:48:32Z jpm $$</td> |
</tr> |
<tr> |
<td><b>copyright:</b> </td><td>2010 Tela-Botanica</td> |
</tr> |
<tr> |
<td><b>link:</b> </td><td>/doc/framework/</td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td><a href="http://www.gnu.org/licenses/gpl.html">Licence GNU-GPL</a></td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td><a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL</a></td> |
</tr> |
</table> |
</div> |
</div><br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /> |
<hr /> |
<a name="class_methods"></a> |
<h3>Class Methods</h3> |
<div class="tags"> |
<hr /> |
<a name="methodanalyser"></a> |
<h3>static method analyser <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__SquelettePhp.php.html#a27">27</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static boolean analyser( |
String |
$fichier, [ |
$donnees = array()])</code> |
</td></tr></table> |
</td></tr></table><br /> |
Fonction prenant en paramètre un chemin de fichier squelette et un tableau associatif de données, en extrait les variables, charge le squelette et retourne le résultat des deux combinés.<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>false si la vue n'existe pas, sinon la chaine résultat.</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">String </td> |
<td><b>$fichier</b> </td> |
<td>le chemin du fichier du squelette</td> |
</tr> |
<tr> |
<td class="type">Array </td> |
<td><b>$donnees</b> </td> |
<td>un tableau associatif contenant les variables a injecter dans le squelette.</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
</div><br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:36 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/Registre.html |
---|
New file |
0,0 → 1,369 |
<html> |
<head> |
<title>Docs For Class Registre</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Class: Registre</h1> |
Source Location: /Registre.php<br /><br /> |
<table width="100%" border="0"> |
<tr><td valign="top"> |
<h3><a href="#class_details">Class Overview</a></h3> |
<pre></pre><br /> |
<div class="description">Classe registre, qui permet un accès à différentes variables à travers les autres classes.</div><br /><br /> |
<h4>Author(s):</h4> |
<ul> |
<li>Jean-Pascal Milcent <<a href="mailto:jmp@tela-botanica.org">jmp@tela-botanica.org</a>></li> |
</ul> |
<h4>Version:</h4> |
<ul> |
<li>SVN: $$Id: Registre.php 120 2009-09-01 12:21:14Z aurelien $$</li> |
</ul> |
<h4>Copyright:</h4> |
<ul> |
<li>2009 Tela-Botanica</li> |
</ul> |
</td> |
<td valign="top"> |
<h3><a href="#class_methods">Methods</a></h3> |
<ul> |
<li><a href="../Framework/Registre.html#methoddetruire">detruire</a></li> |
<li><a href="../Framework/Registre.html#methodexiste">existe</a></li> |
<li><a href="../Framework/Registre.html#methodget">get</a></li> |
<li><a href="../Framework/Registre.html#methodgetInstance">getInstance</a></li> |
<li><a href="../Framework/Registre.html#methodset">set</a></li> |
</ul> |
</td> |
</tr></table> |
<hr /> |
<table width="100%" border="0"><tr> |
</tr></table> |
<hr /> |
<a name="class_details"></a> |
<h3>Class Details</h3> |
<div class="tags"> |
[line <a href="../__filesource/fsource_Framework__Registre.php.html#a19">19</a>]<br /> |
Classe registre, qui permet un accès à différentes variables à travers les autres classes.<br /><br /><p>C'est un singleton</p><p>PHP Version 5</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>author:</b> </td><td>Jean-Pascal Milcent <<a href="mailto:jmp@tela-botanica.org">jmp@tela-botanica.org</a>></td> |
</tr> |
<tr> |
<td><b>version:</b> </td><td>SVN: $$Id: Registre.php 120 2009-09-01 12:21:14Z aurelien $$</td> |
</tr> |
<tr> |
<td><b>copyright:</b> </td><td>2009 Tela-Botanica</td> |
</tr> |
<tr> |
<td><b>link:</b> </td><td>/doc/framework/</td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td><a href="http://www.gnu.org/licenses/gpl.html">Licence GNU-GPL</a></td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td><a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL</a></td> |
</tr> |
</table> |
</div> |
</div><br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /> |
<hr /> |
<a name="class_methods"></a> |
<h3>Class Methods</h3> |
<div class="tags"> |
<hr /> |
<a name="methodgetInstance"></a> |
<h3>static method getInstance <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Registre.php.html#a40">40</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static void getInstance( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Fonction qui renvoie l'instance de classe en assurant son unicité, c'est l'unique méthode qui doit être<br /><br /><p>utilisée pour récupérer l'objet Registre</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methoddetruire"></a> |
<h3>method detruire <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Registre.php.html#a77">77</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void detruire( |
$intitule)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Détruit l'objet associé à l'intitulé, n'a pas d'effet si il n'y a pas d'objet associé<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type"> </td> |
<td><b>$intitule</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodexiste"></a> |
<h3>method existe <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Registre.php.html#a87">87</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>boolean existe( |
$intitule)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Teste si un objet est présent sous un intitulé donné<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>true si un objet associé à cet intitulé est présent, false sinon</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type"> </td> |
<td><b>$intitule</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodget"></a> |
<h3>method get <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Registre.php.html#a67">67</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>mixed get( |
$intitule)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie l'objet associé à l'intitulé donné en paramètre<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>l'objet associé à l'intitulé ou null s'il n'est pas présent</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type"> </td> |
<td><b>$intitule</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodset"></a> |
<h3>method set <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Registre.php.html#a53">53</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void set( |
string |
$intitule, mixed |
$objet)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Ajoute un objet au tableau selon un intitulé donné<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$intitule</b> </td> |
<td>l'intitulé sous lequel l'objet sera conservé</td> |
</tr> |
<tr> |
<td class="type">mixed </td> |
<td><b>$objet</b> </td> |
<td>l'objet à conserver</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
</div><br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:35 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/Chronometre.html |
---|
New file |
0,0 → 1,335 |
<html> |
<head> |
<title>Docs For Class Chronometre</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Class: Chronometre</h1> |
Source Location: /Chronometre.php<br /><br /> |
<table width="100%" border="0"> |
<tr><td valign="top"> |
<h3><a href="#class_details">Class Overview</a></h3> |
<pre></pre><br /> |
<div class="description">Classe Chronometre() - Permet de stocker et d'afficher les temps d'éxécution de script.</div><br /><br /> |
<h4>Author(s):</h4> |
<ul> |
<li>Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></li> |
</ul> |
<h4>Version:</h4> |
<ul> |
<li>Release: <package_version></li> |
</ul> |
<h4>Copyright:</h4> |
<ul> |
<li>2009 Tela-Botanica</li> |
</ul> |
</td> |
<td valign="top"> |
<h3><a href="#class_methods">Methods</a></h3> |
<ul> |
<li><a href="../Framework/Chronometre.html#method__construct">__construct</a></li> |
<li><a href="../Framework/Chronometre.html#methodafficherChrono">afficherChrono</a></li> |
<li><a href="../Framework/Chronometre.html#methodgetTemps">getTemps</a></li> |
<li><a href="../Framework/Chronometre.html#methodsetTemps">setTemps</a></li> |
</ul> |
</td> |
</tr></table> |
<hr /> |
<table width="100%" border="0"><tr> |
</tr></table> |
<hr /> |
<a name="class_details"></a> |
<h3>Class Details</h3> |
<div class="tags"> |
[line <a href="../__filesource/fsource_Framework__Chronometre.php.html#a23">23</a>]<br /> |
Classe Chronometre() - Permet de stocker et d'afficher les temps d'éxécution de script.<br /><br /><p>Cette classe permet de réaliser un ensemble de mesure de temps prises à différents endroits d'un script. Ces mesures peuvent ensuite être affichées au sein d'un tableau XHTML.</p><p>PHP Version 5</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>author:</b> </td><td>Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></td> |
</tr> |
<tr> |
<td><b>version:</b> </td><td>Release: <package_version></td> |
</tr> |
<tr> |
<td><b>copyright:</b> </td><td>2009 Tela-Botanica</td> |
</tr> |
<tr> |
<td><b>link:</b> </td><td>/doc/framework/</td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td><a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL</a></td> |
</tr> |
</table> |
</div> |
</div><br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /> |
<hr /> |
<a name="class_methods"></a> |
<h3>Class Methods</h3> |
<div class="tags"> |
<hr /> |
<a name="method__construct"></a> |
<h3>constructor __construct <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Chronometre.php.html#a28">28</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>Chronometre __construct( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Constructeur : *<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodafficherChrono"></a> |
<h3>method afficherChrono <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Chronometre.php.html#a82">82</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>string afficherChrono( |
[int |
$indentation_origine = 8], [int |
$indentation = 4])</code> |
</td></tr></table> |
</td></tr></table><br /> |
Méthode afficherChrono() - Permet d'afficher les temps d'éxécution de différentes parties d'un script.<br /><br /><p>Cette fonction permet d'afficher un ensemble de mesure de temps prises à différents endroits d'un script. Ces mesures sont affichées au sein d'un tableau XHTML dont on peut controler l'indentation des balises. Pour un site en production, il suffit d'ajouter un style #chrono {display:none;} dans la css. De cette façon, le tableau ne s'affichera pas. Le webmaster lui pourra rajouter sa propre feuille de style affichant le tableau. Le développeur initial de cette fonction est Loic d'Anterroches. Elle a été modifiée par Jean-Pascal Milcent. Elle utilise une variable gobale : $_CHRONO_</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>la chaine XHTML de mesure des temps.</td> |
</tr> |
<tr> |
<td><b>author:</b> </td><td>Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></td> |
</tr> |
<tr> |
<td><b>author:</b> </td><td>Loic d'Anterroches</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">int </td> |
<td><b>$indentation_origine</b> </td> |
<td>l'indentation de base.</td> |
</tr> |
<tr> |
<td class="type">int </td> |
<td><b>$indentation</b> </td> |
<td>le pas d'indentation.</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetTemps"></a> |
<h3>method getTemps <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Chronometre.php.html#a38">38</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>int getTemps( |
[string |
$cle = null])</code> |
</td></tr></table> |
</td></tr></table><br /> |
Accesseurs :<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>le temps écoulé</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$cle</b> </td> |
<td>la cle associée à un chronomètre particulier</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodsetTemps"></a> |
<h3>method setTemps <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Chronometre.php.html#a54">54</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>null setTemps( |
[array() |
$moment = array ()])</code> |
</td></tr></table> |
</td></tr></table><br /> |
Setteur pour la variable temps<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">array() </td> |
<td><b>$moment</b> </td> |
<td>ajoute des points de chronométrage au tableau _temps</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
</div><br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:29 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/Debug.html |
---|
New file |
0,0 → 1,348 |
<html> |
<head> |
<title>Docs For Class Debug</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Class: Debug</h1> |
Source Location: /Debug.php<br /><br /> |
<table width="100%" border="0"> |
<tr><td valign="top"> |
<h3><a href="#class_details">Class Overview</a></h3> |
<pre></pre><br /> |
<div class="description">Classe fournissant des fonctions de débogage équivalante à var_dump et print_r.</div><br /><br /> |
<h4>Author(s):</h4> |
<ul> |
<li>Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></li> |
</ul> |
<h4>Version:</h4> |
<ul> |
<li>$$Id: Debug.php 153 2010-03-04 10:48:32Z jpm $$</li> |
</ul> |
<h4>Copyright:</h4> |
<ul> |
<li>1999-2009 Tela Botanica (accueil@tela-botanica.org)</li> |
</ul> |
</td> |
<td valign="top"> |
<h3><a href="#class_vars">Variables</a></h3> |
<ul> |
<li><a href="../Framework/Debug.html#var$mode">$mode</a></li> |
</ul> |
</td> |
<td valign="top"> |
<h3><a href="#class_methods">Methods</a></h3> |
<ul> |
<li><a href="../Framework/Debug.html#methoddump">dump</a></li> |
<li><a href="../Framework/Debug.html#methodgetMode">getMode</a></li> |
<li><a href="../Framework/Debug.html#methodprintr">printr</a></li> |
</ul> |
</td> |
</tr></table> |
<hr /> |
<table width="100%" border="0"><tr> |
</tr></table> |
<hr /> |
<a name="class_details"></a> |
<h3>Class Details</h3> |
<div class="tags"> |
[line <a href="../__filesource/fsource_Framework__Debug.php.html#a20">20</a>]<br /> |
Classe fournissant des fonctions de débogage équivalante à var_dump et print_r.<br /><br /><p>L'affichage et l'utilisation de ces fonctions sont améliorés via cette classe. Cette classe est inspirée de la classe Zend_Debug.</p><p>PHP version 5</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>author:</b> </td><td>Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></td> |
</tr> |
<tr> |
<td><b>version:</b> </td><td>$$Id: Debug.php 153 2010-03-04 10:48:32Z jpm $$</td> |
</tr> |
<tr> |
<td><b>copyright:</b> </td><td>1999-2009 Tela Botanica (accueil@tela-botanica.org)</td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td>GPL</td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td>CECILL</td> |
</tr> |
</table> |
</div> |
</div><br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /> |
<hr /> |
<a name="class_vars"></a> |
<h3>Class Variables</h3> |
<div class="tags"> |
<a name="var$mode"></a> |
<p></p> |
<h4>static $mode = <span class="value"> null</span></h4> |
<p>[line <a href="../__filesource/fsource_Framework__Debug.php.html#a25">25</a>]</p> |
mode de php (cli ou sapi)<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>protected</td> |
</tr> |
</table> |
</div> |
<br /> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>Type:</b> </td> |
<td>mixed</td> |
</tr> |
</table> |
</div><br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /> |
</div><br /> |
<hr /> |
<a name="class_methods"></a> |
<h3>Class Methods</h3> |
<div class="tags"> |
<hr /> |
<a name="methoddump"></a> |
<h3>static method dump <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Debug.php.html#a45">45</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static string dump( |
mixed |
$variable, [string |
$mot_cle = null], [boolean |
$echo = true])</code> |
</td></tr></table> |
</td></tr></table><br /> |
Equivalent de var_dump<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>la chaine à afficher representant le dump ou null si echo</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">mixed </td> |
<td><b>$variable</b> </td> |
<td>la variable à dumper</td> |
</tr> |
<tr> |
<td class="type">string </td> |
<td><b>$mot_cle</b> </td> |
<td>le mot cle à associer à la variable</td> |
</tr> |
<tr> |
<td class="type">boolean </td> |
<td><b>$echo</b> </td> |
<td>si true on affiche le résultat, si false on ne renvoie que la chaine sans l'afficher</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetMode"></a> |
<h3>static method getMode <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Debug.php.html#a31">31</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static string getMode( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Accesseur pour le mode<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>le mode de php</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodprintr"></a> |
<h3>static method printr <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Debug.php.html#a65">65</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static string printr( |
mixed |
$variable, [string |
$mot_cle = null], [boolean |
$echo = true])</code> |
</td></tr></table> |
</td></tr></table><br /> |
Equivalent de print_r<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>la chaine contenant la variable printée ou null si echo</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">mixed </td> |
<td><b>$variable</b> </td> |
<td>la variable à afficher</td> |
</tr> |
<tr> |
<td class="type">string </td> |
<td><b>$mot_cle</b> </td> |
<td>le mot cle à associer</td> |
</tr> |
<tr> |
<td class="type">boolean </td> |
<td><b>$echo</b> </td> |
<td>faire un echo ou non</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
</div><br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:32 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/_Url.php.html |
---|
New file |
0,0 → 1,116 |
<html> |
<head> |
<title>Docs for page Url.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Procedural File: Url.php</h1> |
Source Location: /Url.php<br /><br /> |
<br> |
<br> |
<div class="contents"> |
<h2>Classes:</h2> |
<dt><a href="../Framework/Url.html">Url</a></dt> |
<dd>classe Url, gérant le découpage des paramètres, leurs modification etc...</dd> |
</div><br /><br /> |
<h2>Page Details:</h2> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>filesource:</b> </td><td><a href="../__filesource/fsource_Framework__Url.php.html">Source Code for this file</a></td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<br /><br /> |
<br /><br /> |
<br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:36 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/_Application.php.html |
---|
New file |
0,0 → 1,116 |
<html> |
<head> |
<title>Docs for page Application.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Procedural File: Application.php</h1> |
Source Location: /Application.php<br /><br /> |
<br> |
<br> |
<div class="contents"> |
<h2>Classes:</h2> |
<dt><a href="../Framework/Application.html">Application</a></dt> |
<dd>Classe fournissant des informations au Framework sur l'application.</dd> |
</div><br /><br /> |
<h2>Page Details:</h2> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>filesource:</b> </td><td><a href="../__filesource/fsource_Framework__Application.php.html">Source Code for this file</a></td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<br /><br /> |
<br /><br /> |
<br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:28 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/_Modele.php.html |
---|
New file |
0,0 → 1,116 |
<html> |
<head> |
<title>Docs for page Modele.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Procedural File: Modele.php</h1> |
Source Location: /Modele.php<br /><br /> |
<br> |
<br> |
<div class="contents"> |
<h2>Classes:</h2> |
<dt><a href="../Framework/Modele.html">Modele</a></dt> |
<dd>Classe modèle, donc d'accés au données, elle ne devrait pas être appelée de l'extérieur.</dd> |
</div><br /><br /> |
<h2>Page Details:</h2> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>filesource:</b> </td><td><a href="../__filesource/fsource_Framework__Modele.php.html">Source Code for this file</a></td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<br /><br /> |
<br /><br /> |
<br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:33 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/_Config.php.html |
---|
New file |
0,0 → 1,116 |
<html> |
<head> |
<title>Docs for page Config.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Procedural File: Config.php</h1> |
Source Location: /Config.php<br /><br /> |
<br> |
<br> |
<div class="contents"> |
<h2>Classes:</h2> |
<dt><a href="../Framework/Config.html">Config</a></dt> |
<dd>Config permet de charger automatiquement les fichiers ini du Framework et de l'application.</dd> |
</div><br /><br /> |
<h2>Page Details:</h2> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>filesource:</b> </td><td><a href="../__filesource/fsource_Framework__Config.php.html">Source Code for this file</a></td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<br /><br /> |
<br /><br /> |
<br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:29 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/_GestionnaireException.php.html |
---|
New file |
0,0 → 1,116 |
<html> |
<head> |
<title>Docs for page GestionnaireException.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Procedural File: GestionnaireException.php</h1> |
Source Location: /GestionnaireException.php<br /><br /> |
<br> |
<br> |
<div class="contents"> |
<h2>Classes:</h2> |
<dt><a href="../Framework/GestionnaireException.html">GestionnaireException</a></dt> |
<dd>Classe de gestion des exceptions.</dd> |
</div><br /><br /> |
<h2>Page Details:</h2> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>filesource:</b> </td><td><a href="../__filesource/fsource_Framework__GestionnaireException.php.html">Source Code for this file</a></td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<br /><br /> |
<br /><br /> |
<br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:32 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/Controleur.html |
---|
New file |
0,0 → 1,388 |
<html> |
<head> |
<title>Docs For Class Controleur</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Class: Controleur</h1> |
Source Location: /Controleur.php<br /><br /> |
<table width="100%" border="0"> |
<tr><td valign="top"> |
<h3><a href="#class_details">Class Overview</a></h3> |
<pre></pre><br /> |
<div class="description">Classe Controleur, coeur d'une application, c'est normalement la seule classe d'une application qui devrait être appelée de l'extérieur.</div><br /><br /> |
<h4>Author(s):</h4> |
<ul> |
<li>Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></li> |
<li>Aurélien PERONNET <<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>></li> |
</ul> |
<h4>Version:</h4> |
<ul> |
<li>SVN: $$Id: Controleur.php 158 2010-03-04 17:14:36Z jpm $$</li> |
</ul> |
<h4>Copyright:</h4> |
<ul> |
<li>2009 Tela-Botanica</li> |
</ul> |
</td> |
<td valign="top"> |
<h3><a href="#class_methods">Methods</a></h3> |
<ul> |
<li><a href="../Framework/Controleur.html#method__construct">__construct</a></li> |
<li><a href="../Framework/Controleur.html#methodchargerModele">chargerModele</a></li> |
<li><a href="../Framework/Controleur.html#methodchargerVue">chargerVue</a></li> |
<li><a href="../Framework/Controleur.html#methodgetModele">getModele</a></li> |
<li><a href="../Framework/Controleur.html#methodgetVue">getVue</a></li> |
</ul> |
</td> |
</tr></table> |
<hr /> |
<table width="100%" border="0"><tr> |
</tr></table> |
<hr /> |
<a name="class_details"></a> |
<h3>Class Details</h3> |
<div class="tags"> |
[line <a href="../__filesource/fsource_Framework__Controleur.php.html#a19">19</a>]<br /> |
Classe Controleur, coeur d'une application, c'est normalement la seule classe d'une application qui devrait être appelée de l'extérieur.<br /><br /><p>Elle est abstraite donc doit obligatoirement être étendue.</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>author:</b> </td><td>Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></td> |
</tr> |
<tr> |
<td><b>author:</b> </td><td>Aurélien PERONNET <<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>></td> |
</tr> |
<tr> |
<td><b>version:</b> </td><td>SVN: $$Id: Controleur.php 158 2010-03-04 17:14:36Z jpm $$</td> |
</tr> |
<tr> |
<td><b>copyright:</b> </td><td>2009 Tela-Botanica</td> |
</tr> |
<tr> |
<td><b>link:</b> </td><td>/doc/framework/</td> |
</tr> |
<tr> |
<td><b>abstract:</b> </td><td></td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td><a href="http://www.gnu.org/licenses/gpl.html">Licence GNU-GPL</a></td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td><a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL</a></td> |
</tr> |
</table> |
</div> |
</div><br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /> |
<hr /> |
<a name="class_methods"></a> |
<h3>Class Methods</h3> |
<div class="tags"> |
<hr /> |
<a name="method__construct"></a> |
<h3>constructor __construct <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Controleur.php.html#a28">28</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>Controleur __construct( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Constructeur par défaut<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodchargerModele"></a> |
<h3>method chargerModele <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Controleur.php.html#a47">47</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>boolean chargerModele( |
string |
$nom_modele)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Charge un modele donné et le rend disponible sous la forme $this->nom_modele<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>false si le chargement a échoué, sinon true.</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>protected</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$nom_modele</b> </td> |
<td>le nom du modèle à charger</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodchargerVue"></a> |
<h3>method chargerVue <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Controleur.php.html#a102">102</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>boolean chargerVue( |
String |
$nom_squelette, [Array |
$donnees = array()])</code> |
</td></tr></table> |
</td></tr></table><br /> |
Fonction prenant en paramètre le nom d'un squelette et un tableau associatif de données, en extrait les variables, charge le squelette et crée une variable de classe portant le nom du squelette contenant les deux combinés.<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>false si la vue n'existe pas, sinon true.</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>protected</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">String </td> |
<td><b>$nom_squelette</b> </td> |
<td>le nom du squelette</td> |
</tr> |
<tr> |
<td class="type">Array </td> |
<td><b>$donnees</b> </td> |
<td>un tableau associatif contenant les variables a injecter dans la vue</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetModele"></a> |
<h3>method getModele <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Controleur.php.html#a65">65</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>mixed getModele( |
string |
$nom_modele)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Retourne un modele donné<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>false si le chargement a échoué, sinon l'objet du modèle demandé.</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>protected</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$nom_modele</b> </td> |
<td>le nom du modèle à charger</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetVue"></a> |
<h3>method getVue <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Controleur.php.html#a86">86</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>boolean getVue( |
String |
$nom_squelette, [Array |
$donnees = array()])</code> |
</td></tr></table> |
</td></tr></table><br /> |
Fonction prenant en paramètre le nom d'un squelette et un tableau associatif de données, en extrait les variables, charge le squelette et retourne le résultat des deux combinés.<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>false si la vue n'existe pas, sinon la chaine résultat.</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>protected</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">String </td> |
<td><b>$nom_squelette</b> </td> |
<td>le nom du squelette</td> |
</tr> |
<tr> |
<td class="type">Array </td> |
<td><b>$donnees</b> </td> |
<td>un tableau associatif contenant les variables a injecter dans la vue</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
</div><br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:31 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/Url.html |
---|
New file |
0,0 → 1,1320 |
<html> |
<head> |
<title>Docs For Class Url</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Class: Url</h1> |
Source Location: /Url.php<br /><br /> |
<table width="100%" border="0"> |
<tr><td valign="top"> |
<h3><a href="#class_details">Class Overview</a></h3> |
<pre></pre><br /> |
<div class="description">classe Url, gérant le découpage des paramètres, leurs modification etc...</div><br /><br /> |
<h4>Author(s):</h4> |
<ul> |
<li>Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></li> |
<li>Christian Schmidt <<a href="mailto:schmidt@php.net">schmidt@php.net</a>></li> |
<li>Aurélien PERONNET <<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>></li> |
</ul> |
<h4>Version:</h4> |
<ul> |
<li>SVN: $Id: Url.php 150 2010-03-03 15:49:06Z jpm $</li> |
</ul> |
<h4>Copyright:</h4> |
<ul> |
<li>2009 Tela-Botanica</li> |
</ul> |
</td> |
<td valign="top"> |
<h3><a href="#class_consts">Constants</a></h3> |
<ul> |
<li><a href="../Framework/Url.html#constOPTION_ENCODER_CLES">OPTION_ENCODER_CLES</a></li> |
<li><a href="../Framework/Url.html#constOPTION_SEPARATEUR_ENTREE">OPTION_SEPARATEUR_ENTREE</a></li> |
<li><a href="../Framework/Url.html#constOPTION_SEPARATEUR_SORTIE">OPTION_SEPARATEUR_SORTIE</a></li> |
<li><a href="../Framework/Url.html#constOPTION_STRICTE">OPTION_STRICTE</a></li> |
<li><a href="../Framework/Url.html#constOPTION_UTILISER_CROCHETS">OPTION_UTILISER_CROCHETS</a></li> |
</ul> |
</td> |
<td valign="top"> |
<h3><a href="#class_methods">Methods</a></h3> |
<ul> |
<li><a href="../Framework/Url.html#method__construct">__construct</a></li> |
<li><a href="../Framework/Url.html#methodetreAbsolue">etreAbsolue</a></li> |
<li><a href="../Framework/Url.html#methodgetAutorite">getAutorite</a></li> |
<li><a href="../Framework/Url.html#methodgetCanonique">getCanonique</a></li> |
<li><a href="../Framework/Url.html#methodgetChemin">getChemin</a></li> |
<li><a href="../Framework/Url.html#methodgetDemande">getDemande</a></li> |
<li><a href="../Framework/Url.html#methodgetFragment">getFragment</a></li> |
<li><a href="../Framework/Url.html#methodgetHote">getHote</a></li> |
<li><a href="../Framework/Url.html#methodgetInfoUtilisateur">getInfoUtilisateur</a></li> |
<li><a href="../Framework/Url.html#methodgetMotDePasse">getMotDePasse</a></li> |
<li><a href="../Framework/Url.html#methodgetOption">getOption</a></li> |
<li><a href="../Framework/Url.html#methodgetPort">getPort</a></li> |
<li><a href="../Framework/Url.html#methodgetRequete">getRequete</a></li> |
<li><a href="../Framework/Url.html#methodgetSchema">getSchema</a></li> |
<li><a href="../Framework/Url.html#methodgetURL">getURL</a></li> |
<li><a href="../Framework/Url.html#methodgetURLDemande">getURLDemande</a></li> |
<li><a href="../Framework/Url.html#methodgetURLNormalisee">getURLNormalisee</a></li> |
<li><a href="../Framework/Url.html#methodgetUtilisateur">getUtilisateur</a></li> |
<li><a href="../Framework/Url.html#methodgetVariablesRequete">getVariablesRequete</a></li> |
<li><a href="../Framework/Url.html#methodnormaliser">normaliser</a></li> |
<li><a href="../Framework/Url.html#methodresoudre">resoudre</a></li> |
<li><a href="../Framework/Url.html#methodsetAutorite">setAutorite</a></li> |
<li><a href="../Framework/Url.html#methodsetChemin">setChemin</a></li> |
<li><a href="../Framework/Url.html#methodsetFragment">setFragment</a></li> |
<li><a href="../Framework/Url.html#methodsetHote">setHote</a></li> |
<li><a href="../Framework/Url.html#methodsetInfoUtilisateur">setInfoUtilisateur</a></li> |
<li><a href="../Framework/Url.html#methodsetOption">setOption</a></li> |
<li><a href="../Framework/Url.html#methodsetPort">setPort</a></li> |
<li><a href="../Framework/Url.html#methodsetRequete">setRequete</a></li> |
<li><a href="../Framework/Url.html#methodsetSchema">setSchema</a></li> |
<li><a href="../Framework/Url.html#methodsetVariableRequete">setVariableRequete</a></li> |
<li><a href="../Framework/Url.html#methodsetVariablesRequete">setVariablesRequete</a></li> |
<li><a href="../Framework/Url.html#methodunsetVariableRequete">unsetVariableRequete</a></li> |
<li><a href="../Framework/Url.html#method__toString">__toString</a></li> |
</ul> |
</td> |
</tr></table> |
<hr /> |
<table width="100%" border="0"><tr> |
</tr></table> |
<hr /> |
<a name="class_details"></a> |
<h3>Class Details</h3> |
<div class="tags"> |
[line <a href="../__filesource/fsource_Framework__Url.php.html#a21">21</a>]<br /> |
classe Url, gérant le découpage des paramètres, leurs modification etc...<br /><br /><p>Traduction et conversion d'une classe (NET_Url2) issue de Pear</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>author:</b> </td><td>Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></td> |
</tr> |
<tr> |
<td><b>author:</b> </td><td>Christian Schmidt <<a href="mailto:schmidt@php.net">schmidt@php.net</a>></td> |
</tr> |
<tr> |
<td><b>author:</b> </td><td>Aurélien PERONNET <<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>></td> |
</tr> |
<tr> |
<td><b>version:</b> </td><td>SVN: $Id: Url.php 150 2010-03-03 15:49:06Z jpm $</td> |
</tr> |
<tr> |
<td><b>copyright:</b> </td><td>2009 Tela-Botanica</td> |
</tr> |
<tr> |
<td><b>link:</b> </td><td>/doc/framework/</td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td><a href="http://www.gnu.org/licenses/gpl.html">Licence GNU-GPL</a></td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td><a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL</a></td> |
</tr> |
</table> |
</div> |
</div><br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /> |
<hr /> |
<a name="class_methods"></a> |
<h3>Class Methods</h3> |
<div class="tags"> |
<hr /> |
<a name="methodgetCanonique"></a> |
<h3>static method getCanonique <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a678">678</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static string getCanonique( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie une instance de Url representant l'URL canonique du script PHP en cours d'éxécution<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetDemande"></a> |
<h3>static method getDemande <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a712">712</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static <a href="../Framework/Url.html">Url</a> getDemande( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie une instance de Url representant l'URL utilisée pour récupérer la requête en cours<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetURLDemande"></a> |
<h3>static method getURLDemande <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a702">702</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static string getURLDemande( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie l'URL utilisée pour récupérer la requête en cours<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="method__construct"></a> |
<h3>constructor __construct <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a102">102</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>Url __construct( |
string |
$url, [array |
$options = null])</code> |
</td></tr></table> |
</td></tr></table><br /> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$url</b> </td> |
<td>une URL relative ou absolue</td> |
</tr> |
<tr> |
<td class="type">array </td> |
<td><b>$options</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodetreAbsolue"></a> |
<h3>method etreAbsolue <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a546">546</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>bool etreAbsolue( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie vrai ou faux suivant que l'instance en cours représente une URL relative ou absolue.<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetAutorite"></a> |
<h3>method getAutorite <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a248">248</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>string|bool getAutorite( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie la partie autorité, i.e. [ infoUtilisateur "@" ] hote [ ":" port ], ou false si celle-ci est absente.<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetChemin"></a> |
<h3>method getChemin <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a295">295</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>string getChemin( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie la partie chemin (chemin) (éventuellement vide).<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetFragment"></a> |
<h3>method getFragment <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a334">334</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>string|bool getFragment( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie le nom du fragment, ou false si "#" n'est pas present dans l'URL.<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetHote"></a> |
<h3>method getHote <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a210">210</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>string|bool getHote( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie la partie hôte, ou false s'il n'y a pas de partie autorité, c.a.d.<br /><br /><p>l'URL est relative.</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetInfoUtilisateur"></a> |
<h3>method getInfoUtilisateur <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a184">184</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>string|bool getInfoUtilisateur( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie la partie userinfio, ou false si celle-ci n'existe pas, i.e. si la partie autorité ne contient pas de "@"<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetMotDePasse"></a> |
<h3>method getMotDePasse <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a174">174</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>string|bool getMotDePasse( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
renvoie la partie mot de passe de la partie infoUtilisateur (partie après le premier ":"), , ou false si aucune partie infoUtilisateur n'est définie (i.e. l'URL ne contient pas de "@" en face du nom d'hôte) ou si la partie infoUtilisateur ne contient pas de ":".<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetOption"></a> |
<h3>method getOption <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a751">751</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>mixed getOption( |
string |
$nomOption)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie la valeur de l'option specifiée.<br /><br /><br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$nomOption</b> </td> |
<td>Nom de l'option demandée</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetPort"></a> |
<h3>method getPort <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a229">229</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>int|bool getPort( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie le numéro de port, ou false si aucun numéro de port n'est spécifié, i.e. le port par défaut doit utilisé.<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetRequete"></a> |
<h3>method getRequete <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a315">315</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>string|bool getRequete( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
renvoie la chaine de requête (requete string) (sans le premier "?"), ou false si "?" n'est pas présent dans l'url.<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>see:</b> </td><td>self::getVariablesRequete()</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetSchema"></a> |
<h3>method getSchema <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a143">143</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>string|bool getSchema( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Retourne le schéma, c.a.d. "http" ou "urn", ou false si aucun schéma n'est spécifié, i.e. l'url est une url relative<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetURL"></a> |
<h3>method getURL <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a462">462</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>string getURL( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie un représentation sous forme de chaine de l'URL<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetURLNormalisee"></a> |
<h3>method getURLNormalisee <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a493">493</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>string getURLNormalisee( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie une représentation de cette URL sous forme de chaine normalisée. Utile pour la comparaison d'URLs<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetUtilisateur"></a> |
<h3>method getUtilisateur <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a163">163</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>string|bool getUtilisateur( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
renvoie la partie user de la partie infoUtilisateur (partie précédant le premier ":"), ou false si aucune partie infoUtilisateur n'est définie.<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetVariablesRequete"></a> |
<h3>method getVariablesRequete <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a353">353</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>array getVariablesRequete( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie la requete string sous forme d'un tableau de variables telles qu'elles apparaitraient dans le $_GET d'un script PHP<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodnormaliser"></a> |
<h3>method normaliser <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a504">504</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code><a href="../Framework/Url.html">Url</a> normaliser( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie une instance normalisée de Url<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodresoudre"></a> |
<h3>method resoudre <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a558">558</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code><a href="../Framework/Url.html">Url</a> resoudre( |
<a href="../Framework/Url.html">Url</a>|string |
$reference)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie une instance de Url représentant une URL absolue relative à cette URL.<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type"><a href="../Framework/Url.html">Url</a>|string </td> |
<td><b>$reference</b> </td> |
<td>URL relative</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodsetAutorite"></a> |
<h3>method setAutorite <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a273">273</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void setAutorite( |
string|false |
$autorite)</code> |
</td></tr></table> |
</td></tr></table><br /> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string|false </td> |
<td><b>$autorite</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodsetChemin"></a> |
<h3>method setChemin <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a304">304</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void setChemin( |
string |
$chemin)</code> |
</td></tr></table> |
</td></tr></table><br /> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$chemin</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodsetFragment"></a> |
<h3>method setFragment <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a343">343</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void setFragment( |
string|bool |
$fragment)</code> |
</td></tr></table> |
</td></tr></table><br /> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string|bool </td> |
<td><b>$fragment</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodsetHote"></a> |
<h3>method setHote <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a219">219</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void setHote( |
string|bool |
$hote)</code> |
</td></tr></table> |
</td></tr></table><br /> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string|bool </td> |
<td><b>$hote</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodsetInfoUtilisateur"></a> |
<h3>method setInfoUtilisateur <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a197">197</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void setInfoUtilisateur( |
string|bool |
$infoUtilisateur, [string|bool |
$motDePasse = false])</code> |
</td></tr></table> |
</td></tr></table><br /> |
Setteur pour la partie infoUtilisateur. Si deux argument sont passé, ils sont combinés dans la partie infoUtilisateur de cette manière username ":" password.<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string|bool </td> |
<td><b>$infoUtilisateur</b> </td> |
<td>infoUtilisateur ou username</td> |
</tr> |
<tr> |
<td class="type">string|bool </td> |
<td><b>$motDePasse</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodsetOption"></a> |
<h3>method setOption <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a737">737</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void setOption( |
string |
$nomOption, mixed |
$valeur)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Met à jour la valeur de l'option spécifiée.<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>see:</b> </td><td>self::OPTION_ENCODER_CLES</td> |
</tr> |
<tr> |
<td><b>see:</b> </td><td>self::OPTION_UTILISER_CROCHETS</td> |
</tr> |
<tr> |
<td><b>see:</b> </td><td>self::OPTION_STRICTE</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$nomOption</b> </td> |
<td>une des constantes commençant par self::OPTION_</td> |
</tr> |
<tr> |
<td class="type">mixed </td> |
<td><b>$valeur</b> </td> |
<td>valeur de l'option</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodsetPort"></a> |
<h3>method setPort <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a238">238</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void setPort( |
int|bool |
$port)</code> |
</td></tr></table> |
</td></tr></table><br /> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">int|bool </td> |
<td><b>$port</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodsetRequete"></a> |
<h3>method setRequete <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a325">325</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void setRequete( |
string|bool |
$requete)</code> |
</td></tr></table> |
</td></tr></table><br /> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>see:</b> </td><td>self::setVariablesRequete()</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string|bool </td> |
<td><b>$requete</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodsetSchema"></a> |
<h3>method setSchema <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a153">153</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void setSchema( |
string|bool |
$schema)</code> |
</td></tr></table> |
</td></tr></table><br /> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>see:</b> </td><td><a href="../Framework/Url.html#methodgetSchema">Url::getSchema()</a></td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string|bool </td> |
<td><b>$schema</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodsetVariableRequete"></a> |
<h3>method setVariableRequete <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a440">440</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>array setVariableRequete( |
string |
$nom, mixed |
$valeur)</code> |
</td></tr></table> |
</td></tr></table><br /> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$nom</b> </td> |
<td></td> |
</tr> |
<tr> |
<td class="type">mixed </td> |
<td><b>$valeur</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodsetVariablesRequete"></a> |
<h3>method setVariablesRequete <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a408">408</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void setVariablesRequete( |
$tableau)</code> |
</td></tr></table> |
</td></tr></table><br /> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">array </td> |
<td><b>$tableau</b> </td> |
<td>(nom => valeur) tableau</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodunsetVariableRequete"></a> |
<h3>method unsetVariableRequete <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a451">451</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void unsetVariableRequete( |
string |
$nom)</code> |
</td></tr></table> |
</td></tr></table><br /> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$nom</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="method__toString"></a> |
<h3>method __toString <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Url.php.html#a756">756</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void __toString( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
</div><br /> |
<hr /> |
<a name="class_consts"></a> |
<h3>Class Constants</h3> |
<div class="tags"> |
<a name="constOPTION_ENCODER_CLES"></a> |
<p></p> |
<h4>OPTION_ENCODER_CLES = <span class="value"> 'encode_keys'</span></h4> |
<p>[line <a href="../__filesource/fsource_Framework__Url.php.html#a37">37</a>]</p> |
URL-encoder les clés des variables dans les requêtes. Par défaut à true.<br /><br /> |
<br /> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /> |
<a name="constOPTION_SEPARATEUR_ENTREE"></a> |
<p></p> |
<h4>OPTION_SEPARATEUR_ENTREE = <span class="value"> 'input_separator'</span></h4> |
<p>[line <a href="../__filesource/fsource_Framework__Url.php.html#a44">44</a>]</p> |
Séparateurs de variables lors du parsing de la requête. Chaque caractère est considéré comme un séparateur. Par défaut, spécifié par le paramêtre arg_separator.input dans php.ini (par défaut "&").<br /><br /> |
<br /> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /> |
<a name="constOPTION_SEPARATEUR_SORTIE"></a> |
<p></p> |
<h4>OPTION_SEPARATEUR_SORTIE = <span class="value"> 'output_separator'</span></h4> |
<p>[line <a href="../__filesource/fsource_Framework__Url.php.html#a50">50</a>]</p> |
Séparateur de variables lors de la génération de la requête. Par défaut, spécifié par le paramètre arg_separator.output dans php.ini (par défaut "&").<br /><br /> |
<br /> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /> |
<a name="constOPTION_STRICTE"></a> |
<p></p> |
<h4>OPTION_STRICTE = <span class="value"> 'strict'</span></h4> |
<p>[line <a href="../__filesource/fsource_Framework__Url.php.html#a27">27</a>]</p> |
Parsing strict dans resoudre() (voir RFC 3986, section 5.2.2). Par défaut à true.<br /><br /> |
<br /> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /> |
<a name="constOPTION_UTILISER_CROCHETS"></a> |
<p></p> |
<h4>OPTION_UTILISER_CROCHETS = <span class="value"> 'use_brackets'</span></h4> |
<p>[line <a href="../__filesource/fsource_Framework__Url.php.html#a32">32</a>]</p> |
Répresenter les tableaux dans les requêtes en utilisant la notation php []. Par défaut à true.<br /><br /> |
<br /> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /> |
</div><br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:38 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/Application.html |
---|
New file |
0,0 → 1,320 |
<html> |
<head> |
<title>Docs For Class Application</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Class: Application</h1> |
Source Location: /Application.php<br /><br /> |
<table width="100%" border="0"> |
<tr><td valign="top"> |
<h3><a href="#class_details">Class Overview</a></h3> |
<pre></pre><br /> |
<div class="description">Classe fournissant des informations au Framework sur l'application.</div><br /><br /> |
<h4>Author(s):</h4> |
<ul> |
<li>Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></li> |
</ul> |
<h4>Version:</h4> |
<ul> |
<li>$$Id: Application.php 153 2010-03-04 10:48:32Z jpm $$</li> |
</ul> |
<h4>Copyright:</h4> |
<ul> |
<li>1999-2009 Tela Botanica (accueil@tela-botanica.org)</li> |
</ul> |
</td> |
<td valign="top"> |
<h3><a href="#class_methods">Methods</a></h3> |
<ul> |
<li><a href="../Framework/Application.html#methodgetChemin">getChemin</a></li> |
<li><a href="../Framework/Application.html#methodgetInfo">getInfo</a></li> |
<li><a href="../Framework/Application.html#methodsetChemin">setChemin</a></li> |
<li><a href="../Framework/Application.html#methodsetInfo">setInfo</a></li> |
</ul> |
</td> |
</tr></table> |
<hr /> |
<table width="100%" border="0"><tr> |
</tr></table> |
<hr /> |
<a name="class_details"></a> |
<h3>Class Details</h3> |
<div class="tags"> |
[line <a href="../__filesource/fsource_Framework__Application.php.html#a18">18</a>]<br /> |
Classe fournissant des informations au Framework sur l'application.<br /><br /><p>PHP version 5</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>author:</b> </td><td>Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></td> |
</tr> |
<tr> |
<td><b>version:</b> </td><td>$$Id: Application.php 153 2010-03-04 10:48:32Z jpm $$</td> |
</tr> |
<tr> |
<td><b>copyright:</b> </td><td>1999-2009 Tela Botanica (accueil@tela-botanica.org)</td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td>GPL</td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td>CECILL</td> |
</tr> |
</table> |
</div> |
</div><br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /> |
<hr /> |
<a name="class_methods"></a> |
<h3>Class Methods</h3> |
<div class="tags"> |
<hr /> |
<a name="methodgetChemin"></a> |
<h3>static method getChemin <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Application.php.html#a49">49</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static string getChemin( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
accesseur pour le chemin<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>le chemin</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetInfo"></a> |
<h3>static method getInfo <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Application.php.html#a73">73</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static void getInfo( |
[string |
$cle = null])</code> |
</td></tr></table> |
</td></tr></table><br /> |
accesseur pour le tableau d'infos<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$cle</b> </td> |
<td>la clé à laquelle on veut accéder</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodsetChemin"></a> |
<h3>static method setChemin <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Application.php.html#a33">33</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static void setChemin( |
string |
$chemin_fichier_principal)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Modificateur pour le chemin de base<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$chemin_fichier_principal</b> </td> |
<td>chemin de base</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodsetInfo"></a> |
<h3>static method setInfo <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Application.php.html#a61">61</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static void setInfo( |
array |
$info)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Le tableau des informations sur l'application possède les clés suivantes :<br /><br /><p><ul><li>nom : nom de l'application</li><li>abr : abréviation de l'application</li><li>encodage : encodage de l'application (ISO-8859-15, UTF-8...)</li></ul></p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">array </td> |
<td><b>$info</b> </td> |
<td>tableau fournissant des informations sur l'application</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
</div><br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:28 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/Modele.html |
---|
New file |
0,0 → 1,430 |
<html> |
<head> |
<title>Docs For Class Modele</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Class: Modele</h1> |
Source Location: /Modele.php<br /><br /> |
<table width="100%" border="0"> |
<tr><td valign="top"> |
<h3><a href="#class_details">Class Overview</a></h3> |
<pre></pre><br /> |
<div class="description">Classe modèle, donc d'accés au données, elle ne devrait pas être appelée de l'extérieur.</div><br /><br /> |
<h4>Author(s):</h4> |
<ul> |
<li>aurelien <<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>></li> |
</ul> |
<h4>Version:</h4> |
<ul> |
<li>SVN: $$Id: Modele.php 145 2010-03-02 17:23:09Z jpm $$</li> |
</ul> |
<h4>Copyright:</h4> |
<ul> |
<li>2009 Tela-Botanica</li> |
</ul> |
</td> |
<td valign="top"> |
<h3><a href="#class_methods">Methods</a></h3> |
<ul> |
<li><a href="../Framework/Modele.html#method__construct">__construct</a></li> |
<li><a href="../Framework/Modele.html#method__destruct">__destruct</a></li> |
<li><a href="../Framework/Modele.html#methodinitialiserProtocole">initialiserProtocole</a></li> |
<li><a href="../Framework/Modele.html#methodproteger">proteger</a></li> |
<li><a href="../Framework/Modele.html#methodrequete">requete</a></li> |
<li><a href="../Framework/Modele.html#methodrequeteTous">requeteTous</a></li> |
<li><a href="../Framework/Modele.html#methodrequeteUn">requeteUn</a></li> |
</ul> |
</td> |
</tr></table> |
<hr /> |
<table width="100%" border="0"><tr> |
</tr></table> |
<hr /> |
<a name="class_details"></a> |
<h3>Class Details</h3> |
<div class="tags"> |
[line <a href="../__filesource/fsource_Framework__Modele.php.html#a21">21</a>]<br /> |
Classe modèle, donc d'accés au données, elle ne devrait pas être appelée de l'extérieur.<br /><br /><p>Elle fait office d'abstraction légère de base de données en utilisant diveres possibilités d'abstraction de base de données (PDO, mysql, mysqli, sqlite) Elle est abstraite donc doit obligatoirement être étendue.</p><p>PHP Version 5</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>author:</b> </td><td>aurelien <<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>></td> |
</tr> |
<tr> |
<td><b>version:</b> </td><td>SVN: $$Id: Modele.php 145 2010-03-02 17:23:09Z jpm $$</td> |
</tr> |
<tr> |
<td><b>copyright:</b> </td><td>2009 Tela-Botanica</td> |
</tr> |
<tr> |
<td><b>link:</b> </td><td>/doc/framework/</td> |
</tr> |
<tr> |
<td><b>abstract:</b> </td><td></td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td><a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL</a></td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td><a href="http://www.gnu.org/licenses/gpl.html">Licence GNU-GPL</a></td> |
</tr> |
</table> |
</div> |
</div><br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /> |
<hr /> |
<a name="class_methods"></a> |
<h3>Class Methods</h3> |
<div class="tags"> |
<hr /> |
<a name="method__construct"></a> |
<h3>constructor __construct <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Modele.php.html#a77">77</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>Modele __construct( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Constructeur par défaut, appelé à l'initialisation.<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="method__destruct"></a> |
<h3>destructor __destruct <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Modele.php.html#a323">323</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void __destruct( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Destructeur de classe, se contente de fermer explicitement la connexion<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodinitialiserProtocole"></a> |
<h3>method initialiserProtocole <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Modele.php.html#a295">295</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void initialiserProtocole( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
initialise les constantes de classe à leur bonne valeur<br /><br /><p>et lance une exception si le protocole n'est pas bien défini</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>throws:</b> </td><td>Exception</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodproteger"></a> |
<h3>method proteger <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Modele.php.html#a263">263</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void proteger( |
$chaine)</code> |
</td></tr></table> |
</td></tr></table><br /> |
protège une chaine de caractères avant l'insertion dans la base de données<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>protected</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type"> </td> |
<td><b>$chaine</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodrequete"></a> |
<h3>method requete <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Modele.php.html#a146">146</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>PDOStatement requete( |
string |
$requete)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Fonction qui appelle la bonne fonction pour executer une requête suivant le type de bdd.<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>un objet contenant le résultat de la requête</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>protected</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$requete</b> </td> |
<td>la requete à effectuer</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodrequeteTous"></a> |
<h3>method requeteTous <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Modele.php.html#a203">203</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void requeteTous( |
$requete, [ |
$mode = 'ASSOC'])</code> |
</td></tr></table> |
</td></tr></table><br /> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>protected</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type"> </td> |
<td><b>$requete</b> </td> |
<td></td> |
</tr> |
<tr> |
<td class="type"> </td> |
<td><b>$mode</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodrequeteUn"></a> |
<h3>method requeteUn <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Modele.php.html#a172">172</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void requeteUn( |
$requete, [ |
$mode = 'ASSOC'])</code> |
</td></tr></table> |
</td></tr></table><br /> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>protected</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type"> </td> |
<td><b>$requete</b> </td> |
<td></td> |
</tr> |
<tr> |
<td class="type"> </td> |
<td><b>$mode</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
</div><br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:35 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/Config.html |
---|
New file |
0,0 → 1,300 |
<html> |
<head> |
<title>Docs For Class Config</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Class: Config</h1> |
Source Location: /Config.php<br /><br /> |
<table width="100%" border="0"> |
<tr><td valign="top"> |
<h3><a href="#class_details">Class Overview</a></h3> |
<pre></pre><br /> |
<div class="description">Config permet de charger automatiquement les fichiers ini du Framework et de l'application.</div><br /><br /> |
<h4>Author(s):</h4> |
<ul> |
<li>Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></li> |
</ul> |
<h4>Version:</h4> |
<ul> |
<li>SVN: <svn_id></li> |
</ul> |
<h4>Copyright:</h4> |
<ul> |
<li>2009 Tela-Botanica</li> |
</ul> |
</td> |
<td valign="top"> |
<h3><a href="#class_methods">Methods</a></h3> |
<ul> |
<li><a href="../Framework/Config.html#methodcharger">charger</a></li> |
<li><a href="../Framework/Config.html#methodexiste">existe</a></li> |
<li><a href="../Framework/Config.html#methodget">get</a></li> |
</ul> |
</td> |
</tr></table> |
<hr /> |
<table width="100%" border="0"><tr> |
</tr></table> |
<hr /> |
<a name="class_details"></a> |
<h3>Class Details</h3> |
<div class="tags"> |
[line <a href="../__filesource/fsource_Framework__Config.php.html#a19">19</a>]<br /> |
Config permet de charger automatiquement les fichiers ini du Framework et de l'application.<br /><br /><p>Elle offre l'accès en lecture seule aux paramètres de config. C'est une Singleton.</p><p>PHP Version 5</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>author:</b> </td><td>Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></td> |
</tr> |
<tr> |
<td><b>version:</b> </td><td>SVN: <svn_id></td> |
</tr> |
<tr> |
<td><b>copyright:</b> </td><td>2009 Tela-Botanica</td> |
</tr> |
<tr> |
<td><b>link:</b> </td><td>/doc/framework/</td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td>GPL-v3</td> |
</tr> |
</table> |
</div> |
</div><br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /> |
<hr /> |
<a name="class_methods"></a> |
<h3>Class Methods</h3> |
<div class="tags"> |
<hr /> |
<a name="methodcharger"></a> |
<h3>static method charger <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Config.php.html#a244">244</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static array charger( |
string |
$fichier_ini)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Charge un fichier ini dans le tableau des paramètres de l'appli<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>le fichier ini parsé</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$fichier_ini</b> </td> |
<td>le nom du fichier à charger</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodexiste"></a> |
<h3>static method existe <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Config.php.html#a264">264</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static boolean existe( |
string |
$param)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Vérifie si la valeur d'un paramètre existe<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>vrai si le paramètre existe, false sinon</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$param</b> </td> |
<td>le nom du paramètre</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodget"></a> |
<h3>static method get <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Config.php.html#a254">254</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static string get( |
[string |
$param = null])</code> |
</td></tr></table> |
</td></tr></table><br /> |
Acesseur pour la valeur d'un paramètre<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>la valeur du paramètre</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$param</b> </td> |
<td>le nom du paramètre</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
</div><br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:30 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/_autoload.inc.php.html |
---|
New file |
0,0 → 1,201 |
<html> |
<head> |
<title>Docs for page autoload.inc.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Procedural File: autoload.inc.php</h1> |
Source Location: /autoload.inc.php<br /><br /> |
<br> |
<br> |
<h2>Page Details:</h2> |
Fichier contenant la fonction de chargement automatique de classes, il doit toujours rester à la racine du framework car il initialise le chemin de l'application en se basant sur son propre emplacement.<br /><br /><p>PHP Version 5.1.2</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>author:</b> </td><td>Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></td> |
</tr> |
<tr> |
<td><b>author:</b> </td><td>Aurelien PERONNET <<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>></td> |
</tr> |
<tr> |
<td><b>version:</b> </td><td>$$Id: autoload.inc.php 153 2010-03-04 10:48:32Z jpm $$</td> |
</tr> |
<tr> |
<td><b>copyright:</b> </td><td>1999-2009 Tela Botanica (accueil@tela-botanica.org)</td> |
</tr> |
<tr> |
<td><b>filesource:</b> </td><td><a href="../__filesource/fsource_Framework__autoload.inc.php.html">Source Code for this file</a></td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td>GPL</td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td>CECILL</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<br /><br /> |
<br /><br /> |
<hr /> |
<a name="defineDS"></a> |
<h3>DS <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__autoload.inc.php.html#a23">23</a>]</span></h3> |
<div class="tags"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>DS = DIRECTORY_SEPARATOR</code> |
</td></tr></table> |
</td></tr></table> |
<br /> |
</div> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> |
<hr /> |
<a name="definePS"></a> |
<h3>PS <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__autoload.inc.php.html#a27">27</a>]</span></h3> |
<div class="tags"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>PS = PATH_SEPARATOR</code> |
</td></tr></table> |
</td></tr></table> |
<br /> |
</div> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> |
<br /> |
<hr /> |
<a name="functionautoloadAppliDefaut"></a> |
<h3>autoloadAppliDefaut <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__autoload.inc.php.html#a48">48</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void autoloadAppliDefaut( |
$nom_classe)</code> |
</td></tr></table> |
</td></tr></table><br /> |
<br /><br /> |
<h4>Parameters</h4> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type"> </td> |
<td><b>$nom_classe</b> </td> |
<td></td> |
</tr> |
</table> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> |
</div> |
<hr /> |
<a name="functionautoloadFw"></a> |
<h3>autoloadFw <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__autoload.inc.php.html#a31">31</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void autoloadFw( |
$nom_classe_fw)</code> |
</td></tr></table> |
</td></tr></table><br /> |
<br /><br /> |
<h4>Parameters</h4> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type"> </td> |
<td><b>$nom_classe_fw</b> </td> |
<td></td> |
</tr> |
</table> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> |
</div> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:28 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/_Log.php.html |
---|
New file |
0,0 → 1,116 |
<html> |
<head> |
<title>Docs for page Log.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Procedural File: Log.php</h1> |
Source Location: /Log.php<br /><br /> |
<br> |
<br> |
<div class="contents"> |
<h2>Classes:</h2> |
<dt><a href="../Framework/Log.html">Log</a></dt> |
<dd>Classe permettant de logger des messages dans les fichier situés dans le dossier de log</dd> |
</div><br /><br /> |
<h2>Page Details:</h2> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>filesource:</b> </td><td><a href="../__filesource/fsource_Framework__Log.php.html">Source Code for this file</a></td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<br /><br /> |
<br /><br /> |
<br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:32 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/GestionnaireException.html |
---|
New file |
0,0 → 1,462 |
<html> |
<head> |
<title>Docs For Class GestionnaireException</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Class: GestionnaireException</h1> |
Source Location: /GestionnaireException.php<br /><br /> |
<table width="100%" border="0"> |
<tr><td valign="top"> |
<h3><a href="#class_details">Class Overview</a></h3> |
<pre></pre><br /> |
<div class="description">Classe de gestion des exceptions.</div><br /><br /> |
<h4>Author(s):</h4> |
<ul> |
<li>aurelien <<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>></li> |
</ul> |
<h4>Version:</h4> |
<ul> |
<li>SVN: $$Id: GestionnaireException.php 158 2010-03-04 17:14:36Z jpm $$</li> |
</ul> |
<h4>Copyright:</h4> |
<ul> |
<li>2009 Tela-Botanica</li> |
</ul> |
</td> |
<td valign="top"> |
<h3><a href="#class_methods">Methods</a></h3> |
<ul> |
<li><a href="../Framework/GestionnaireException.html#method__construct">__construct</a></li> |
<li><a href="../Framework/GestionnaireException.html#method__destruct">__destruct</a></li> |
<li><a href="../Framework/GestionnaireException.html#methodgererErreur">gererErreur</a></li> |
<li><a href="../Framework/GestionnaireException.html#methodgererException">gererException</a></li> |
<li><a href="../Framework/GestionnaireException.html#methodgetContexte">getContexte</a></li> |
<li><a href="../Framework/GestionnaireException.html#methodgetExceptions">getExceptions</a></li> |
<li><a href="../Framework/GestionnaireException.html#methodgetInstance">getInstance</a></li> |
<li><a href="../Framework/GestionnaireException.html#methodsetContexte">setContexte</a></li> |
</ul> |
</td> |
</tr></table> |
<hr /> |
<table width="100%" border="0"><tr> |
</tr></table> |
<hr /> |
<a name="class_details"></a> |
<h3>Class Details</h3> |
<div class="tags"> |
[line <a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a19">19</a>]<br /> |
Classe de gestion des exceptions.<br /><br /><p>C'est un Singleton.</p><p>PHP Version 5</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>author:</b> </td><td>aurelien <<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>></td> |
</tr> |
<tr> |
<td><b>version:</b> </td><td>SVN: $$Id: GestionnaireException.php 158 2010-03-04 17:14:36Z jpm $$</td> |
</tr> |
<tr> |
<td><b>copyright:</b> </td><td>2009 Tela-Botanica</td> |
</tr> |
<tr> |
<td><b>link:</b> </td><td>/doc/framework/</td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td><a href="http://www.gnu.org/licenses/gpl.html">Licence GNU-GPL</a></td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td><a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL</a></td> |
</tr> |
</table> |
</div> |
</div><br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /> |
<hr /> |
<a name="class_methods"></a> |
<h3>Class Methods</h3> |
<div class="tags"> |
<hr /> |
<a name="methodgererErreur"></a> |
<h3>static method gererErreur <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a110">110</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static void gererErreur( |
int |
$niveau, string |
$message, string |
$fichier, int |
$ligne, string |
$contexte)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Gère les erreurs en les convertissant en exceptions (remplace la fonction gestion d'erreurs native de php)<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">int </td> |
<td><b>$niveau</b> </td> |
<td>le niveau de l'erreur</td> |
</tr> |
<tr> |
<td class="type">string </td> |
<td><b>$message</b> </td> |
<td>le message associé à l'erreur</td> |
</tr> |
<tr> |
<td class="type">string </td> |
<td><b>$fichier</b> </td> |
<td>le nom du fichier où l'erreur s'est produite</td> |
</tr> |
<tr> |
<td class="type">int </td> |
<td><b>$ligne</b> </td> |
<td>la ligne où l'erreur s'est produite</td> |
</tr> |
<tr> |
<td class="type">string </td> |
<td><b>$contexte</b> </td> |
<td>le contexte associé à l'erreur</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgererException"></a> |
<h3>static method gererException <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a92">92</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static void gererException( |
$e)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Fonction de gestion des exceptions, remplace le handler par défaut<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">Exception </td> |
<td><b>$e</b> </td> |
<td>l'exception à traiter</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetContexte"></a> |
<h3>static method getContexte <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a64">64</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static void getContexte( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie le booleen définissant si l'on affiche le contexte ou non<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetExceptions"></a> |
<h3>static method getExceptions <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a131">131</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static void getExceptions( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Renvoie les exceptions au format (X)HTML<br /><br /><p>ou bien au format texte suivant le mode d'utilisation de PHP</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetInstance"></a> |
<h3>static method getInstance <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a79">79</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static GestionnaireErreur getInstance( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Fonction d'accès au singleton<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>le gestionnaire d'exceptions courant</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="method__construct"></a> |
<h3>constructor __construct <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a51">51</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>GestionnaireException __construct( |
bool |
0)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Constructeur avec paramètres optionnel<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">bool </td> |
<td><b>0</b> </td> |
<td>indique si l'on veut afficher ou non le contexte des exceptions (i.e. la trace)</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="method__destruct"></a> |
<h3>destructor __destruct <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a178">178</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void __destruct( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodsetContexte"></a> |
<h3>method setContexte <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a72">72</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void setContexte( |
bool |
$contexte)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Definit si l'on veut afficher le contexte ou non<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">bool </td> |
<td><b>$contexte</b> </td> |
<td>true si on veut afficher le contexte, false sinon, par défaut vaut false</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
</div><br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:32 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/_SquelettePhp.php.html |
---|
New file |
0,0 → 1,116 |
<html> |
<head> |
<title>Docs for page SquelettePhp.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Procedural File: SquelettePhp.php</h1> |
Source Location: /SquelettePhp.php<br /><br /> |
<br> |
<br> |
<div class="contents"> |
<h2>Classes:</h2> |
<dt><a href="../Framework/SquelettePhp.html">SquelettePhp</a></dt> |
<dd>Classe SquelettePhp, traitant les squelette Php utilisant la syntaxe courte php ou pas.</dd> |
</div><br /><br /> |
<h2>Page Details:</h2> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>filesource:</b> </td><td><a href="../__filesource/fsource_Framework__SquelettePhp.php.html">Source Code for this file</a></td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<br /><br /> |
<br /><br /> |
<br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:35 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/_Registre.php.html |
---|
New file |
0,0 → 1,116 |
<html> |
<head> |
<title>Docs for page Registre.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Procedural File: Registre.php</h1> |
Source Location: /Registre.php<br /><br /> |
<br> |
<br> |
<div class="contents"> |
<h2>Classes:</h2> |
<dt><a href="../Framework/Registre.html">Registre</a></dt> |
<dd>Classe registre, qui permet un accès à différentes variables à travers les autres classes.</dd> |
</div><br /><br /> |
<h2>Page Details:</h2> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>filesource:</b> </td><td><a href="../__filesource/fsource_Framework__Registre.php.html">Source Code for this file</a></td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<br /><br /> |
<br /><br /> |
<br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:35 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/_Chronometre.php.html |
---|
New file |
0,0 → 1,116 |
<html> |
<head> |
<title>Docs for page Chronometre.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Procedural File: Chronometre.php</h1> |
Source Location: /Chronometre.php<br /><br /> |
<br> |
<br> |
<div class="contents"> |
<h2>Classes:</h2> |
<dt><a href="../Framework/Chronometre.html">Chronometre</a></dt> |
<dd>Classe Chronometre() - Permet de stocker et d'afficher les temps d'éxécution de script.</dd> |
</div><br /><br /> |
<h2>Page Details:</h2> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>filesource:</b> </td><td><a href="../__filesource/fsource_Framework__Chronometre.php.html">Source Code for this file</a></td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<br /><br /> |
<br /><br /> |
<br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:29 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/_Debug.php.html |
---|
New file |
0,0 → 1,116 |
<html> |
<head> |
<title>Docs for page Debug.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Procedural File: Debug.php</h1> |
Source Location: /Debug.php<br /><br /> |
<br> |
<br> |
<div class="contents"> |
<h2>Classes:</h2> |
<dt><a href="../Framework/Debug.html">Debug</a></dt> |
<dd>Classe fournissant des fonctions de débogage équivalante à var_dump et print_r.</dd> |
</div><br /><br /> |
<h2>Page Details:</h2> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>filesource:</b> </td><td><a href="../__filesource/fsource_Framework__Debug.php.html">Source Code for this file</a></td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<br /><br /> |
<br /><br /> |
<br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:31 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/Log.html |
---|
New file |
0,0 → 1,367 |
<html> |
<head> |
<title>Docs For Class Log</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Class: Log</h1> |
Source Location: /Log.php<br /><br /> |
<table width="100%" border="0"> |
<tr><td valign="top"> |
<h3><a href="#class_details">Class Overview</a></h3> |
<pre></pre><br /> |
<div class="description">Classe permettant de logger des messages dans les fichier situés dans le dossier de log</div><br /><br /> |
<h4>Author(s):</h4> |
<ul> |
<li>aurelien <<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>></li> |
</ul> |
<h4>Version:</h4> |
<ul> |
<li>SVN: <svn_id></li> |
</ul> |
<h4>Copyright:</h4> |
<ul> |
<li>2009 Tela-Botanica</li> |
</ul> |
</td> |
<td valign="top"> |
<h3><a href="#class_methods">Methods</a></h3> |
<ul> |
<li><a href="../Framework/Log.html#method__destruct">__destruct</a></li> |
<li><a href="../Framework/Log.html#methodajouterEntree">ajouterEntree</a></li> |
<li><a href="../Framework/Log.html#methodgetInstance">getInstance</a></li> |
<li><a href="../Framework/Log.html#methodverifierOuvrirFichier">verifierOuvrirFichier</a></li> |
<li><a href="../Framework/Log.html#methodviderLog">viderLog</a></li> |
</ul> |
</td> |
</tr></table> |
<hr /> |
<table width="100%" border="0"><tr> |
</tr></table> |
<hr /> |
<a name="class_details"></a> |
<h3>Class Details</h3> |
<div class="tags"> |
[line <a href="../__filesource/fsource_Framework__Log.php.html#a17">17</a>]<br /> |
Classe permettant de logger des messages dans les fichier situés dans le dossier de log<br /><br /><p>PHP Version 5</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>author:</b> </td><td>aurelien <<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>></td> |
</tr> |
<tr> |
<td><b>version:</b> </td><td>SVN: <svn_id></td> |
</tr> |
<tr> |
<td><b>copyright:</b> </td><td>2009 Tela-Botanica</td> |
</tr> |
<tr> |
<td><b>link:</b> </td><td>/doc/framework/</td> |
</tr> |
<tr> |
<td><b>license:</b> </td><td><a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL</a></td> |
</tr> |
</table> |
</div> |
</div><br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div><br /> |
<hr /> |
<a name="class_methods"></a> |
<h3>Class Methods</h3> |
<div class="tags"> |
<hr /> |
<a name="methodajouterEntree"></a> |
<h3>static method ajouterEntree <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Log.php.html#a95">95</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static void ajouterEntree( |
string |
$nomFichier, |
$entree, [ |
$mode = 'a+'])</code> |
</td></tr></table> |
</td></tr></table><br /> |
Ajoute une entrée au log spécifié par le paramètre $nomFichier<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$nomFichier</b> </td> |
<td>le nom du fichier dans lequel écrire</td> |
</tr> |
<tr> |
<td class="type"> </td> |
<td><b>$entree</b> </td> |
<td></td> |
</tr> |
<tr> |
<td class="type"> </td> |
<td><b>$mode</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodgetInstance"></a> |
<h3>static method getInstance <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Log.php.html#a83">83</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static <a href="../Framework/Log.html">Log</a> getInstance( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Fonction qui renvoie l'instance de classe en assurant son unicité, c'est l'unique méthode qui doit être<br /><br /><p>utilisée pour récupérer l'objet Registre</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>le gestionnaire de log en cours</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodverifierOuvrirFichier"></a> |
<h3>static method verifierOuvrirFichier <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Log.php.html#a126">126</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static boolean verifierOuvrirFichier( |
string |
$nomFichier, |
$mode)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Vérifie la présence d'un fichier dans le tableau, ses droits d'écriture,<br /><br /><p>l'ouvre si nécessaire</p><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>return:</b> </td><td>true si le fichier est ouvert ou maintenant accessible, false sinon</td> |
</tr> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$nomFichier</b> </td> |
<td>le nom du fichier dont on doit vérifier la présence</td> |
</tr> |
<tr> |
<td class="type"> </td> |
<td><b>$mode</b> </td> |
<td></td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="methodviderLog"></a> |
<h3>static method viderLog <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Log.php.html#a116">116</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>static void viderLog( |
string |
$nomFichier)</code> |
</td></tr></table> |
</td></tr></table><br /> |
Vide un fichier log indiqué<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<h4>Parameters:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td class="type">string </td> |
<td><b>$nomFichier</b> </td> |
<td>le nom du fichier à vider</td> |
</tr> |
</table> |
</div><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
<hr /> |
<a name="method__destruct"></a> |
<h3>destructor __destruct <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Log.php.html#a179">179</a>]</span></h3> |
<div class="function"> |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> |
<code>void __destruct( |
)</code> |
</td></tr></table> |
</td></tr></table><br /> |
destructeur de classe, ferme les descripteurs ouverts<br /><br /><br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>access:</b> </td><td>public</td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<div class="top">[ <a href="#top">Top</a> ]</div> |
</div> |
</div><br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:33 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/Framework/_Controleur.php.html |
---|
New file |
0,0 → 1,116 |
<html> |
<head> |
<title>Docs for page Controleur.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="../Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="../Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="../Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="../Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="../Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="../Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="../Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="../Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="../Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="../Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="../Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="../Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="../Framework/Application.html">Application</a><br /> |
<a href="../Framework/Chronometre.html">Chronometre</a><br /> |
<a href="../Framework/Config.html">Config</a><br /> |
<a href="../Framework/Controleur.html">Controleur</a><br /> |
<a href="../Framework/Debug.html">Debug</a><br /> |
<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="../Framework/Log.html">Log</a><br /> |
<a href="../Framework/Modele.html">Modele</a><br /> |
<a href="../Framework/Registre.html">Registre</a><br /> |
<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="../Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1>Procedural File: Controleur.php</h1> |
Source Location: /Controleur.php<br /><br /> |
<br> |
<br> |
<div class="contents"> |
<h2>Classes:</h2> |
<dt><a href="../Framework/Controleur.html">Controleur</a></dt> |
<dd>Classe Controleur, coeur d'une application, c'est normalement la seule classe d'une application qui devrait être appelée de l'extérieur.</dd> |
</div><br /><br /> |
<h2>Page Details:</h2> |
<br /><br /> |
<h4>Tags:</h4> |
<div class="tags"> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<td><b>filesource:</b> </td><td><a href="../__filesource/fsource_Framework__Controleur.php.html">Source Code for this file</a></td> |
</tr> |
</table> |
</div> |
<br /><br /> |
<br /><br /> |
<br /><br /> |
<br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:30 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/__filesource/fsource_Framework__Controleur.php.html |
---|
New file |
0,0 → 1,166 |
<html> |
<head> |
<title>File Source for Controleur.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1 align="center">Source for file Controleur.php</h1> |
<p>Documentation is available at <a href="../Framework/_Controleur.php.html">Controleur.php</a></p> |
<div class="src-code"> |
<ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Classe Controleur, coeur d'une application, c'est normalement la seule classe d'une application</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> * qui devrait être appelée de l'extérieur.</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> * Elle est abstraite donc doit obligatoirement être étendue.</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> php5</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Aurélien PERONNET <aurelien@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2009 Tela-Botanica</span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL</span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.gnu.org/licenses/gpl.html Licence GNU-GPL</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> SVN: $$Id: Controleur.php 158 2010-03-04 17:14:36Z jpm $$</span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a18"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-key">abstract </span><span class="src-key">class </span><a href="../Framework/Controleur.html">Controleur</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a20"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a21"></a><span class="src-doc"> * Registre global, normalement accessible partout</span></div></li> |
<li><div class="src-line"><a name="a22"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a23"></a> <span class="src-key">private </span><span class="src-var">$registre</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a24"></a> </div></li> |
<li><div class="src-line"><a name="a25"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a26"></a><span class="src-doc"> * Constructeur par défaut</span></div></li> |
<li><div class="src-line"><a name="a27"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a28"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Controleur.html#method__construct">__construct</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a29"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodexiste">existe</a><span class="src-sym">(</span><span class="src-str">'fw_html_errors'</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a30"></a> <a href="http://www.php.net/ini_set">ini_set</a><span class="src-sym">(</span><span class="src-str">'html_errors'</span><span class="src-sym">, </span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'fw_html_errors'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a31"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a32"></a> </div></li> |
<li><div class="src-line"><a name="a33"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">registre </span>= <span class="src-id"><a href="../Framework/Registre.html">Registre</a></span><span class="src-sym">::</span><a href="../Framework/Registre.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">registre</span><span class="src-sym">-></span><span class="src-id">set</span><span class="src-sym">(</span><span class="src-str">'base_chemin_modele'</span><span class="src-sym">, </span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'chemin_modeles'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a35"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">registre</span><span class="src-sym">-></span><span class="src-id">set</span><span class="src-sym">(</span><span class="src-str">'base_chemin_squelette'</span><span class="src-sym">, </span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'chemin_squelettes'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a36"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">registre</span><span class="src-sym">-></span><span class="src-id">set</span><span class="src-sym">(</span><span class="src-str">'base_chemin_controleur'</span><span class="src-sym">, </span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'chemin_controleurs'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a37"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">registre</span><span class="src-sym">-></span><span class="src-id">set</span><span class="src-sym">(</span><span class="src-str">'base_url_application'</span><span class="src-sym">, </span><span class="src-key">new </span><span class="src-id"><a href="../Framework/Url.html">Url</a></span><span class="src-sym">(</span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'url_base'</span><span class="src-sym">)))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a38"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a39"></a> </div></li> |
<li><div class="src-line"><a name="a40"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a41"></a><span class="src-doc"> * Charge un modele donné et le rend disponible sous la forme $this->nom_modele</span></div></li> |
<li><div class="src-line"><a name="a42"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a43"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nom_modele </span><span class="src-doc">le nom du modèle à charger</span></div></li> |
<li><div class="src-line"><a name="a44"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a45"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">boolean </span><span class="src-doc">false si le chargement a échoué, sinon true.</span></div></li> |
<li><div class="src-line"><a name="a46"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a47"></a> <span class="src-key">final </span><span class="src-key">protected </span><span class="src-key">function </span><a href="../Framework/Controleur.html#methodchargerModele">chargerModele</a><span class="src-sym">(</span><span class="src-var">$nom_modele</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a48"></a> <span class="src-var">$sortie </span>= <span class="src-id">true</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a49"></a> <span class="src-var">$modele </span>= <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Controleur.html#methodgetModele">getModele</a><span class="src-sym">(</span><span class="src-var">$nom_modele</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a50"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$modele </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a51"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$nom_modele </span>= <span class="src-key">new </span><span class="src-var">$nom_modele</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a52"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a53"></a> <span class="src-var">$sortie </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a54"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a55"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a56"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a57"></a> </div></li> |
<li><div class="src-line"><a name="a58"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a59"></a><span class="src-doc"> * Retourne un modele donné</span></div></li> |
<li><div class="src-line"><a name="a60"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a61"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nom_modele </span><span class="src-doc">le nom du modèle à charger</span></div></li> |
<li><div class="src-line"><a name="a62"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a63"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">mixed </span><span class="src-doc">false si le chargement a échoué, sinon l'objet du modèle demandé.</span></div></li> |
<li><div class="src-line"><a name="a64"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a65"></a> <span class="src-key">final </span><span class="src-key">protected </span><span class="src-key">function </span><a href="../Framework/Controleur.html#methodgetModele">getModele</a><span class="src-sym">(</span><span class="src-var">$nom_modele</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a66"></a> <span class="src-var">$sortie </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a67"></a> <span class="src-var">$chemin_modele </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">registre</span><span class="src-sym">-></span><span class="src-id">get</span><span class="src-sym">(</span><span class="src-str">'base_chemin_modele'</span><span class="src-sym">)</span>.<span class="src-var">$nom_modele</span>.<span class="src-str">'.php'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a68"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/file_exists">file_exists</a><span class="src-sym">(</span><span class="src-var">$chemin_modele</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a69"></a> <span class="src-inc">include_once </span><span class="src-var">$chemin_modele</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a70"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/class_exists">class_exists</a><span class="src-sym">(</span><span class="src-var">$nom_modele</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a71"></a> <span class="src-var">$sortie </span>= <span class="src-key">new </span><span class="src-var">$nom_modele</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a72"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a73"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a74"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a75"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a76"></a> </div></li> |
<li><div class="src-line"><a name="a77"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a78"></a><span class="src-doc"> * Fonction prenant en paramètre le nom d'un squelette et un tableau associatif de données,</span></div></li> |
<li><div class="src-line"><a name="a79"></a><span class="src-doc"> * en extrait les variables, charge le squelette et retourne le résultat des deux combinés.</span></div></li> |
<li><div class="src-line"><a name="a80"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a81"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">String </span><span class="src-doc-var">$nom_squelette </span><span class="src-doc">le nom du squelette</span></div></li> |
<li><div class="src-line"><a name="a82"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">Array </span><span class="src-doc"> </span><span class="src-doc-var">$donnees </span><span class="src-doc"> un tableau associatif contenant les variables a injecter dans la vue</span></div></li> |
<li><div class="src-line"><a name="a83"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a84"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">boolean </span><span class="src-doc">false si la vue n'existe pas, sinon la chaine résultat.</span></div></li> |
<li><div class="src-line"><a name="a85"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a86"></a> <span class="src-key">final </span><span class="src-key">protected </span><span class="src-key">function </span><a href="../Framework/Controleur.html#methodgetVue">getVue</a><span class="src-sym">(</span><span class="src-var">$nom_squelette</span><span class="src-sym">, </span><span class="src-var">$donnees </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a87"></a> <span class="src-var">$chemin_squelette </span>= <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">registre</span><span class="src-sym">-></span><span class="src-id">get</span><span class="src-sym">(</span><span class="src-str">'base_chemin_squelette'</span><span class="src-sym">))</span>.<span class="src-var">$nom_squelette</span>.<span class="src-str">'.tpl.html'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a88"></a> <span class="src-var">$sortie </span>= <span class="src-id"><a href="../Framework/SquelettePhp.html">SquelettePhp</a></span><span class="src-sym">::</span><a href="../Framework/SquelettePhp.html#methodanalyser">analyser</a><span class="src-sym">(</span><span class="src-var">$chemin_squelette</span><span class="src-sym">, </span><span class="src-var">$donnees</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a89"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a90"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a91"></a> </div></li> |
<li><div class="src-line"><a name="a92"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a93"></a><span class="src-doc"> * Fonction prenant en paramètre le nom d'un squelette et un tableau associatif de données,</span></div></li> |
<li><div class="src-line"><a name="a94"></a><span class="src-doc"> * en extrait les variables, charge le squelette et crée une variable de classe portant le nom du squelette</span></div></li> |
<li><div class="src-line"><a name="a95"></a><span class="src-doc"> * contenant les deux combinés.</span></div></li> |
<li><div class="src-line"><a name="a96"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a97"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">String </span><span class="src-doc-var">$nom_squelette </span><span class="src-doc">le nom du squelette</span></div></li> |
<li><div class="src-line"><a name="a98"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">Array </span><span class="src-doc"> </span><span class="src-doc-var">$donnees </span><span class="src-doc"> un tableau associatif contenant les variables a injecter dans la vue</span></div></li> |
<li><div class="src-line"><a name="a99"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a100"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">boolean </span><span class="src-doc">false si la vue n'existe pas, sinon true.</span></div></li> |
<li><div class="src-line"><a name="a101"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a102"></a> <span class="src-key">final </span><span class="src-key">protected </span><span class="src-key">function </span><a href="../Framework/Controleur.html#methodchargerVue">chargerVue</a><span class="src-sym">(</span><span class="src-var">$nom_squelette</span><span class="src-sym">, </span><span class="src-var">$donnees </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a103"></a> <span class="src-var">$sortie </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a104"></a> <span class="src-var">$rendu </span>= <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Controleur.html#methodgetVue">getVue</a><span class="src-sym">(</span><span class="src-var">$nom_squelette</span><span class="src-sym">, </span><span class="src-var">$donnees</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a105"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$rendu </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a106"></a> <span class="src-comm">// Création d'une variable de classe contenant le rendu</span></div></li> |
<li><div class="src-line"><a name="a107"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$nom_squelette </span>= <span class="src-var">$rendu</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a108"></a> <span class="src-var">$sortie </span>= <span class="src-id">true</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a109"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a110"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a111"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a112"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a113"></a><span class="src-php">?></span></div></li> |
</ol> |
</div> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:31 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/__filesource/fsource_Framework__autoload.inc.php.html |
---|
New file |
0,0 → 1,120 |
<html> |
<head> |
<title>File Source for autoload.inc.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1 align="center">Source for file autoload.inc.php</h1> |
<p>Documentation is available at <a href="../Framework/_autoload.inc.php.html">autoload.inc.php</a></p> |
<div class="src-code"> |
<ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Fichier contenant la fonction de chargement automatique de classes, il doit toujours rester à la racine</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> * du framework car il initialise le chemin de l'application en se basant sur son propre emplacement.</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> * PHP Version 5.1.2</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> Fichier_De_Fonctions</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> // Auteur principal :</span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Aurelien PERONNET <aurelien@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> // Autres auteurs :</span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> GPL v3 <http://www.gnu.org/licenses/gpl.txt></span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt></span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> $$Id: autoload.inc.php 153 2010-03-04 10:48:32Z jpm $$</span></div></li> |
<li><div class="src-line"><a name="a18"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 1999-2009 Tela Botanica (accueil@tela-botanica.org)</span></div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a20"></a> </div></li> |
<li><div class="src-line"><a name="a21"></a><span class="src-comm">// Redéfinition de la constante DIRECTORY_SEPARATOR</span></div></li> |
<li><div class="src-line"><a name="a22"></a><span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'DS'</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a23"></a> <a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'DS'</span><span class="src-sym">, </span><span class="src-id">DIRECTORY_SEPARATOR</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a24"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a25"></a><span class="src-comm">// Redéfinition de la constante PATH_SEPARATOR</span></div></li> |
<li><div class="src-line"><a name="a26"></a><span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'PS'</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a27"></a> <a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'PS'</span><span class="src-sym">, </span><span class="src-id">PATH_SEPARATOR</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a28"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a29"></a> </div></li> |
<li><div class="src-line"><a name="a30"></a><span class="src-comm">// Autoload pour le Framework</span></div></li> |
<li><div class="src-line"><a name="a31"></a><span class="src-key">function </span><a href="../Framework/_autoload.inc.php.html#functionautoloadFw">autoloadFw</a><span class="src-sym">(</span><span class="src-var">$nom_classe_fw</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a32"></a> <span class="src-var">$fichier_a_inclure </span>= <a href="http://www.php.net/dirname">dirname</a><span class="src-sym">(</span>__FILE__<span class="src-sym">)</span>.<span class="src-id"><a href="../Framework/_autoload.inc.php.html#defineDS">DS</a></span>.<span class="src-var">$nom_classe_fw</span>.<span class="src-str">'.php'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a33"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/file_exists">file_exists</a><span class="src-sym">(</span><span class="src-var">$fichier_a_inclure</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-inc">include_once </span><span class="src-var">$fichier_a_inclure</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a35"></a> <span class="src-key">return </span><span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a36"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a37"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a38"></a><a href="http://www.php.net/spl_autoload_register">spl_autoload_register</a><span class="src-sym">(</span><span class="src-str">'autoloadFw'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a39"></a> </div></li> |
<li><div class="src-line"><a name="a40"></a><span class="src-comm">// Instanciation du gestionnaire d'exception</span></div></li> |
<li><div class="src-line"><a name="a41"></a><span class="src-id"><a href="../Framework/GestionnaireException.html">GestionnaireException</a></span><span class="src-sym">::</span><a href="../Framework/GestionnaireException.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a42"></a><span class="src-comm">// Instanciation du gestionnaire de logs</span></div></li> |
<li><div class="src-line"><a name="a43"></a><span class="src-id"><a href="../Framework/Log.html">Log</a></span><span class="src-sym">::</span><a href="../Framework/Log.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a44"></a><span class="src-comm">// Encodage de l'application (défini ici car on peut avoir des sorties d'erreurs dès le début)</span></div></li> |
<li><div class="src-line"><a name="a45"></a><a href="http://www.php.net/mb_internal_encoding">mb_internal_encoding</a><span class="src-sym">(</span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'appli_encodage'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a46"></a> </div></li> |
<li><div class="src-line"><a name="a47"></a><span class="src-comm">// Autoload par défaut pour l'application</span></div></li> |
<li><div class="src-line"><a name="a48"></a><span class="src-key">function </span><a href="../Framework/_autoload.inc.php.html#functionautoloadAppliDefaut">autoloadAppliDefaut</a><span class="src-sym">(</span><span class="src-var">$nom_classe</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a49"></a> <span class="src-var">$dossiers_classes </span>= <span class="src-key">array</span><span class="src-sym">( </span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'chemin_controleurs'</span><span class="src-sym">)</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a50"></a> <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'chemin_modeles'</span><span class="src-sym">)</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a51"></a> <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'chemin_bibliotheque'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a52"></a> </div></li> |
<li><div class="src-line"><a name="a53"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$dossiers_classes </span><span class="src-key">as </span><span class="src-var">$chemin</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a54"></a> <span class="src-var">$fichier_a_tester </span>= <span class="src-var">$chemin</span>.<span class="src-var">$nom_classe</span>.<span class="src-str">'.php'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a55"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/file_exists">file_exists</a><span class="src-sym">(</span><span class="src-var">$fichier_a_tester</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a56"></a> <span class="src-inc">include_once </span><span class="src-var">$fichier_a_tester</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a57"></a> <span class="src-key">return </span><span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a58"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a59"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a60"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a61"></a><a href="http://www.php.net/spl_autoload_register">spl_autoload_register</a><span class="src-sym">(</span><span class="src-str">'autoloadAppliDefaut'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a62"></a> </div></li> |
<li><div class="src-line"><a name="a63"></a><span class="src-comm">// Autoload défini par l'application</span></div></li> |
<li><div class="src-line"><a name="a64"></a><span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/function_exists">function_exists</a><span class="src-sym">(</span><span class="src-str">'__autoload'</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a65"></a> <a href="http://www.php.net/spl_autoload_register">spl_autoload_register</a><span class="src-sym">(</span><span class="src-str">'__autoload'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a66"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a67"></a><span class="src-php">?></span></div></li> |
</ol> |
</div> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:28 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/__filesource/fsource_Framework__Log.php.html |
---|
New file |
0,0 → 1,238 |
<html> |
<head> |
<title>File Source for Log.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1 align="center">Source for file Log.php</h1> |
<p>Documentation is available at <a href="../Framework/_Log.php.html">Log.php</a></p> |
<div class="src-code"> |
<ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">//declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Classe permettant de logger des messages dans les fichier situés dans le dossier de log</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> * PHP Version 5</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> PHP</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> aurelien <aurelien@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2009 Tela-Botanica</span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL</span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> SVN: <svn_id></span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a16"></a> </div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-key">class </span><a href="../Framework/Log.html">Log</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a18"></a> </div></li> |
<li><div class="src-line"><a name="a19"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a20"></a><span class="src-doc"> * Tableau associatif stockant les descripteurs de fichiers</span></div></li> |
<li><div class="src-line"><a name="a21"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a22"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$fichiersLog </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a23"></a> </div></li> |
<li><div class="src-line"><a name="a24"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a25"></a><span class="src-doc"> * Chemin de base du dossier log de l'application</span></div></li> |
<li><div class="src-line"><a name="a26"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a27"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$cheminLogs </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a28"></a> </div></li> |
<li><div class="src-line"><a name="a29"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a30"></a><span class="src-doc"> * Booleen indiquant si l'on peut correctement écrire dans les fichiers de logs</span></div></li> |
<li><div class="src-line"><a name="a31"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a32"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$droitLogger </span>= <span class="src-id">true</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a33"></a> </div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a35"></a><span class="src-doc"> * Zone horaire (pour éviter des avertissements dans les dates)</span></div></li> |
<li><div class="src-line"><a name="a36"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a37"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$timeZone </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a38"></a> </div></li> |
<li><div class="src-line"><a name="a39"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a40"></a><span class="src-doc"> * Taille maximum d'un fichier de log avant que celui ne soit archivé (en octets)</span></div></li> |
<li><div class="src-line"><a name="a41"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a42"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$tailleMax </span>= <span class="src-num">10000</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a43"></a> </div></li> |
<li><div class="src-line"><a name="a44"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a45"></a><span class="src-doc"> * séparateur de chemin</span></div></li> |
<li><div class="src-line"><a name="a46"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a47"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$sd </span>= <span class="src-id">DIRECTORY_SEPARATOR</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a48"></a> </div></li> |
<li><div class="src-line"><a name="a49"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a50"></a><span class="src-doc"> * Extension des fichiers de log</span></div></li> |
<li><div class="src-line"><a name="a51"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a52"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$ext </span>= <span class="src-str">'.log'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a53"></a> </div></li> |
<li><div class="src-line"><a name="a54"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a55"></a><span class="src-doc"> * La classe registre se contient elle-même, (pour le pattern singleton)</span></div></li> |
<li><div class="src-line"><a name="a56"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a57"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$log</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a58"></a> </div></li> |
<li><div class="src-line"><a name="a59"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a60"></a><span class="src-doc"> * Constructeur par défaut, privé, car on accède à la classe par le getInstance</span></div></li> |
<li><div class="src-line"><a name="a61"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a62"></a> <span class="src-key">private </span><span class="src-key">function </span><span class="src-id">__construct</span><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a63"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$sd </span>= <span class="src-id">Config</span><span class="src-sym">::</span><span class="src-id">get</span><span class="src-sym">(</span><span class="src-str">'ds'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a64"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$cheminLogs </span>= <span class="src-id">Config</span><span class="src-sym">::</span><span class="src-id">get</span><span class="src-sym">(</span><span class="src-str">'chemin_logs'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a65"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$timeZone </span>= <span class="src-id">Config</span><span class="src-sym">::</span><span class="src-id">get</span><span class="src-sym">(</span><span class="src-str">'fw_timezone'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a66"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$tailleMax </span>= <span class="src-id">Config</span><span class="src-sym">::</span><span class="src-id">get</span><span class="src-sym">(</span><span class="src-str">'fw_taille_max_logs'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a67"></a> </div></li> |
<li><div class="src-line"><a name="a68"></a> <span class="src-comm">// gestion de la timezone pour éviter des erreurs</span></div></li> |
<li><div class="src-line"><a name="a69"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/function_exists">function_exists</a><span class="src-sym">(</span><span class="src-str">'date_default_timezone_set'</span><span class="src-sym">) </span>&& <a href="http://www.php.net/function_exists">function_exists</a><span class="src-sym">(</span><span class="src-str">'date_default_timezone_get'</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a70"></a> <a href="http://www.php.net/date_default_timezone_set">date_default_timezone_set</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$timeZone</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a71"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a72"></a> </div></li> |
<li><div class="src-line"><a name="a73"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-id">is_dir</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$cheminLogs</span><span class="src-sym">) </span>|| <span class="src-sym">!</span><span class="src-id">is_writable</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$cheminLogs</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a74"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">desactiverEcriture</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a75"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a76"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a77"></a> </div></li> |
<li><div class="src-line"><a name="a78"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a79"></a><span class="src-doc"> * Fonction qui renvoie l'instance de classe en assurant son unicité, c'est l'unique méthode qui doit être</span></div></li> |
<li><div class="src-line"><a name="a80"></a><span class="src-doc"> * utilisée pour récupérer l'objet Registre</span></div></li> |
<li><div class="src-line"><a name="a81"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">Log </span><span class="src-doc"> le gestionnaire de log en cours</span></div></li> |
<li><div class="src-line"><a name="a82"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a83"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Log.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a84"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$log </span>instanceof <span class="src-id">Log</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a85"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$log</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a86"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a87"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$log </span>= <span class="src-key">new </span><span class="src-id">Log</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a88"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$log</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a89"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a90"></a> </div></li> |
<li><div class="src-line"><a name="a91"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a92"></a><span class="src-doc"> * Ajoute une entrée au log spécifié par le paramètre $nomFichier</span></div></li> |
<li><div class="src-line"><a name="a93"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nomFichier </span><span class="src-doc">le nom du fichier dans lequel écrire</span></div></li> |
<li><div class="src-line"><a name="a94"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a95"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Log.html#methodajouterEntree">ajouterEntree</a><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">,</span><span class="src-var">$entree</span><span class="src-sym">,</span><span class="src-var">$mode</span>=<span class="src-str">'a+'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a96"></a> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$droitLogger</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a97"></a> <span class="src-var">$date </span>= <span class="src-str">"\n"</span>.<span class="src-str">"\n"</span>.<span class="src-id">date</span><span class="src-sym">(</span><span class="src-str">'d m Y H:i'</span><span class="src-sym">)</span>.<span class="src-str">"\n" </span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a98"></a> </div></li> |
<li><div class="src-line"><a name="a99"></a> <span class="src-comm">// si le fichier est déjà dans le tableau et qu'on peut y écrire</span></div></li> |
<li><div class="src-line"><a name="a100"></a> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">verifierOuvrirFichier</span><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">,</span><span class="src-var">$mode</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a101"></a> <span class="src-comm">// on y écrit le message de log</span></div></li> |
<li><div class="src-line"><a name="a102"></a> <a href="http://www.php.net/fwrite">fwrite</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$fichiersLog</span><span class="src-sym">[</span><span class="src-var">$nomFichier</span><span class="src-sym">]</span><span class="src-sym">,</span><span class="src-var">$date</span>.<span class="src-var">$entree</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a103"></a> <span class="src-comm">// on vérifie si le fichier ne dépasse pas la taille maximale</span></div></li> |
<li><div class="src-line"><a name="a104"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">verifierTailleFichierOuArchiver</span><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a105"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a106"></a> <span class="src-comm">// sinon on interdit l'écriture</span></div></li> |
<li><div class="src-line"><a name="a107"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">desactiverEcriture</span><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a108"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a109"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a110"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a111"></a> </div></li> |
<li><div class="src-line"><a name="a112"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a113"></a><span class="src-doc"> * Vide un fichier log indiqué</span></div></li> |
<li><div class="src-line"><a name="a114"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nomFichier </span><span class="src-doc">le nom du fichier à vider</span></div></li> |
<li><div class="src-line"><a name="a115"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a116"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Log.html#methodviderLog">viderLog</a><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a117"></a> <a href="../Framework/Log.html#methodajouterEntree">ajouterEntree</a><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">, </span><span class="src-str">''</span><span class="src-sym">, </span><span class="src-str">'w'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a118"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a119"></a> </div></li> |
<li><div class="src-line"><a name="a120"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a121"></a><span class="src-doc"> * Vérifie la présence d'un fichier dans le tableau, ses droits d'écriture,</span></div></li> |
<li><div class="src-line"><a name="a122"></a><span class="src-doc"> * l'ouvre si nécessaire</span></div></li> |
<li><div class="src-line"><a name="a123"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nomFichier </span><span class="src-doc">le nom du fichier dont on doit vérifier la présence</span></div></li> |
<li><div class="src-line"><a name="a124"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">boolean </span><span class="src-doc">true si le fichier est ouvert ou maintenant accessible, false sinon</span></div></li> |
<li><div class="src-line"><a name="a125"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a126"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Log.html#methodverifierOuvrirFichier">verifierOuvrirFichier</a><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">,</span><span class="src-var">$mode</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a127"></a> <span class="src-comm">// le fichier est il déjà ouvert ?</span></div></li> |
<li><div class="src-line"><a name="a128"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/in_array">in_array</a><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">, </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$fichiersLog</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a129"></a> <span class="src-comm">// si oui peut on y écrire ?</span></div></li> |
<li><div class="src-line"><a name="a130"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">is_writable</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$cheminLogs</span>.<span class="src-var">$nomFichier</span>.<span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$ext</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a131"></a> <span class="src-comm">// si oui on renvoie le descripteur</span></div></li> |
<li><div class="src-line"><a name="a132"></a> <span class="src-key">return </span><span class="src-id">true</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a133"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a134"></a> <span class="src-key">return </span><span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a135"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a136"></a> <span class="src-comm">// sinon on l'ouvre</span></div></li> |
<li><div class="src-line"><a name="a137"></a> <span class="src-var">$fp </span>= <span class="src-sym">@</span><a href="http://www.php.net/fopen">fopen</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$cheminLogs</span>.<span class="src-var">$nomFichier</span>.<span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$ext</span><span class="src-sym">,</span><span class="src-var">$mode</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a138"></a> <span class="src-comm">// si l'ouverture a réussi et si le fichier a les droits d'écriture</span></div></li> |
<li><div class="src-line"><a name="a139"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$fp </span>&& <span class="src-id">is_writable</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$cheminLogs</span>.<span class="src-var">$nomFichier</span>.<span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$ext</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a140"></a> <span class="src-comm">// si oui on renvoie le descripteur qu'on ajoute au tableau</span></div></li> |
<li><div class="src-line"><a name="a141"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$fichiersLog</span><span class="src-sym">[</span><span class="src-var">$nomFichier</span><span class="src-sym">] </span>= <span class="src-var">$fp</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a142"></a> <span class="src-key">return </span><span class="src-id">true</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a143"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a144"></a> <span class="src-key">return </span><span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a145"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a146"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a147"></a> </div></li> |
<li><div class="src-line"><a name="a148"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a149"></a><span class="src-doc"> * Vérifie la taille d'un fichier donné et si celle ci est trop importante</span></div></li> |
<li><div class="src-line"><a name="a150"></a><span class="src-doc"> * archive le fichier de log</span></div></li> |
<li><div class="src-line"><a name="a151"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nomFichier </span><span class="src-doc">nom du fichier à vérifier</span></div></li> |
<li><div class="src-line"><a name="a152"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a153"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">verifierTailleFichierOuArchiver</span><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a154"></a> <span class="src-key">if</span><span class="src-sym">(</span><a href="http://www.php.net/filesize">filesize</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$cheminLogs</span>.<span class="src-var">$nomFichier</span>.<span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$ext</span><span class="src-sym">) </span>> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$tailleMax</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a155"></a> <span class="src-id">rename</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$cheminLogs</span>.<span class="src-var">$nomFichier</span>.<span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$ext</span><span class="src-sym">,</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$cheminLogs</span>.<span class="src-var">$nomFichier</span>.<span class="src-id">date</span><span class="src-sym">(</span><span class="src-str">'d_m_Y_H:i'</span><span class="src-sym">)</span>.<span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$ext</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a156"></a> <span class="src-id">ajouterEntree</span><span class="src-sym">(</span><span class="src-var">$nomFichier</span><span class="src-sym">,</span><span class="src-str">''</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a157"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a158"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a159"></a> </div></li> |
<li><div class="src-line"><a name="a160"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a161"></a><span class="src-doc"> * Désactive l'écriture du log et envoie un message au gestionnaire d'erreurs</span></div></li> |
<li><div class="src-line"><a name="a162"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nomFichier </span><span class="src-doc">le nom du fichier qui a causé l'erreur</span></div></li> |
<li><div class="src-line"><a name="a163"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a164"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">desactiverEcriture</span><span class="src-sym">(</span><span class="src-var">$nomFichier </span>= <span class="src-str">''</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a165"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$droitLogger </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a166"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$nomFichier </span>!= <span class="src-str">''</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a167"></a> <span class="src-var">$fichierDossier </span>= <span class="src-str">'fichier '</span>.<span class="src-var">$nomFichier </span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a168"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a169"></a> <span class="src-var">$fichierDossier </span>= <span class="src-str">'dossier des logs'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a170"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a171"></a> <span class="src-var">$message </span>= <span class="src-str">'Écriture impossible dans le '</span>.<span class="src-var">$fichierDossier</span>.<span class="src-str">', Assurez-vous des droits du dossier et des fichiers'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a172"></a> <span class="src-var">$e </span>= <span class="src-key">new </span><span class="src-id">ErrorException</span><span class="src-sym">(</span><span class="src-var">$message</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-id">E_USER_WARNING</span><span class="src-sym">, </span>__FILE__<span class="src-sym">, </span>__LINE__<span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a173"></a> <span class="src-id"><a href="../Framework/GestionnaireException.html">GestionnaireException</a></span><span class="src-sym">::</span><a href="../Framework/GestionnaireException.html#methodgererException">gererException</a><span class="src-sym">(</span><span class="src-var">$e</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a174"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a175"></a> </div></li> |
<li><div class="src-line"><a name="a176"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a177"></a><span class="src-doc"> * destructeur de classe, ferme les descripteurs ouverts</span></div></li> |
<li><div class="src-line"><a name="a178"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a179"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Log.html#method__destruct">__destruct</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a180"></a> <span class="src-key">foreach</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$fichiersLog </span><span class="src-key">as </span><span class="src-var">$nomFichier </span>=> <span class="src-var">$fp</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a181"></a> <span class="src-id">fclose</span><span class="src-sym">(</span><span class="src-var">$fp</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a182"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a183"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a184"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a185"></a><span class="src-php">?></span></div></li> |
</ol> |
</div> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:33 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/__filesource/fsource_Framework__Url.php.html |
---|
New file |
0,0 → 1,812 |
<html> |
<head> |
<title>File Source for Url.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1 align="center">Source for file Url.php</h1> |
<p>Documentation is available at <a href="../Framework/_Url.php.html">Url.php</a></p> |
<div class="src-code"> |
<ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc">* classe Url, gérant le découpage des paramètres, leurs modification etc...</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc">* Traduction et conversion d'une classe (NET_Url2) issue de Pear</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc">*</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc">* </span><span class="src-doc-coretag">@category</span><span class="src-doc"> Php5</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc">* </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc">// Auteur principal</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc">* </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Christian Schmidt <schmidt@php.net></span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc">// Autre auteurs</span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc">* </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Aurélien PERONNET <aurelien@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc">* </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc">* </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2009 Tela-Botanica</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc">* </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL</span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc">* </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.gnu.org/licenses/gpl.html Licence GNU-GPL</span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc">* </span><span class="src-doc-coretag">@version</span><span class="src-doc"> SVN: $Id: Url.php 150 2010-03-03 15:49:06Z jpm $</span></div></li> |
<li><div class="src-line"><a name="a18"></a><span class="src-doc">* </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-doc">*</span></div></li> |
<li><div class="src-line"><a name="a20"></a><span class="src-doc">*/</span></div></li> |
<li><div class="src-line"><a name="a21"></a><span class="src-key">class </span><a href="../Framework/Url.html">Url</a></div></li> |
<li><div class="src-line"><a name="a22"></a><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a23"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a24"></a><span class="src-doc"> * Parsing strict dans resoudre() (voir RFC 3986, section 5.2.2). Par défaut</span></div></li> |
<li><div class="src-line"><a name="a25"></a><span class="src-doc"> * à true.</span></div></li> |
<li><div class="src-line"><a name="a26"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a27"></a> <span class="src-key">const </span><span class="src-id">OPTION_STRICTE </span>= <span class="src-str">'strict'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a28"></a> </div></li> |
<li><div class="src-line"><a name="a29"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a30"></a><span class="src-doc"> * Répresenter les tableaux dans les requêtes en utilisant la notation php []. Par défaut à true.</span></div></li> |
<li><div class="src-line"><a name="a31"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a32"></a> <span class="src-key">const </span><span class="src-id">OPTION_UTILISER_CROCHETS </span>= <span class="src-str">'use_brackets'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a33"></a> </div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a35"></a><span class="src-doc"> * URL-encoder les clés des variables dans les requêtes. Par défaut à true.</span></div></li> |
<li><div class="src-line"><a name="a36"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a37"></a> <span class="src-key">const </span><span class="src-id">OPTION_ENCODER_CLES </span>= <span class="src-str">'encode_keys'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a38"></a> </div></li> |
<li><div class="src-line"><a name="a39"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a40"></a><span class="src-doc"> * Séparateurs de variables lors du parsing de la requête. Chaque caractère</span></div></li> |
<li><div class="src-line"><a name="a41"></a><span class="src-doc"> * est considéré comme un séparateur. Par défaut, spécifié par le paramêtre</span></div></li> |
<li><div class="src-line"><a name="a42"></a><span class="src-doc"> * arg_separator.input dans php.ini (par défaut "&").</span></div></li> |
<li><div class="src-line"><a name="a43"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a44"></a> <span class="src-key">const </span><span class="src-id">OPTION_SEPARATEUR_ENTREE </span>= <span class="src-str">'input_separator'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a45"></a> </div></li> |
<li><div class="src-line"><a name="a46"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a47"></a><span class="src-doc"> * Séparateur de variables lors de la génération de la requête. Par défaut, spécifié</span></div></li> |
<li><div class="src-line"><a name="a48"></a><span class="src-doc"> * par le paramètre arg_separator.output dans php.ini (par défaut "&").</span></div></li> |
<li><div class="src-line"><a name="a49"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a50"></a> <span class="src-key">const </span><span class="src-id">OPTION_SEPARATEUR_SORTIE </span>= <span class="src-str">'output_separator'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a51"></a> </div></li> |
<li><div class="src-line"><a name="a52"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a53"></a><span class="src-doc"> * Options par défaut correspondant au comportement de php</span></div></li> |
<li><div class="src-line"><a name="a54"></a><span class="src-doc"> * vis à vis de $_GET</span></div></li> |
<li><div class="src-line"><a name="a55"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a56"></a> <span class="src-key">private </span><span class="src-var">$options </span>= <span class="src-key">array</span><span class="src-sym">(</span></div></li> |
<li><div class="src-line"><a name="a57"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_STRICTE </span>=> <span class="src-id">true</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a58"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_UTILISER_CROCHETS </span>=> <span class="src-id">true</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a59"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_ENCODER_CLES </span>=> <span class="src-id">true</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a60"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_SEPARATEUR_ENTREE </span>=> <span class="src-str">'x&'</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a61"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_SEPARATEUR_SORTIE </span>=> <span class="src-str">'x&'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a62"></a> </div></li> |
<li><div class="src-line"><a name="a63"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a64"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a65"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a66"></a> <span class="src-key">private </span><span class="src-var">$schema </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a67"></a> </div></li> |
<li><div class="src-line"><a name="a68"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a69"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a70"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a71"></a> <span class="src-key">private </span><span class="src-var">$infoUtilisateur </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a72"></a> </div></li> |
<li><div class="src-line"><a name="a73"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a74"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a75"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a76"></a> <span class="src-key">private </span><span class="src-var">$hote </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a77"></a> </div></li> |
<li><div class="src-line"><a name="a78"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a79"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc"> </span><span class="src-doc-type">int</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a80"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a81"></a> <span class="src-key">private </span><span class="src-var">$port </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a82"></a> </div></li> |
<li><div class="src-line"><a name="a83"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a84"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc"> </span><span class="src-doc-type">string </span></div></li> |
<li><div class="src-line"><a name="a85"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a86"></a> <span class="src-key">private </span><span class="src-var">$chemin </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a87"></a> </div></li> |
<li><div class="src-line"><a name="a88"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a89"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a90"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a91"></a> <span class="src-key">private </span><span class="src-var">$requete </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a92"></a> </div></li> |
<li><div class="src-line"><a name="a93"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a94"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a95"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a96"></a> <span class="src-key">private </span><span class="src-var">$fragment </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a97"></a> </div></li> |
<li><div class="src-line"><a name="a98"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a99"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$url </span><span class="src-doc"> une URL relative ou absolue</span></div></li> |
<li><div class="src-line"><a name="a100"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc"> </span><span class="src-doc-var">$options </span></div></li> |
<li><div class="src-line"><a name="a101"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a102"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#method__construct">__construct</a><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">, </span><span class="src-var">$options </span>= <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a103"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetOption">setOption</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_SEPARATEUR_ENTREE</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a104"></a> <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'fw_url_arg_separateur_entree'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a105"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetOption">setOption</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_SEPARATEUR_SORTIE</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a106"></a> <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'fw_url_arg_separateur_sortie'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a107"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$options</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a108"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$options </span><span class="src-key">as </span><span class="src-var">$nomOption </span>=> <span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a109"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetOption">setOption</a><span class="src-sym">(</span><span class="src-var">$nomOption</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a110"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a111"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a112"></a> </div></li> |
<li><div class="src-line"><a name="a113"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'@^([a-z][a-z0-9.+-]*):@i'</span><span class="src-sym">, </span><span class="src-var">$url</span><span class="src-sym">, </span><span class="src-var">$reg</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a114"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">schema </span>= <span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a115"></a> <span class="src-var">$url </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">, </span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a116"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a117"></a> </div></li> |
<li><div class="src-line"><a name="a118"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'@^//([^/#?]+)@'</span><span class="src-sym">, </span><span class="src-var">$url</span><span class="src-sym">, </span><span class="src-var">$reg</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a119"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetAutorite">setAutorite</a><span class="src-sym">(</span><span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a120"></a> <span class="src-var">$url </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">, </span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a121"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a122"></a> </div></li> |
<li><div class="src-line"><a name="a123"></a> <span class="src-var">$i </span>= <a href="http://www.php.net/strcspn">strcspn</a><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">, </span><span class="src-str">'?#'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a124"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">chemin </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-var">$i</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a125"></a> <span class="src-var">$url </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">, </span><span class="src-var">$i</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a126"></a> </div></li> |
<li><div class="src-line"><a name="a127"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'@^\?([^#]*)@'</span><span class="src-sym">, </span><span class="src-var">$url</span><span class="src-sym">, </span><span class="src-var">$reg</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a128"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">requete </span>= <span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a129"></a> <span class="src-var">$url </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">, </span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a130"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a131"></a> </div></li> |
<li><div class="src-line"><a name="a132"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a133"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">fragment </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">, </span><span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a134"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a135"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a136"></a> </div></li> |
<li><div class="src-line"><a name="a137"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a138"></a><span class="src-doc"> * Retourne le schéma, c.a.d. "http" ou "urn", ou false si aucun schéma n'est</span></div></li> |
<li><div class="src-line"><a name="a139"></a><span class="src-doc"> * spécifié, i.e. l'url est une url relative</span></div></li> |
<li><div class="src-line"><a name="a140"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a141"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a142"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a143"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetSchema">getSchema</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a144"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">schema</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a145"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a146"></a> </div></li> |
<li><div class="src-line"><a name="a147"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a148"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span><span class="src-doc-var">$schema </span></div></li> |
<li><div class="src-line"><a name="a149"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a150"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a151"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> getSchema()</span></div></li> |
<li><div class="src-line"><a name="a152"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a153"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetSchema">setSchema</a><span class="src-sym">(</span><span class="src-var">$schema</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a154"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">schema </span>= <span class="src-var">$schema</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a155"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a156"></a> </div></li> |
<li><div class="src-line"><a name="a157"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a158"></a><span class="src-doc"> * renvoie la partie user de la partie infoUtilisateur (partie précédant le premier</span></div></li> |
<li><div class="src-line"><a name="a159"></a><span class="src-doc"> * ":"), ou false si aucune partie infoUtilisateur n'est définie.</span></div></li> |
<li><div class="src-line"><a name="a160"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a161"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a162"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a163"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetUtilisateur">getUtilisateur</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a164"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur </span>!== <span class="src-id">false </span>? <a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span><span class="src-str">'@:.*$@'</span><span class="src-sym">, </span><span class="src-str">''</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur</span><span class="src-sym">) </span>: <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a165"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a166"></a> </div></li> |
<li><div class="src-line"><a name="a167"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a168"></a><span class="src-doc"> * renvoie la partie mot de passe de la partie infoUtilisateur (partie après le premier</span></div></li> |
<li><div class="src-line"><a name="a169"></a><span class="src-doc"> * ":"), , ou false si aucune partie infoUtilisateur n'est définie (i.e. l'URL ne contient</span></div></li> |
<li><div class="src-line"><a name="a170"></a><span class="src-doc"> * pas de "@" en face du nom d'hôte) ou si la partie infoUtilisateur ne contient pas de ":".</span></div></li> |
<li><div class="src-line"><a name="a171"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a172"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a173"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a174"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetMotDePasse">getMotDePasse</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a175"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur </span>!== <span class="src-id">false </span>? <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><a href="http://www.php.net/strstr">strstr</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur</span><span class="src-sym">, </span><span class="src-str">':'</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-num">1</span><span class="src-sym">) </span>: <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a176"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a177"></a> </div></li> |
<li><div class="src-line"><a name="a178"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a179"></a><span class="src-doc"> * Renvoie la partie userinfio, ou false si celle-ci n'existe pas, i.e. si la partie</span></div></li> |
<li><div class="src-line"><a name="a180"></a><span class="src-doc"> * autorité ne contient pas de "@"</span></div></li> |
<li><div class="src-line"><a name="a181"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a182"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a183"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a184"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetInfoUtilisateur">getInfoUtilisateur</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a185"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a186"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a187"></a> </div></li> |
<li><div class="src-line"><a name="a188"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a189"></a><span class="src-doc"> * Setteur pour la partie infoUtilisateur. Si deux argument sont passé, ils sont combinés</span></div></li> |
<li><div class="src-line"><a name="a190"></a><span class="src-doc"> * dans la partie infoUtilisateur de cette manière username ":" password.</span></div></li> |
<li><div class="src-line"><a name="a191"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a192"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span><span class="src-doc-var">$infoUtilisateur </span><span class="src-doc">infoUtilisateur ou username</span></div></li> |
<li><div class="src-line"><a name="a193"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span><span class="src-doc-var">$motDePasse </span></div></li> |
<li><div class="src-line"><a name="a194"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a195"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a196"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a197"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetInfoUtilisateur">setInfoUtilisateur</a><span class="src-sym">(</span><span class="src-var">$infoUtilisateur</span><span class="src-sym">, </span><span class="src-var">$motDePasse </span>= <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a198"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur </span>= <span class="src-var">$infoUtilisateur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a199"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$motDePasse </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a200"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur </span>.= <span class="src-str">':' </span>. <span class="src-var">$motDePasse</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a201"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a202"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a203"></a> </div></li> |
<li><div class="src-line"><a name="a204"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a205"></a><span class="src-doc"> * Renvoie la partie hôte, ou false s'il n'y a pas de partie autorité, c.a.d.</span></div></li> |
<li><div class="src-line"><a name="a206"></a><span class="src-doc"> * l'URL est relative.</span></div></li> |
<li><div class="src-line"><a name="a207"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a208"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a209"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a210"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetHote">getHote</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a211"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a212"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a213"></a> </div></li> |
<li><div class="src-line"><a name="a214"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a215"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span><span class="src-doc-var">$hote </span></div></li> |
<li><div class="src-line"><a name="a216"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a217"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a218"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a219"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetHote">setHote</a><span class="src-sym">(</span><span class="src-var">$hote</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a220"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote </span>= <span class="src-var">$hote</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a221"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a222"></a> </div></li> |
<li><div class="src-line"><a name="a223"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a224"></a><span class="src-doc"> * Renvoie le numéro de port, ou false si aucun numéro de port n'est spécifié,</span></div></li> |
<li><div class="src-line"><a name="a225"></a><span class="src-doc"> * i.e. le port par défaut doit utilisé.</span></div></li> |
<li><div class="src-line"><a name="a226"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a227"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">int</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a228"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a229"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetPort">getPort</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a230"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">port</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a231"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a232"></a> </div></li> |
<li><div class="src-line"><a name="a233"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a234"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int</span><span class="src-doc">|</span><span class="src-doc-type">bool</span><span class="src-doc-var">$port </span></div></li> |
<li><div class="src-line"><a name="a235"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a236"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a237"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a238"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetPort">setPort</a><span class="src-sym">(</span><span class="src-var">$port</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a239"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">port </span>= <a href="http://www.php.net/intval">intval</a><span class="src-sym">(</span><span class="src-var">$port</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a240"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a241"></a> </div></li> |
<li><div class="src-line"><a name="a242"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a243"></a><span class="src-doc"> * Renvoie la partie autorité, i.e. [ infoUtilisateur "@" ] hote [ ":" port ], ou</span></div></li> |
<li><div class="src-line"><a name="a244"></a><span class="src-doc"> * false si celle-ci est absente.</span></div></li> |
<li><div class="src-line"><a name="a245"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a246"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a247"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a248"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetAutorite">getAutorite</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a249"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a250"></a> <span class="src-key">return </span><span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a251"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a252"></a> </div></li> |
<li><div class="src-line"><a name="a253"></a> <span class="src-var">$autorite </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a254"></a> </div></li> |
<li><div class="src-line"><a name="a255"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a256"></a> <span class="src-var">$autorite </span>.= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur </span>. <span class="src-str">'@'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a257"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a258"></a> </div></li> |
<li><div class="src-line"><a name="a259"></a> <span class="src-var">$autorite </span>.= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a260"></a> </div></li> |
<li><div class="src-line"><a name="a261"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">port </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a262"></a> <span class="src-var">$autorite </span>.= <span class="src-str">':' </span>. <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">port</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a263"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a264"></a> </div></li> |
<li><div class="src-line"><a name="a265"></a> <span class="src-key">return </span><span class="src-var">$autorite</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a266"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a267"></a> </div></li> |
<li><div class="src-line"><a name="a268"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a269"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">false</span><span class="src-doc-var">$autorite </span></div></li> |
<li><div class="src-line"><a name="a270"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a271"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a272"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a273"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetAutorite">setAutorite</a><span class="src-sym">(</span><span class="src-var">$autorite</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a274"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">user </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a275"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">pass </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a276"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a277"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">port </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a278"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'@^(([^\@]+)\@)?([^:]+)(:(\d*))?$@'</span><span class="src-sym">, </span><span class="src-var">$autorite</span><span class="src-sym">, </span><span class="src-var">$reg</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a279"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a280"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">infoUtilisateur </span>= <span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">2</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a281"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a282"></a> </div></li> |
<li><div class="src-line"><a name="a283"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote </span>= <span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">3</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a284"></a> <span class="src-key">if </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">5</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a285"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">port </span>= <a href="http://www.php.net/intval">intval</a><span class="src-sym">(</span><span class="src-var">$reg</span><span class="src-sym">[</span><span class="src-num">5</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a286"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a287"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a288"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a289"></a> </div></li> |
<li><div class="src-line"><a name="a290"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a291"></a><span class="src-doc"> * Renvoie la partie chemin (chemin) (éventuellement vide).</span></div></li> |
<li><div class="src-line"><a name="a292"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a293"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span></div></li> |
<li><div class="src-line"><a name="a294"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a295"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetChemin">getChemin</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a296"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">chemin</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a297"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a298"></a> </div></li> |
<li><div class="src-line"><a name="a299"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a300"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$chemin </span></div></li> |
<li><div class="src-line"><a name="a301"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a302"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a303"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a304"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetChemin">setChemin</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a305"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">chemin </span>= <span class="src-var">$chemin</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a306"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a307"></a> </div></li> |
<li><div class="src-line"><a name="a308"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a309"></a><span class="src-doc"> * renvoie la chaine de requête (requete string) (sans le premier "?"), ou false si "?"</span></div></li> |
<li><div class="src-line"><a name="a310"></a><span class="src-doc"> * n'est pas présent dans l'url.</span></div></li> |
<li><div class="src-line"><a name="a311"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a312"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a313"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> self::getVariablesRequete()</span></div></li> |
<li><div class="src-line"><a name="a314"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a315"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetRequete">getRequete</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a316"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">requete</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a317"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a318"></a> </div></li> |
<li><div class="src-line"><a name="a319"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a320"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span><span class="src-doc-var">$requete </span></div></li> |
<li><div class="src-line"><a name="a321"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a322"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a323"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> self::setVariablesRequete()</span></div></li> |
<li><div class="src-line"><a name="a324"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a325"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetRequete">setRequete</a><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a326"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">requete </span>= <span class="src-var">$requete</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a327"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a328"></a> </div></li> |
<li><div class="src-line"><a name="a329"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a330"></a><span class="src-doc"> * Renvoie le nom du fragment, ou false si "#" n'est pas present dans l'URL.</span></div></li> |
<li><div class="src-line"><a name="a331"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a332"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span></div></li> |
<li><div class="src-line"><a name="a333"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a334"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetFragment">getFragment</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a335"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">fragment</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a336"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a337"></a> </div></li> |
<li><div class="src-line"><a name="a338"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a339"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">bool</span><span class="src-doc-var">$fragment </span></div></li> |
<li><div class="src-line"><a name="a340"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a341"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a342"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a343"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetFragment">setFragment</a><span class="src-sym">(</span><span class="src-var">$fragment</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a344"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">fragment </span>= <span class="src-var">$fragment</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a345"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a346"></a> </div></li> |
<li><div class="src-line"><a name="a347"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a348"></a><span class="src-doc"> * Renvoie la requete string sous forme d'un tableau de variables telles qu'elles apparaitraient</span></div></li> |
<li><div class="src-line"><a name="a349"></a><span class="src-doc"> * dans le $_GET d'un script PHP</span></div></li> |
<li><div class="src-line"><a name="a350"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a351"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">array </span></div></li> |
<li><div class="src-line"><a name="a352"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a353"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetVariablesRequete">getVariablesRequete</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a354"></a> <span class="src-var">$pattern </span>= <span class="src-str">'/' </span>.</div></li> |
<li><div class="src-line"><a name="a355"></a> <a href="http://www.php.net/preg_quote">preg_quote</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetOption">getOption</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_SEPARATEUR_ENTREE</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-str">'/'</span><span class="src-sym">) </span>.</div></li> |
<li><div class="src-line"><a name="a356"></a> <span class="src-str">'/'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a357"></a> <span class="src-var">$parties </span>= <a href="http://www.php.net/preg_split">preg_split</a><span class="src-sym">(</span><span class="src-var">$pattern</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">requete</span><span class="src-sym">, </span>-<span class="src-num">1</span><span class="src-sym">, </span><span class="src-id">PREG_SPLIT_NO_EMPTY</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a358"></a> <span class="src-var">$retour </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a359"></a> </div></li> |
<li><div class="src-line"><a name="a360"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$parties </span><span class="src-key">as </span><span class="src-var">$partie</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a361"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$partie</span><span class="src-sym">, </span><span class="src-str">'='</span><span class="src-sym">) </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a362"></a> list<span class="src-sym">(</span><span class="src-var">$cle</span><span class="src-sym">, </span><span class="src-var">$valeur</span><span class="src-sym">) </span>= <a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">'='</span><span class="src-sym">, </span><span class="src-var">$partie</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a363"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a364"></a> <span class="src-var">$cle </span>= <span class="src-var">$partie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a365"></a> <span class="src-var">$valeur </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a366"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a367"></a> </div></li> |
<li><div class="src-line"><a name="a368"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetOption">getOption</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_ENCODER_CLES</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a369"></a> <span class="src-var">$cle </span>= <a href="http://www.php.net/rawurldecode">rawurldecode</a><span class="src-sym">(</span><span class="src-var">$cle</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a370"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a371"></a> <span class="src-var">$valeur </span>= <a href="http://www.php.net/rawurldecode">rawurldecode</a><span class="src-sym">(</span><span class="src-var">$valeur</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a372"></a> </div></li> |
<li><div class="src-line"><a name="a373"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetOption">getOption</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_UTILISER_CROCHETS</span><span class="src-sym">) </span>&&</div></li> |
<li><div class="src-line"><a name="a374"></a> <a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'#^(.*)\[([0-9a-z_-]*)\]#i'</span><span class="src-sym">, </span><span class="src-var">$cle</span><span class="src-sym">, </span><span class="src-var">$matches</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a375"></a> </div></li> |
<li><div class="src-line"><a name="a376"></a> <span class="src-var">$cle </span>= <span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a377"></a> <span class="src-var">$idx </span>= <span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-num">2</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a378"></a> </div></li> |
<li><div class="src-line"><a name="a379"></a> <span class="src-comm">// On s'assure que c'est bien un tableau</span></div></li> |
<li><div class="src-line"><a name="a380"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">) </span>|| <span class="src-sym">!</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a381"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">] </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a382"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a383"></a> </div></li> |
<li><div class="src-line"><a name="a384"></a> <span class="src-comm">// Ajout des données</span></div></li> |
<li><div class="src-line"><a name="a385"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$idx </span>=== <span class="src-str">''</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a386"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$valeur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a387"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a388"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$idx</span><span class="src-sym">] </span>= <span class="src-var">$valeur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a389"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a390"></a> <span class="src-sym">} </span><span class="src-key">elseif </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetOption">getOption</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_UTILISER_CROCHETS</span><span class="src-sym">)</span></div></li> |
<li><div class="src-line"><a name="a391"></a> && <span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">)</span></div></li> |
<li><div class="src-line"><a name="a392"></a> <span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a393"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">] </span>= (array) <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a394"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$valeur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a395"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a396"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">] </span>= <span class="src-var">$valeur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a397"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a398"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a399"></a> </div></li> |
<li><div class="src-line"><a name="a400"></a> <span class="src-key">return </span><span class="src-var">$retour</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a401"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a402"></a> </div></li> |
<li><div class="src-line"><a name="a403"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a404"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc-var">$tableau </span><span class="src-doc">(nom => valeur) tableau</span></div></li> |
<li><div class="src-line"><a name="a405"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a406"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a407"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a408"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetVariablesRequete">setVariablesRequete</a><span class="src-sym">(</span><span class="src-key">array </span><span class="src-var">$tableau</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a409"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$tableau</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a410"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">requete </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a411"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a412"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$tableau </span><span class="src-key">as </span><span class="src-var">$nom </span>=> <span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a413"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">getOption</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_ENCODER_CLES</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a414"></a> <span class="src-var">$nom </span>= <span class="src-id">rawurlencode</span><span class="src-sym">(</span><span class="src-var">$nom</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a415"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a416"></a> </div></li> |
<li><div class="src-line"><a name="a417"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$valeur</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a418"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$valeur </span><span class="src-key">as </span><span class="src-var">$k </span>=> <span class="src-var">$v</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a419"></a> <span class="src-var">$parties</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetOption">getOption</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_UTILISER_CROCHETS</span><span class="src-sym">)</span></div></li> |
<li><div class="src-line"><a name="a420"></a> ? <a href="http://www.php.net/sprintf">sprintf</a><span class="src-sym">(</span><span class="src-str">'%s[%s]=%s'</span><span class="src-sym">, </span><span class="src-var">$nom</span><span class="src-sym">, </span><span class="src-var">$k</span><span class="src-sym">, </span><span class="src-var">$v</span><span class="src-sym">)</span></div></li> |
<li><div class="src-line"><a name="a421"></a> : <span class="src-sym">(</span><span class="src-var">$nom </span>. <span class="src-str">'=' </span>. <span class="src-var">$v</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a422"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a423"></a> <span class="src-sym">} </span><span class="src-key">elseif </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_null">is_null</a><span class="src-sym">(</span><span class="src-var">$valeur</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a424"></a> <span class="src-var">$parties</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$nom </span>. <span class="src-str">'=' </span>. <span class="src-var">$valeur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a425"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a426"></a> <span class="src-var">$parties</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$nom</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a427"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a428"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a429"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">requete </span>= <a href="http://www.php.net/implode">implode</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetOption">getOption</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_SEPARATEUR_SORTIE</span><span class="src-sym">)</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a430"></a> <span class="src-var">$parties</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a431"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a432"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a433"></a> </div></li> |
<li><div class="src-line"><a name="a434"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a435"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nom </span></div></li> |
<li><div class="src-line"><a name="a436"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">mixed </span><span class="src-doc"> </span><span class="src-doc-var">$valeur </span></div></li> |
<li><div class="src-line"><a name="a437"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a438"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">array </span></div></li> |
<li><div class="src-line"><a name="a439"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a440"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodsetVariableRequete">setVariableRequete</a><span class="src-sym">(</span><span class="src-var">$nom</span><span class="src-sym">, </span><span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a441"></a> <span class="src-var">$tableau </span>= <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetVariablesRequete">getVariablesRequete</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a442"></a> <span class="src-var">$tableau</span><span class="src-sym">[</span><span class="src-var">$nom</span><span class="src-sym">] </span>= <span class="src-var">$valeur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a443"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetVariablesRequete">setVariablesRequete</a><span class="src-sym">(</span><span class="src-var">$tableau</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a444"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a445"></a> </div></li> |
<li><div class="src-line"><a name="a446"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a447"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nom </span></div></li> |
<li><div class="src-line"><a name="a448"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a449"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a450"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a451"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodunsetVariableRequete">unsetVariableRequete</a><span class="src-sym">(</span><span class="src-var">$nom</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a452"></a> <span class="src-var">$tableau </span>= <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetVariablesRequete">getVariablesRequete</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a453"></a> unset<span class="src-sym">(</span><span class="src-var">$tableau</span><span class="src-sym">[</span><span class="src-var">$nom</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a454"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetVariablesRequete">setVariablesRequete</a><span class="src-sym">(</span><span class="src-var">$tableau</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a455"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a456"></a> </div></li> |
<li><div class="src-line"><a name="a457"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a458"></a><span class="src-doc"> * Renvoie un représentation sous forme de chaine de l'URL</span></div></li> |
<li><div class="src-line"><a name="a459"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a460"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string </span></div></li> |
<li><div class="src-line"><a name="a461"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a462"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetURL">getURL</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a463"></a> <span class="src-comm">// Voir RFC 3986, section 5.3</span></div></li> |
<li><div class="src-line"><a name="a464"></a> <span class="src-var">$url </span>= <span class="src-str">""</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a465"></a> </div></li> |
<li><div class="src-line"><a name="a466"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a467"></a> <span class="src-var">$url </span>.= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema </span>. <span class="src-str">':'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a468"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a469"></a> </div></li> |
<li><div class="src-line"><a name="a470"></a> <span class="src-var">$autorite </span>= <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetAutorite">getAutorite</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a471"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$autorite </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a472"></a> <span class="src-var">$url </span>.= <span class="src-str">'//' </span>. <span class="src-var">$autorite</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a473"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a474"></a> <span class="src-var">$url </span>.= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a475"></a> </div></li> |
<li><div class="src-line"><a name="a476"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">requete </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a477"></a> <span class="src-var">$url </span>.= <span class="src-str">'?' </span>. <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">requete</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a478"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a479"></a> </div></li> |
<li><div class="src-line"><a name="a480"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">fragment </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a481"></a> <span class="src-var">$url </span>.= <span class="src-str">'#' </span>. <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">fragment</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a482"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a483"></a> </div></li> |
<li><div class="src-line"><a name="a484"></a> <span class="src-key">return </span><span class="src-var">$url</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a485"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a486"></a> </div></li> |
<li><div class="src-line"><a name="a487"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a488"></a><span class="src-doc"> * Renvoie une représentation de cette URL sous forme de chaine normalisée. Utile pour la</span></div></li> |
<li><div class="src-line"><a name="a489"></a><span class="src-doc"> * comparaison d'URLs</span></div></li> |
<li><div class="src-line"><a name="a490"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a491"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string </span></div></li> |
<li><div class="src-line"><a name="a492"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a493"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetURLNormalisee">getURLNormalisee</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a494"></a> <span class="src-var">$url </span>= <span class="src-key">clone </span><span class="src-var">$this</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a495"></a> <span class="src-var">$url</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodnormaliser">normaliser</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a496"></a> <span class="src-key">return </span><span class="src-var">$url</span><span class="src-sym">-></span><span class="src-id">getUrl</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a497"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a498"></a> </div></li> |
<li><div class="src-line"><a name="a499"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a500"></a><span class="src-doc"> * Renvoie une instance normalisée de Url</span></div></li> |
<li><div class="src-line"><a name="a501"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a502"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">Url </span></div></li> |
<li><div class="src-line"><a name="a503"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a504"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodnormaliser">normaliser</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a505"></a> <span class="src-comm">// See RFC 3886, section 6</span></div></li> |
<li><div class="src-line"><a name="a506"></a> </div></li> |
<li><div class="src-line"><a name="a507"></a> <span class="src-comm">// les cchémas sont insesibles à la casse</span></div></li> |
<li><div class="src-line"><a name="a508"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a509"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema </span>= <a href="http://www.php.net/strtolower">strtolower</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a510"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a511"></a> </div></li> |
<li><div class="src-line"><a name="a512"></a> <span class="src-comm">// les noms d'hotes sont insensibles à la casse</span></div></li> |
<li><div class="src-line"><a name="a513"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hote</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a514"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hote </span>= <a href="http://www.php.net/strtolower">strtolower</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hote</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a515"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a516"></a> </div></li> |
<li><div class="src-line"><a name="a517"></a> <span class="src-comm">// Supprimer le numéro de port par défaut pour les schemas connus (RFC 3986, section 6.2.3)</span></div></li> |
<li><div class="src-line"><a name="a518"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">port </span>&&</div></li> |
<li><div class="src-line"><a name="a519"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema </span>&&</div></li> |
<li><div class="src-line"><a name="a520"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">port </span>== <a href="http://www.php.net/getservbyname">getservbyname</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema</span><span class="src-sym">, </span><span class="src-str">'tcp'</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a521"></a> </div></li> |
<li><div class="src-line"><a name="a522"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">port </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a523"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a524"></a> </div></li> |
<li><div class="src-line"><a name="a525"></a> <span class="src-comm">// normalisation dans le cas d'un encodage avec %XX pourcentage (RFC 3986, section 6.2.2.1)</span></div></li> |
<li><div class="src-line"><a name="a526"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'infoUtilisateur'</span><span class="src-sym">, </span><span class="src-str">'hote'</span><span class="src-sym">, </span><span class="src-str">'chemin'</span><span class="src-sym">) </span><span class="src-key">as </span><span class="src-var">$partie</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a527"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$partie</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a528"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$partie </span>= <a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span><span class="src-str">'/%[0-9a-f]{2}/ie'</span><span class="src-sym">, </span><span class="src-str">'strtoupper("\0")'</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$partie</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a529"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a530"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a531"></a> </div></li> |
<li><div class="src-line"><a name="a532"></a> <span class="src-comm">// normalisation des segments du chemin (RFC 3986, section 6.2.2.3)</span></div></li> |
<li><div class="src-line"><a name="a533"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">supprimerSegmentsAPoints</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a534"></a> </div></li> |
<li><div class="src-line"><a name="a535"></a> <span class="src-comm">// normalisation basée sur le schéma (RFC 3986, section 6.2.3)</span></div></li> |
<li><div class="src-line"><a name="a536"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hote </span>&& <span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a537"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin </span>= <span class="src-str">'/'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a538"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a539"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a540"></a> </div></li> |
<li><div class="src-line"><a name="a541"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a542"></a><span class="src-doc"> * Renvoie vrai ou faux suivant que l'instance en cours représente une URL relative ou absolue.</span></div></li> |
<li><div class="src-line"><a name="a543"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a544"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">bool </span></div></li> |
<li><div class="src-line"><a name="a545"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a546"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodetreAbsolue">etreAbsolue</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a547"></a> <span class="src-key">return </span>(bool) <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a548"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a549"></a> </div></li> |
<li><div class="src-line"><a name="a550"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a551"></a><span class="src-doc"> * Renvoie une instance de Url représentant une URL absolue relative à</span></div></li> |
<li><div class="src-line"><a name="a552"></a><span class="src-doc"> * cette URL.</span></div></li> |
<li><div class="src-line"><a name="a553"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a554"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">Url</span><span class="src-doc">|</span><span class="src-doc-type">string</span><span class="src-doc-var">$reference </span><span class="src-doc">URL relative</span></div></li> |
<li><div class="src-line"><a name="a555"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a556"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">Url </span></div></li> |
<li><div class="src-line"><a name="a557"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a558"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#methodresoudre">resoudre</a><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a559"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/is_string">is_string</a><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a560"></a> <span class="src-var">$reference </span>= <span class="src-key">new </span><span class="src-id">self</span><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a561"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a562"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodetreAbsolue">etreAbsolue</a><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a563"></a> throw <span class="src-key">new </span><span class="src-id">Exception</span><span class="src-sym">(</span><span class="src-str">'L\'URL de base doit être absolue !'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a564"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a565"></a> </div></li> |
<li><div class="src-line"><a name="a566"></a> <span class="src-comm">// Un parseur non strict peut choisir d'ignorer un schema dans la référence</span></div></li> |
<li><div class="src-line"><a name="a567"></a> <span class="src-comm">// si celui ci est identique au schéma de base de l'URI.</span></div></li> |
<li><div class="src-line"><a name="a568"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetOption">getOption</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">OPTION_STRICTE</span><span class="src-sym">) </span>&& <span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">schema </span>== <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a569"></a> <span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">schema </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a570"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a571"></a> </div></li> |
<li><div class="src-line"><a name="a572"></a> <span class="src-var">$cible </span>= <span class="src-key">new </span><span class="src-id">self</span><span class="src-sym">(</span><span class="src-str">''</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a573"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">schema </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a574"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">schema </span>= <span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">schema</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a575"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetAutorite">setAutorite</a><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetAutorite">getAutorite</a><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a576"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">chemin </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">supprimerSegmentsAPoints</span><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a577"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">requete </span>= <span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">requete</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a578"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a579"></a> <span class="src-var">$autorite </span>= <span class="src-var">$reference</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetAutorite">getAutorite</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a580"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$autorite </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a581"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetAutorite">setAutorite</a><span class="src-sym">(</span><span class="src-var">$autorite</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a582"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">chemin </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">supprimerSegmentsAPoints</span><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a583"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">requete </span>= <span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">requete</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a584"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a585"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">chemin </span>== <span class="src-str">''</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a586"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">chemin </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a587"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">requete </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a588"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">requete </span>= <span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">requete</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a589"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a590"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">requete </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">requete</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a591"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a592"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a593"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-num">1</span><span class="src-sym">) </span>== <span class="src-str">'/'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a594"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">chemin </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">supprimerSegmentsAPoints</span><span class="src-sym">(</span><span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a595"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a596"></a> <span class="src-comm">// Concaténation chemins (RFC 3986, section 5.2.3)</span></div></li> |
<li><div class="src-line"><a name="a597"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hote </span>!== <span class="src-id">false </span>&& <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin </span>== <span class="src-str">''</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a598"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">chemin </span>= <span class="src-str">'/' </span>. <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a599"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a600"></a> <span class="src-var">$i </span>= <a href="http://www.php.net/strrpos">strrpos</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">, </span><span class="src-str">'/'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a601"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$i </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a602"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">chemin </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-var">$i </span>+ <span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a603"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a604"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">chemin </span>.= <span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a605"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a606"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">chemin </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">supprimerSegmentsAPoints</span><span class="src-sym">(</span><span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">chemin</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a607"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a608"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">requete </span>= <span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">requete</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a609"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a610"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetAutorite">setAutorite</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetAutorite">getAutorite</a><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a611"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a612"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">schema </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">schema</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a613"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a614"></a> </div></li> |
<li><div class="src-line"><a name="a615"></a> <span class="src-var">$cible</span><span class="src-sym">-></span><span class="src-id">fragment </span>= <span class="src-var">$reference</span><span class="src-sym">-></span><span class="src-id">fragment</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a616"></a> </div></li> |
<li><div class="src-line"><a name="a617"></a> <span class="src-key">return </span><span class="src-var">$cible</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a618"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a619"></a> </div></li> |
<li><div class="src-line"><a name="a620"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a621"></a><span class="src-doc"> * La suppression des segments à points est décrite dans la RFC 3986, section 5.2.4, e.g.</span></div></li> |
<li><div class="src-line"><a name="a622"></a><span class="src-doc"> * "/foo/../bar/baz" => "/bar/baz"</span></div></li> |
<li><div class="src-line"><a name="a623"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a624"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$chemin </span><span class="src-doc">un chemin</span></div></li> |
<li><div class="src-line"><a name="a625"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a626"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">un chemin</span></div></li> |
<li><div class="src-line"><a name="a627"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a628"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">supprimerSegmentsAPoints</span><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a629"></a> <span class="src-var">$sortie </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a630"></a> </div></li> |
<li><div class="src-line"><a name="a631"></a> <span class="src-comm">// Assurons de ne pas nous retrouver piégés dans une boucle infinie due à un bug de</span></div></li> |
<li><div class="src-line"><a name="a632"></a> <span class="src-comm">// cette méthode</span></div></li> |
<li><div class="src-line"><a name="a633"></a> <span class="src-var">$j </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a634"></a> <span class="src-key">while </span><span class="src-sym">(</span><span class="src-var">$chemin </span>&& <span class="src-var">$j</span>++ < <span class="src-num">100</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a635"></a> <span class="src-comm">// Étape A</span></div></li> |
<li><div class="src-line"><a name="a636"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">) </span>== <span class="src-str">'./'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a637"></a> <span class="src-var">$chemin </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a638"></a> <span class="src-sym">} </span><span class="src-key">elseif </span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">) </span>== <span class="src-str">'../'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a639"></a> <span class="src-var">$chemin </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a640"></a> </div></li> |
<li><div class="src-line"><a name="a641"></a> <span class="src-comm">// Étape B</span></div></li> |
<li><div class="src-line"><a name="a642"></a> <span class="src-sym">} </span><span class="src-key">elseif </span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">) </span>== <span class="src-str">'/./' </span>|| <span class="src-var">$chemin </span>== <span class="src-str">'/.'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a643"></a> <span class="src-var">$chemin </span>= <span class="src-str">'/' </span>. <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a644"></a> </div></li> |
<li><div class="src-line"><a name="a645"></a> <span class="src-comm">// Étape C</span></div></li> |
<li><div class="src-line"><a name="a646"></a> <span class="src-sym">} </span><span class="src-key">elseif </span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-num">4</span><span class="src-sym">) </span>== <span class="src-str">'/../' </span>|| <span class="src-var">$chemin </span>== <span class="src-str">'/..'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a647"></a> <span class="src-var">$chemin </span>= <span class="src-str">'/' </span>. <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-num">4</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a648"></a> <span class="src-var">$i </span>= <a href="http://www.php.net/strrpos">strrpos</a><span class="src-sym">(</span><span class="src-var">$sortie</span><span class="src-sym">, </span><span class="src-str">'/'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a649"></a> <span class="src-var">$sortie </span>= <span class="src-var">$i </span>=== <span class="src-id">false </span>? <span class="src-str">'' </span>: <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$sortie</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-var">$i</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a650"></a> </div></li> |
<li><div class="src-line"><a name="a651"></a> <span class="src-comm">// Étape D</span></div></li> |
<li><div class="src-line"><a name="a652"></a> <span class="src-sym">} </span><span class="src-key">elseif </span><span class="src-sym">(</span><span class="src-var">$chemin </span>== <span class="src-str">'.' </span>|| <span class="src-var">$chemin </span>== <span class="src-str">'..'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a653"></a> <span class="src-var">$chemin </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a654"></a> </div></li> |
<li><div class="src-line"><a name="a655"></a> <span class="src-comm">// Étape E</span></div></li> |
<li><div class="src-line"><a name="a656"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a657"></a> <span class="src-var">$i </span>= <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-str">'/'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a658"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$i </span>=== <span class="src-num">0</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a659"></a> <span class="src-var">$i </span>= <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-str">'/'</span><span class="src-sym">, </span><span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a660"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a661"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$i </span>=== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a662"></a> <span class="src-var">$i </span>= <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a663"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a664"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-var">$i</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a665"></a> <span class="src-var">$chemin </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$chemin</span><span class="src-sym">, </span><span class="src-var">$i</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a666"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a667"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a668"></a> </div></li> |
<li><div class="src-line"><a name="a669"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a670"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a671"></a> </div></li> |
<li><div class="src-line"><a name="a672"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a673"></a><span class="src-doc"> * Renvoie une instance de Url representant l'URL canonique du script PHP</span></div></li> |
<li><div class="src-line"><a name="a674"></a><span class="src-doc"> * en cours d'éxécution</span></div></li> |
<li><div class="src-line"><a name="a675"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a676"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string </span></div></li> |
<li><div class="src-line"><a name="a677"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a678"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetCanonique">getCanonique</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a679"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'REQUEST_METHOD'</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a680"></a> <span class="src-comm">// ALERT - pas d'URL en cours</span></div></li> |
<li><div class="src-line"><a name="a681"></a> throw <span class="src-key">new </span><span class="src-id">Exception</span><span class="src-sym">(</span><span class="src-str">'Le script n\'a pas été appellé à travers un serveur web'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a682"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a683"></a> </div></li> |
<li><div class="src-line"><a name="a684"></a> <span class="src-comm">// on part d'une URL relative</span></div></li> |
<li><div class="src-line"><a name="a685"></a> <span class="src-var">$url </span>= <span class="src-key">new </span><span class="src-id">self</span><span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'PHP_SELF'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a686"></a> <span class="src-var">$url</span><span class="src-sym">-></span><span class="src-id">schema </span>= isset<span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'HTTPS'</span><span class="src-sym">]</span><span class="src-sym">) </span>? <span class="src-str">'https' </span>: <span class="src-str">'http'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a687"></a> <span class="src-var">$url</span><span class="src-sym">-></span><span class="src-id">hote </span>= <span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'SERVER_NAME'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a688"></a> <span class="src-var">$port </span>= <a href="http://www.php.net/intval">intval</a><span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'SERVER_PORT'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a689"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$url</span><span class="src-sym">-></span><span class="src-id">schema </span>== <span class="src-str">'http' </span>&& <span class="src-var">$port </span>!= <span class="src-num">80 </span>||</div></li> |
<li><div class="src-line"><a name="a690"></a> <span class="src-var">$url</span><span class="src-sym">-></span><span class="src-id">schema </span>== <span class="src-str">'https' </span>&& <span class="src-var">$port </span>!= <span class="src-num">443</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a691"></a> </div></li> |
<li><div class="src-line"><a name="a692"></a> <span class="src-var">$url</span><span class="src-sym">-></span><span class="src-id">port </span>= <span class="src-var">$port</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a693"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a694"></a> <span class="src-key">return </span><span class="src-var">$url</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a695"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a696"></a> </div></li> |
<li><div class="src-line"><a name="a697"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a698"></a><span class="src-doc"> * Renvoie l'URL utilisée pour récupérer la requête en cours</span></div></li> |
<li><div class="src-line"><a name="a699"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a700"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string </span></div></li> |
<li><div class="src-line"><a name="a701"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a702"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetURLDemande">getURLDemande</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a703"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getDemande</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-></span><span class="src-id">getUrl</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a704"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a705"></a> </div></li> |
<li><div class="src-line"><a name="a706"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a707"></a><span class="src-doc"> * Renvoie une instance de Url representant l'URL utilisée pour</span></div></li> |
<li><div class="src-line"><a name="a708"></a><span class="src-doc"> * récupérer la requête en cours</span></div></li> |
<li><div class="src-line"><a name="a709"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a710"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">Url </span></div></li> |
<li><div class="src-line"><a name="a711"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a712"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Url.html#methodgetDemande">getDemande</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a713"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'REQUEST_METHOD'</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a714"></a> <span class="src-comm">// ALERTE - pas d'URL en cours</span></div></li> |
<li><div class="src-line"><a name="a715"></a> throw <span class="src-key">new </span><span class="src-id">Exception</span><span class="src-sym">(</span><span class="src-str">'Le script n\'a pas été appellé à travers un serveur web'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a716"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a717"></a> </div></li> |
<li><div class="src-line"><a name="a718"></a> <span class="src-comm">// On part d'une URL relative</span></div></li> |
<li><div class="src-line"><a name="a719"></a> <span class="src-var">$url </span>= <span class="src-key">new </span><span class="src-id">self</span><span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'REQUEST_URI'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a720"></a> <span class="src-var">$url</span><span class="src-sym">-></span><span class="src-id">schema </span>= isset<span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'HTTPS'</span><span class="src-sym">]</span><span class="src-sym">) </span>? <span class="src-str">'https' </span>: <span class="src-str">'http'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a721"></a> <span class="src-comm">// On met à jour les valeurs de l'hote et si possible du port</span></div></li> |
<li><div class="src-line"><a name="a722"></a> <span class="src-var">$url</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodsetAutorite">setAutorite</a><span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'HTTP_hote'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a723"></a> <span class="src-key">return </span><span class="src-var">$url</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a724"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a725"></a> </div></li> |
<li><div class="src-line"><a name="a726"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a727"></a><span class="src-doc"> * Met à jour la valeur de l'option spécifiée.</span></div></li> |
<li><div class="src-line"><a name="a728"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a729"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nomOption </span><span class="src-doc">une des constantes commençant par self::OPTION_</span></div></li> |
<li><div class="src-line"><a name="a730"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">mixed </span><span class="src-doc"> </span><span class="src-doc-var">$valeur </span><span class="src-doc"> valeur de l'option</span></div></li> |
<li><div class="src-line"><a name="a731"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a732"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a733"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> self::OPTION_STRICTE</span></div></li> |
<li><div class="src-line"><a name="a734"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> self::OPTION_UTILISER_CROCHETS</span></div></li> |
<li><div class="src-line"><a name="a735"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> self::OPTION_ENCODER_CLES</span></div></li> |
<li><div class="src-line"><a name="a736"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a737"></a> <span class="src-key">function </span><a href="../Framework/Url.html#methodsetOption">setOption</a><span class="src-sym">(</span><span class="src-var">$nomOption</span><span class="src-sym">, </span><span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a738"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/array_key_exists">array_key_exists</a><span class="src-sym">(</span><span class="src-var">$nomOption</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">options</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a739"></a> <span class="src-key">return </span><span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a740"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a741"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">options</span><span class="src-sym">[</span><span class="src-var">$nomOption</span><span class="src-sym">] </span>= <span class="src-var">$valeur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a742"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a743"></a> </div></li> |
<li><div class="src-line"><a name="a744"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a745"></a><span class="src-doc"> * Renvoie la valeur de l'option specifiée.</span></div></li> |
<li><div class="src-line"><a name="a746"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a747"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$nomOption </span><span class="src-doc">Nom de l'option demandée</span></div></li> |
<li><div class="src-line"><a name="a748"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a749"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">mixed </span></div></li> |
<li><div class="src-line"><a name="a750"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a751"></a> <span class="src-key">function </span><a href="../Framework/Url.html#methodgetOption">getOption</a><span class="src-sym">(</span><span class="src-var">$nomOption</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a752"></a> <span class="src-key">return </span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">options</span><span class="src-sym">[</span><span class="src-var">$nomOption</span><span class="src-sym">]</span><span class="src-sym">)</span></div></li> |
<li><div class="src-line"><a name="a753"></a> ? <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">options</span><span class="src-sym">[</span><span class="src-var">$nomOption</span><span class="src-sym">] </span>: <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a754"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a755"></a> </div></li> |
<li><div class="src-line"><a name="a756"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Url.html#method__toString">__toString</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a757"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Url.html#methodgetURL">getURL</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a758"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a759"></a><span class="src-sym">}</span></div></li> |
</ol> |
</div> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:38 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/__filesource/fsource_Framework__Application.php.html |
---|
New file |
0,0 → 1,135 |
<html> |
<head> |
<title>File Source for Application.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1 align="center">Source for file Application.php</h1> |
<p>Documentation is available at <a href="../Framework/_Application.php.html">Application.php</a></p> |
<div class="src-code"> |
<ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Classe fournissant des informations au Framework sur l'application.</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> * PHP version 5</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> Debogage</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> // Auteur principal :</span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> // Autres auteurs :</span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> GPL v3 <http://www.gnu.org/licenses/gpl.txt></span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt></span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> $$Id: Application.php 153 2010-03-04 10:48:32Z jpm $$</span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 1999-2009 Tela Botanica (accueil@tela-botanica.org)</span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a18"></a><span class="src-key">class </span><a href="../Framework/Application.html">Application</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a19"></a> </div></li> |
<li><div class="src-line"><a name="a20"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a21"></a><span class="src-doc"> * tableau d'informations sur l'application</span></div></li> |
<li><div class="src-line"><a name="a22"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a23"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$info </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a24"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a25"></a><span class="src-doc"> * chemin de base de l'application</span></div></li> |
<li><div class="src-line"><a name="a26"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a27"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$chemin </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a28"></a> </div></li> |
<li><div class="src-line"><a name="a29"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a30"></a><span class="src-doc"> * Modificateur pour le chemin de base</span></div></li> |
<li><div class="src-line"><a name="a31"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$chemin_fichier_principal </span><span class="src-doc">chemin de base</span></div></li> |
<li><div class="src-line"><a name="a32"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a33"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Application.html#methodsetChemin">setChemin</a><span class="src-sym">(</span><span class="src-var">$chemin_fichier_principal</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$chemin </span>=== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a35"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/file_exists">file_exists</a><span class="src-sym">(</span><span class="src-var">$chemin_fichier_principal</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a36"></a> <a href="http://www.php.net/trigger_error">trigger_error</a><span class="src-sym">(</span><span class="src-str">"Le fichier indiqué n'existe pas. Utilisez __FILE__ dans la méthode set()."</span><span class="src-sym">, </span><span class="src-id">E_USER_ERROR</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a37"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a38"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$chemin </span>= <span class="src-id">dirname</span><span class="src-sym">(</span><span class="src-var">$chemin_fichier_principal</span><span class="src-sym">)</span>.<span class="src-id"><a href="../Framework/_autoload.inc.php.html#defineDS">DS</a></span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a39"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a40"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a41"></a> <a href="http://www.php.net/trigger_error">trigger_error</a><span class="src-sym">(</span><span class="src-str">"Le chemin de l'application a déjà été enregistré auprès du Framework"</span><span class="src-sym">, </span><span class="src-id">E_USER_WARNING</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a42"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a43"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a44"></a> </div></li> |
<li><div class="src-line"><a name="a45"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a46"></a><span class="src-doc"> * accesseur pour le chemin</span></div></li> |
<li><div class="src-line"><a name="a47"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">le chemin</span></div></li> |
<li><div class="src-line"><a name="a48"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a49"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Application.html#methodgetChemin">getChemin</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a50"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$chemin</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a51"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a52"></a> </div></li> |
<li><div class="src-line"><a name="a53"></a> <span class="src-doc">/** Le tableau des informations sur l'application possède les clés suivantes :</span></div></li> |
<li><div class="src-line"><a name="a54"></a><span class="src-doc"> * - nom : nom de l'application</span></div></li> |
<li><div class="src-line"><a name="a55"></a><span class="src-doc"> * - abr : abréviation de l'application</span></div></li> |
<li><div class="src-line"><a name="a56"></a><span class="src-doc"> * - encodage : encodage de l'application (ISO-8859-15, UTF-8...)</span></div></li> |
<li><div class="src-line"><a name="a57"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a58"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc-var">$info </span><span class="src-doc">tableau fournissant des informations sur l'application</span></div></li> |
<li><div class="src-line"><a name="a59"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li> |
<li><div class="src-line"><a name="a60"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a61"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Application.html#methodsetInfo">setInfo</a><span class="src-sym">(</span><span class="src-var">$info</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a62"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$info </span>=== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a63"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$info </span>= <span class="src-var">$info</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a64"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a65"></a> <span class="src-id">trigger_error</span><span class="src-sym">(</span><span class="src-str">"Le informations de l'application ont déjà été enregistrées auprès du Framework"</span><span class="src-sym">, </span><span class="src-id">E_USER_WARNING</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a66"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a67"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a68"></a> </div></li> |
<li><div class="src-line"><a name="a69"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a70"></a><span class="src-doc"> * accesseur pour le tableau d'infos</span></div></li> |
<li><div class="src-line"><a name="a71"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$cle </span><span class="src-doc">la clé à laquelle on veut accéder</span></div></li> |
<li><div class="src-line"><a name="a72"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a73"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Application.html#methodgetInfo">getInfo</a><span class="src-sym">(</span><span class="src-var">$cle </span>= <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a74"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$cle </span>!== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a75"></a> <span class="src-key">if </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$info</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a76"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$info</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a77"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a78"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a79"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$info</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a80"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a81"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a82"></a><span class="src-sym">}</span></div></li> |
</ol> |
</div> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:28 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/__filesource/fsource_Framework__SquelettePhp.php.html |
---|
New file |
0,0 → 1,127 |
<html> |
<head> |
<title>File Source for SquelettePhp.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1 align="center">Source for file SquelettePhp.php</h1> |
<p>Documentation is available at <a href="../Framework/_SquelettePhp.php.html">SquelettePhp.php</a></p> |
<div class="src-code"> |
<ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Classe SquelettePhp, traitant les squelette Php utilisant la syntaxe courte php ou pas.</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> * Ces méthodes sont statiques.</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> php5</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2010 Tela-Botanica</span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL</span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.gnu.org/licenses/gpl.html Licence GNU-GPL</span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> SVN: $$Id: SquelettePhp.php 153 2010-03-04 10:48:32Z jpm $$</span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-key">class </span><a href="../Framework/SquelettePhp.html">SquelettePhp</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a17"></a> </div></li> |
<li><div class="src-line"><a name="a18"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-doc"> * Fonction prenant en paramètre un chemin de fichier squelette et un tableau associatif de données,</span></div></li> |
<li><div class="src-line"><a name="a20"></a><span class="src-doc"> * en extrait les variables, charge le squelette et retourne le résultat des deux combinés.</span></div></li> |
<li><div class="src-line"><a name="a21"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a22"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">String </span><span class="src-doc-var">$fichier </span><span class="src-doc"> le chemin du fichier du squelette</span></div></li> |
<li><div class="src-line"><a name="a23"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">Array </span><span class="src-doc"> </span><span class="src-doc-var">$donnees </span><span class="src-doc"> un tableau associatif contenant les variables a injecter dans le squelette.</span></div></li> |
<li><div class="src-line"><a name="a24"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a25"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">boolean </span><span class="src-doc">false si la vue n'existe pas, sinon la chaine résultat.</span></div></li> |
<li><div class="src-line"><a name="a26"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a27"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/SquelettePhp.html#methodanalyser">analyser</a><span class="src-sym">(</span><span class="src-var">$fichier</span><span class="src-sym">, </span><span class="src-key">Array </span><span class="src-var">$donnees </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a28"></a> <span class="src-var">$sortie </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a29"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/file_exists">file_exists</a><span class="src-sym">(</span><span class="src-var">$fichier</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a30"></a> <span class="src-comm">// Extraction des variables du tableau de données</span></div></li> |
<li><div class="src-line"><a name="a31"></a> <a href="http://www.php.net/extract">extract</a><span class="src-sym">(</span><span class="src-var">$donnees</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a32"></a> <span class="src-comm">// Démarage de la bufferisation de sortie</span></div></li> |
<li><div class="src-line"><a name="a33"></a> <a href="http://www.php.net/ob_start">ob_start</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-comm">// Si les tags courts sont activés</span></div></li> |
<li><div class="src-line"><a name="a35"></a> <span class="src-key">if </span><span class="src-sym">(</span>(bool) <span class="src-sym">@</span><a href="http://www.php.net/ini_get">ini_get</a><span class="src-sym">(</span><span class="src-str">'short_open_tag'</span><span class="src-sym">) </span>=== <span class="src-id">true</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a36"></a> <span class="src-comm">// Simple inclusion du squelette</span></div></li> |
<li><div class="src-line"><a name="a37"></a> <span class="src-inc">include </span><span class="src-var">$fichier</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a38"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a39"></a> <span class="src-comm">// Sinon, remplacement des tags courts par la syntaxe classique avec echo</span></div></li> |
<li><div class="src-line"><a name="a40"></a> <span class="src-var">$html_et_code_php </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">traiterTagsCourts</span><span class="src-sym">(</span><span class="src-var">$fichier</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a41"></a> <span class="src-comm">// Pour évaluer du php mélangé dans du html il est nécessaire de fermer la balise php ouverte par eval</span></div></li> |
<li><div class="src-line"><a name="a42"></a> <span class="src-var">$html_et_code_php </span>= <span class="src-str">'?>'</span>.<span class="src-var">$html_et_code_php</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a43"></a> <span class="src-comm">// Interprétation du html et du php dans le buffer</span></div></li> |
<li><div class="src-line"><a name="a44"></a> echo eval<span class="src-sym">(</span><span class="src-var">$html_et_code_php</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a45"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a46"></a> <span class="src-comm">// Récupèration du contenu du buffer</span></div></li> |
<li><div class="src-line"><a name="a47"></a> <span class="src-var">$sortie </span>= <a href="http://www.php.net/ob_get_contents">ob_get_contents</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a48"></a> <span class="src-comm">// Suppression du buffer</span></div></li> |
<li><div class="src-line"><a name="a49"></a> <span class="src-sym">@</span><a href="http://www.php.net/ob_end_clean">ob_end_clean</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a50"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a51"></a> <span class="src-var">$msg </span>= <span class="src-str">"</span><span class="src-str">Le fichier du squelette '<span class="src-var">$fichier</span>' n'existe pas.</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a52"></a> <a href="http://www.php.net/trigger_error">trigger_error</a><span class="src-sym">(</span><span class="src-var">$msg</span><span class="src-sym">, </span><span class="src-id">E_USER_WARNING</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a53"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a54"></a> <span class="src-comm">// Retourne le contenu</span></div></li> |
<li><div class="src-line"><a name="a55"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a56"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a57"></a> </div></li> |
<li><div class="src-line"><a name="a58"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a59"></a><span class="src-doc"> * Fonction chargeant le contenu du squelette et remplaçant les tags court php (<?= ...) par un tag long avec echo.</span></div></li> |
<li><div class="src-line"><a name="a60"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a61"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">String </span><span class="src-doc-var">$chemin_squelette </span><span class="src-doc">le chemin du fichier du squelette</span></div></li> |
<li><div class="src-line"><a name="a62"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a63"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">le contenu du fichier du squelette php avec les tags courts remplacés.</span></div></li> |
<li><div class="src-line"><a name="a64"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a65"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">traiterTagsCourts</span><span class="src-sym">(</span><span class="src-var">$chemin_squelette</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a66"></a> <span class="src-var">$contenu </span>= <a href="http://www.php.net/file_get_contents">file_get_contents</a><span class="src-sym">(</span><span class="src-var">$chemin_squelette</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a67"></a> <span class="src-comm">// Remplacement de tags courts par un tag long avec echo</span></div></li> |
<li><div class="src-line"><a name="a68"></a> <span class="src-var">$contenu </span>= <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">'<?='</span><span class="src-sym">, </span><span class="src-str">'<?php echo '</span><span class="src-sym">, </span><span class="src-var">$contenu</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a69"></a> <span class="src-comm">// Ajout systématique d'un point virgule avant la fermeture php</span></div></li> |
<li><div class="src-line"><a name="a70"></a> <span class="src-var">$contenu </span>= <a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span><span class="src-str">"/;*\s*\?>/"</span><span class="src-sym">, </span><span class="src-str">"; ?>"</span><span class="src-sym">, </span><span class="src-var">$contenu</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a71"></a> <span class="src-key">return </span><span class="src-var">$contenu</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a72"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a73"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a74"></a><span class="src-php">?></span></div></li> |
</ol> |
</div> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:36 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/__filesource/fsource_Framework__Registre.php.html |
---|
New file |
0,0 → 1,147 |
<html> |
<head> |
<title>File Source for Registre.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1 align="center">Source for file Registre.php</h1> |
<p>Documentation is available at <a href="../Framework/_Registre.php.html">Registre.php</a></p> |
<div class="src-code"> |
<ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Classe registre, qui permet un accès à différentes variables à travers les autres classes.</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> * C'est un singleton</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc">* PHP Version 5</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc">*</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc">* </span><span class="src-doc-coretag">@category</span><span class="src-doc"> Class</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc">* </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc">* </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal Milcent <jmp@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc">* </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2009 Tela-Botanica</span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc">* </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL</span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc">* </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.gnu.org/licenses/gpl.html Licence GNU-GPL</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc">* </span><span class="src-doc-coretag">@version</span><span class="src-doc"> SVN: $$Id: Registre.php 120 2009-09-01 12:21:14Z aurelien $$</span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc">* </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc">*</span></div></li> |
<li><div class="src-line"><a name="a18"></a><span class="src-doc">*/</span></div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-key">class </span><a href="../Framework/Registre.html">Registre</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a20"></a> </div></li> |
<li><div class="src-line"><a name="a21"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a22"></a><span class="src-doc"> * Tableau associatif stockant les variables</span></div></li> |
<li><div class="src-line"><a name="a23"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a24"></a> <span class="src-key">private </span><span class="src-var">$stockage </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a25"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a26"></a><span class="src-doc"> * La classe registre se contient elle-même, (pour le pattern singleton)</span></div></li> |
<li><div class="src-line"><a name="a27"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a28"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$registre</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a29"></a> </div></li> |
<li><div class="src-line"><a name="a30"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a31"></a><span class="src-doc"> * Constructeur par défaut, privé, car on accède à la classe par le getInstance</span></div></li> |
<li><div class="src-line"><a name="a32"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a33"></a> <span class="src-key">private </span><span class="src-key">function </span><span class="src-id">__construct</span><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a35"></a> </div></li> |
<li><div class="src-line"><a name="a36"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a37"></a><span class="src-doc"> * Fonction qui renvoie l'instance de classe en assurant son unicité, c'est l'unique méthode qui doit être</span></div></li> |
<li><div class="src-line"><a name="a38"></a><span class="src-doc"> * utilisée pour récupérer l'objet Registre</span></div></li> |
<li><div class="src-line"><a name="a39"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a40"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Registre.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a41"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$registre </span>instanceof <span class="src-id">Registre</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a42"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$registre</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a43"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a44"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$registre </span>= <span class="src-key">new </span><span class="src-id">Registre</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a45"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$registre</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a46"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a47"></a> </div></li> |
<li><div class="src-line"><a name="a48"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a49"></a><span class="src-doc"> * Ajoute un objet au tableau selon un intitulé donné</span></div></li> |
<li><div class="src-line"><a name="a50"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">l'intitulé sous lequel l'objet sera conservé</span></div></li> |
<li><div class="src-line"><a name="a51"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">mixed </span><span class="src-doc">l'objet à conserver</span></div></li> |
<li><div class="src-line"><a name="a52"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a53"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Registre.html#methodset">set</a><span class="src-sym">(</span><span class="src-var">$intitule</span><span class="src-sym">, </span><span class="src-var">$objet</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a54"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">is_array</span><span class="src-sym">(</span><span class="src-var">$objet</span><span class="src-sym">) </span>&& isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">stockage</span><span class="src-sym">[</span><span class="src-var">$intitule</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a55"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">stockage</span><span class="src-sym">[</span><span class="src-var">$intitule</span><span class="src-sym">] </span>= <a href="http://www.php.net/array_merge">array_merge</a><span class="src-sym">(</span>(array) <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">stockage</span><span class="src-sym">[</span><span class="src-var">$intitule</span><span class="src-sym">]</span><span class="src-sym">, </span>(array) <span class="src-var">$objet</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a56"></a> <span class="src-var">$message </span>= <span class="src-str">"</span><span class="src-str">Le tableau <span class="src-var">$intitule</span> présent dans le registre a été fusionné avec un nouveau tableau de même intitulé !</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a57"></a> <a href="http://www.php.net/trigger_error">trigger_error</a><span class="src-sym">(</span><span class="src-var">$message</span><span class="src-sym">, </span><span class="src-id">E_USER_WARNING</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a58"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a59"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">stockage</span><span class="src-sym">[</span><span class="src-var">$intitule</span><span class="src-sym">] </span>= <span class="src-var">$objet</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a60"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a61"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a62"></a> </div></li> |
<li><div class="src-line"><a name="a63"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a64"></a><span class="src-doc"> * Renvoie l'objet associé à l'intitulé donné en paramètre</span></div></li> |
<li><div class="src-line"><a name="a65"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">mixed </span><span class="src-doc">l'objet associé à l'intitulé ou null s'il n'est pas présent</span></div></li> |
<li><div class="src-line"><a name="a66"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a67"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Registre.html#methodget">get</a><span class="src-sym">(</span><span class="src-var">$intitule</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a68"></a> <span class="src-key">if </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">stockage</span><span class="src-sym">[</span><span class="src-var">$intitule</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a69"></a> <span class="src-key">return </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">stockage</span><span class="src-sym">[</span><span class="src-var">$intitule</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a70"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a71"></a> <span class="src-key">return </span><span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a72"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a73"></a> </div></li> |
<li><div class="src-line"><a name="a74"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a75"></a><span class="src-doc"> * Détruit l'objet associé à l'intitulé, n'a pas d'effet si il n'y a pas d'objet associé</span></div></li> |
<li><div class="src-line"><a name="a76"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a77"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Registre.html#methoddetruire">detruire</a><span class="src-sym">(</span><span class="src-var">$intitule</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a78"></a> <span class="src-key">if </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">stockage</span><span class="src-sym">[</span><span class="src-var">$intitule</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a79"></a> unset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">stockage</span><span class="src-sym">[</span><span class="src-var">$intitule</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a80"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a81"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a82"></a> </div></li> |
<li><div class="src-line"><a name="a83"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a84"></a><span class="src-doc"> * Teste si un objet est présent sous un intitulé donné</span></div></li> |
<li><div class="src-line"><a name="a85"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">boolean </span><span class="src-doc">true si un objet associé à cet intitulé est présent, false sinon</span></div></li> |
<li><div class="src-line"><a name="a86"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a87"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Registre.html#methodexiste">existe</a><span class="src-sym">(</span><span class="src-var">$intitule</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a88"></a> <span class="src-key">if</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">stockage</span><span class="src-sym">[</span><span class="src-var">$intitule</span><span class="src-sym">]</span><span class="src-sym">))</span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a89"></a> <span class="src-key">return </span><span class="src-id">true</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a90"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a91"></a> <span class="src-key">return </span><span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a92"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a93"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a94"></a><span class="src-php">?></span></div></li> |
</ol> |
</div> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:35 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/__filesource/fsource_Framework__Chronometre.php.html |
---|
New file |
0,0 → 1,205 |
<html> |
<head> |
<title>File Source for Chronometre.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1 align="center">Source for file Chronometre.php</h1> |
<p>Documentation is available at <a href="../Framework/_Chronometre.php.html">Chronometre.php</a></p> |
<div class="src-code"> |
<ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/** Classe Chronometre() - Permet de stocker et d'afficher</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * les temps d'éxécution de script.</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> * Cette classe permet de réaliser un ensemble</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> * de mesure de temps prises à</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> * différents endroits d'un script.</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> * Ces mesures peuvent ensuite être affichées au</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * sein d'un tableau XHTML.</span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> * PHP Version 5</span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> PHP</span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a18"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2009 Tela-Botanica</span></div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL</span></div></li> |
<li><div class="src-line"><a name="a20"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> Release: <package_version></span></div></li> |
<li><div class="src-line"><a name="a21"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li> |
<li><div class="src-line"><a name="a22"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a23"></a><span class="src-key">class </span><a href="../Framework/Chronometre.html">Chronometre</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a24"></a> <span class="src-comm">/*** Attributs : ***/</span></div></li> |
<li><div class="src-line"><a name="a25"></a> <span class="src-key">private </span><span class="src-var">$_temps </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a26"></a> </div></li> |
<li><div class="src-line"><a name="a27"></a> <span class="src-doc">/** Constructeur : **/</span></div></li> |
<li><div class="src-line"><a name="a28"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Chronometre.html#method__construct">__construct</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a29"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Chronometre.html#methodsetTemps">setTemps</a><span class="src-sym">(</span><span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'depart' </span>=> <a href="http://www.php.net/microtime">microtime</a><span class="src-sym">(</span><span class="src-sym">)))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a30"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a31"></a> </div></li> |
<li><div class="src-line"><a name="a32"></a> <span class="src-doc">/** Accesseurs :</span></div></li> |
<li><div class="src-line"><a name="a33"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a34"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$cle </span><span class="src-doc">la cle associée à un chronomètre particulier</span></div></li> |
<li><div class="src-line"><a name="a35"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a36"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">int </span><span class="src-doc">le temps écoulé</span></div></li> |
<li><div class="src-line"><a name="a37"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a38"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Chronometre.html#methodgetTemps">getTemps</a><span class="src-sym">(</span><span class="src-var">$cle </span>= <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a39"></a> <span class="src-var">$temps </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a40"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_null">is_null</a><span class="src-sym">(</span><span class="src-var">$cle</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a41"></a> <span class="src-var">$temps </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">_temps</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a42"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a43"></a> <span class="src-var">$temps </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">_temps</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a44"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a45"></a> <span class="src-key">return </span><span class="src-var">$temps</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a46"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a47"></a> </div></li> |
<li><div class="src-line"><a name="a48"></a> <span class="src-doc">/** Setteur pour la variable temps</span></div></li> |
<li><div class="src-line"><a name="a49"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a50"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array() </span><span class="src-doc-var">$moment </span><span class="src-doc">ajoute des points de chronométrage au tableau _temps</span></div></li> |
<li><div class="src-line"><a name="a51"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a52"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">null </span></div></li> |
<li><div class="src-line"><a name="a53"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a54"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Chronometre.html#methodsetTemps">setTemps</a><span class="src-sym">(</span><span class="src-var">$moment </span>= <span class="src-key">array </span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a55"></a> <a href="http://www.php.net/array_push">array_push</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">_temps</span><span class="src-sym">, </span><span class="src-var">$moment</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a56"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a57"></a> </div></li> |
<li><div class="src-line"><a name="a58"></a> <span class="src-comm">/*** Méthodes : ***/</span></div></li> |
<li><div class="src-line"><a name="a59"></a> </div></li> |
<li><div class="src-line"><a name="a60"></a> <span class="src-doc">/** Méthode afficherChrono() -</span></div></li> |
<li><div class="src-line"><a name="a61"></a><span class="src-doc"> * Permet d'afficher les temps d'éxécution de différentes parties d'un script.</span></div></li> |
<li><div class="src-line"><a name="a62"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a63"></a><span class="src-doc"> * Cette fonction permet d'afficher un ensemble de</span></div></li> |
<li><div class="src-line"><a name="a64"></a><span class="src-doc"> * mesure de temps prises à différents endroits d'un script.</span></div></li> |
<li><div class="src-line"><a name="a65"></a><span class="src-doc"> * Ces mesures sont affichées au sein d'un tableau XHTML</span></div></li> |
<li><div class="src-line"><a name="a66"></a><span class="src-doc"> * dont on peut controler l'indentation des balises.</span></div></li> |
<li><div class="src-line"><a name="a67"></a><span class="src-doc"> * Pour un site en production, il suffit d'ajouter un style</span></div></li> |
<li><div class="src-line"><a name="a68"></a><span class="src-doc"> * #chrono {display:none;} dans la css. De cette façon,</span></div></li> |
<li><div class="src-line"><a name="a69"></a><span class="src-doc"> * le tableau ne s'affichera pas. Le webmaster lui pourra</span></div></li> |
<li><div class="src-line"><a name="a70"></a><span class="src-doc"> * rajouter sa propre feuille de style affichant le tableau.</span></div></li> |
<li><div class="src-line"><a name="a71"></a><span class="src-doc"> * Le développeur initial de cette fonction est Loic d'Anterroches.</span></div></li> |
<li><div class="src-line"><a name="a72"></a><span class="src-doc"> * Elle a été modifiée par Jean-Pascal Milcent.</span></div></li> |
<li><div class="src-line"><a name="a73"></a><span class="src-doc"> * Elle utilise une variable gobale : $_CHRONO_</span></div></li> |
<li><div class="src-line"><a name="a74"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a75"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Loic d'Anterroches</span></div></li> |
<li><div class="src-line"><a name="a76"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a77"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a78"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc"> </span><span class="src-doc-type">int </span><span class="src-doc"> </span><span class="src-doc-var">$indentation_origine </span><span class="src-doc">l'indentation de base.</span></div></li> |
<li><div class="src-line"><a name="a79"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc"> </span><span class="src-doc-type">int </span><span class="src-doc"> </span><span class="src-doc-var">$indentation </span><span class="src-doc">le pas d'indentation.</span></div></li> |
<li><div class="src-line"><a name="a80"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string </span><span class="src-doc"> la chaine XHTML de mesure des temps.</span></div></li> |
<li><div class="src-line"><a name="a81"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a82"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Chronometre.html#methodafficherChrono">afficherChrono</a><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>= <span class="src-num">8</span><span class="src-sym">, </span><span class="src-var">$indentation </span>= <span class="src-num">4</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a83"></a> <span class="src-comm">// Création du chrono de fin</span></div></li> |
<li><div class="src-line"><a name="a84"></a> <span class="src-var">$GLOBALS</span><span class="src-sym">[</span><span class="src-str">'_SCRIPT_'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'chrono'</span><span class="src-sym">]</span><span class="src-sym">-></span><span class="src-id">setTemps</span><span class="src-sym">(</span><span class="src-key">array </span><span class="src-sym">(</span></div></li> |
<li><div class="src-line"><a name="a85"></a> <span class="src-str">'fin' </span>=> <a href="http://www.php.net/microtime">microtime</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li> |
<li><div class="src-line"><a name="a86"></a> <span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a87"></a> </div></li> |
<li><div class="src-line"><a name="a88"></a> <span class="src-comm">// Début création de l'affichage</span></div></li> |
<li><div class="src-line"><a name="a89"></a> <span class="src-var">$sortie </span>= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-var">$indentation_origine</span><span class="src-sym">) </span>.</div></li> |
<li><div class="src-line"><a name="a90"></a> <span class="src-str">'<table id="chrono" lang="fr" summary="Résultat du</span></div></li> |
<li><div class="src-line"><a name="a91"></a><span class="src-str"> chronométrage du programme affichant la page actuelle.">' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a92"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a93"></a> <span class="src-str">'<caption>Chronométrage</caption>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a94"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a95"></a> <span class="src-str">'<thead>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a96"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">2</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a97"></a> <span class="src-str">'<tr><th>Action</th><th>Temps écoulé (en s.)</th></span></div></li> |
<li><div class="src-line"><a name="a98"></a><span class="src-str"> <th>Cumul du temps écoulé (en s.)</th></tr>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a99"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a100"></a> <span class="src-str">'</thead>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a101"></a> </div></li> |
<li><div class="src-line"><a name="a102"></a> <span class="src-var">$tbody </span>= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a103"></a> <span class="src-str">'<tbody>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a104"></a> </div></li> |
<li><div class="src-line"><a name="a105"></a> <span class="src-var">$total_tps_ecoule </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a106"></a> </div></li> |
<li><div class="src-line"><a name="a107"></a> <span class="src-comm">// Récupération de la premiére mesure</span></div></li> |
<li><div class="src-line"><a name="a108"></a> <span class="src-var">$tab_depart </span>= <span class="src-sym">& </span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Chronometre.html#methodgetTemps">getTemps</a><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a109"></a> list <span class="src-sym">(</span><span class="src-var">$usec</span><span class="src-sym">, </span><span class="src-var">$sec</span><span class="src-sym">) </span>= <a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-var">$tab_depart</span><span class="src-sym">[</span><span class="src-str">'depart'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a110"></a> </div></li> |
<li><div class="src-line"><a name="a111"></a> <span class="src-comm">// Ce temps correspond à tps_fin</span></div></li> |
<li><div class="src-line"><a name="a112"></a> <span class="src-var">$tps_debut </span>= <span class="src-sym">(</span>(float) <span class="src-var">$usec </span>+ (float) <span class="src-var">$sec</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a113"></a> </div></li> |
<li><div class="src-line"><a name="a114"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Chronometre.html#methodgetTemps">getTemps</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-key">as </span><span class="src-var">$tab_temps</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a115"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$tab_temps </span><span class="src-key">as </span><span class="src-var">$cle </span>=> <span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a116"></a> list <span class="src-sym">(</span><span class="src-var">$usec</span><span class="src-sym">, </span><span class="src-var">$sec</span><span class="src-sym">) </span>= <a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-var">$valeur</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a117"></a> <span class="src-var">$tps_fin </span>= <span class="src-sym">(</span>(float) <span class="src-var">$usec </span>+ (float) <span class="src-var">$sec</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a118"></a> </div></li> |
<li><div class="src-line"><a name="a119"></a> <span class="src-var">$tps_ecoule </span>= <a href="http://www.php.net/abs">abs</a><span class="src-sym">(</span><span class="src-var">$tps_fin </span>- <span class="src-var">$tps_debut</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a120"></a> <span class="src-var">$total_tps_ecoule </span>+= <span class="src-var">$tps_ecoule</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a121"></a> </div></li> |
<li><div class="src-line"><a name="a122"></a> <span class="src-var">$tbody </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a123"></a> <span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">2</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a124"></a> <span class="src-str">'<tr>' </span>.</div></li> |
<li><div class="src-line"><a name="a125"></a> <span class="src-str">'<th>' </span>. <span class="src-var">$cle </span>. <span class="src-str">'</th>' </span>.</div></li> |
<li><div class="src-line"><a name="a126"></a> <span class="src-str">'<td>' </span>. <a href="http://www.php.net/number_format">number_format</a><span class="src-sym">(</span><span class="src-var">$tps_ecoule</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">, </span><span class="src-str">','</span><span class="src-sym">, </span><span class="src-str">' '</span><span class="src-sym">) </span>. <span class="src-str">'</td>' </span>.</div></li> |
<li><div class="src-line"><a name="a127"></a> <span class="src-str">'<td>' </span>. <a href="http://www.php.net/number_format">number_format</a><span class="src-sym">(</span><span class="src-var">$total_tps_ecoule</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">, </span><span class="src-str">','</span><span class="src-sym">, </span><span class="src-str">' '</span><span class="src-sym">) </span>. <span class="src-str">'</td>' </span>.</div></li> |
<li><div class="src-line"><a name="a128"></a> <span class="src-str">'</tr>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a129"></a> <span class="src-var">$tps_debut </span>= <span class="src-var">$tps_fin</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a130"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a131"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a132"></a> <span class="src-var">$tbody </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a133"></a> <span class="src-str">'</tbody>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a134"></a> </div></li> |
<li><div class="src-line"><a name="a135"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a136"></a> <span class="src-str">'<tfoot>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a137"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">2</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a138"></a> <span class="src-str">'<tr>' </span>.</div></li> |
<li><div class="src-line"><a name="a139"></a> <span class="src-str">'<th>' </span>. <span class="src-str">'Total du temps écoulé (en s.)' </span>. <span class="src-str">'</th>' </span>.</div></li> |
<li><div class="src-line"><a name="a140"></a> <span class="src-str">'<td colspan="2">' </span>.</div></li> |
<li><div class="src-line"><a name="a141"></a> <a href="http://www.php.net/number_format">number_format</a><span class="src-sym">(</span><span class="src-var">$total_tps_ecoule</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">, </span><span class="src-str">','</span><span class="src-sym">, </span><span class="src-str">' '</span><span class="src-sym">) </span>. <span class="src-str">'</td>' </span>.</div></li> |
<li><div class="src-line"><a name="a142"></a> <span class="src-str">'</tr>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a143"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li> |
<li><div class="src-line"><a name="a144"></a> <span class="src-str">'</tfoot>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a145"></a> <span class="src-var">$sortie </span>.= <span class="src-var">$tbody</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a146"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-var">$indentation_origine</span><span class="src-sym">) </span>.</div></li> |
<li><div class="src-line"><a name="a147"></a> <span class="src-str">'</table>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a148"></a> </div></li> |
<li><div class="src-line"><a name="a149"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a150"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a151"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a152"></a><span class="src-php">?></span></div></li> |
</ol> |
</div> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:29 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/__filesource/fsource_Framework__Config.php.html |
---|
New file |
0,0 → 1,322 |
<html> |
<head> |
<title>File Source for Config.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1 align="center">Source for file Config.php</h1> |
<p>Documentation is available at <a href="../Framework/_Config.php.html">Config.php</a></p> |
<div class="src-code"> |
<ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Config permet de charger automatiquement les fichiers ini du Framework et de l'application.</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> * Elle offre l'accès en lecture seule aux paramètres de config.</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> * C'est une Singleton.</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> * PHP Version 5</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> PHP</span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2009 Tela-Botanica</span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> GPL-v3 et CECILL-v2</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> SVN: <svn_id></span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a18"></a> </div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-key">class </span><a href="../Framework/Config.html">Config</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a20"></a> </div></li> |
<li><div class="src-line"><a name="a21"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a22"></a><span class="src-doc"> * instance de la classe pointant sur elle même (pour le pattern singleton)</span></div></li> |
<li><div class="src-line"><a name="a23"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a24"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$instance </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a25"></a> </div></li> |
<li><div class="src-line"><a name="a26"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a27"></a><span class="src-doc"> * paramètres de configuration</span></div></li> |
<li><div class="src-line"><a name="a28"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a29"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$parametres </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a30"></a> </div></li> |
<li><div class="src-line"><a name="a31"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a32"></a><span class="src-doc"> * Constructeur vide</span></div></li> |
<li><div class="src-line"><a name="a33"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-key">private </span><span class="src-key">function </span><span class="src-id">__construct</span><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a35"></a> <span class="src-comm">// Définition de paramètres avant chargement du config.ini</span></div></li> |
<li><div class="src-line"><a name="a36"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres </span>= <span class="src-key">array</span><span class="src-sym">(</span></div></li> |
<li><div class="src-line"><a name="a37"></a> <span class="src-str">'fw_fichier_config' </span>=> <span class="src-str">'config%s.ini'</span><span class="src-sym">,</span></div></li> |
<li><div class="src-line"><a name="a38"></a> <span class="src-str">'fw_chemin' </span>=> <span class="src-id">dirname</span><span class="src-sym">(</span>__FILE__<span class="src-sym">)</span>.<span class="src-id"><a href="../Framework/_autoload.inc.php.html#defineDS">DS</a></span></div></li> |
<li><div class="src-line"><a name="a39"></a> <span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a40"></a> </div></li> |
<li><div class="src-line"><a name="a41"></a> <span class="src-comm">// Chargement du fichier config.ini du Framework</span></div></li> |
<li><div class="src-line"><a name="a42"></a> <span class="src-var">$existe </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">parserFichierIni</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">[</span><span class="src-str">'fw_chemin'</span><span class="src-sym">]</span>.<span class="src-id">sprintf</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">[</span><span class="src-str">'fw_fichier_config'</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-str">''</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a43"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$existe </span>=== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a44"></a> <a href="http://www.php.net/trigger_error">trigger_error</a><span class="src-sym">(</span><span class="src-str">"Veuillez configurer le Framework en renommant le fichier config.defaut.ini en config.ini."</span><span class="src-sym">, </span><span class="src-id">E_USER_ERROR</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a45"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a46"></a> </div></li> |
<li><div class="src-line"><a name="a47"></a> <span class="src-comm">// Chargement du fichier config.ini par défaut de l'application</span></div></li> |
<li><div class="src-line"><a name="a48"></a> <span class="src-var">$chemin_config_defaut_appli </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">[</span><span class="src-str">'chemin_configurations'</span><span class="src-sym">]</span>.<span class="src-id">sprintf</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">[</span><span class="src-str">'fw_fichier_config'</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-str">''</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a49"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">parserFichierIni</span><span class="src-sym">(</span><span class="src-var">$chemin_config_defaut_appli</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a50"></a> </div></li> |
<li><div class="src-line"><a name="a51"></a> <span class="src-comm">// Chargement des fichiers config.ini contextuels</span></div></li> |
<li><div class="src-line"><a name="a52"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">PHP_SAPI </span>== <span class="src-str">'cli'</span><span class="src-sym">) </span><span class="src-sym">{</span><span class="src-comm">// mode console</span></div></li> |
<li><div class="src-line"><a name="a53"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'argv'</span><span class="src-sym">] </span><span class="src-key">as </span><span class="src-var">$cle </span>=> <span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a54"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$valeur </span>== <span class="src-str">'-contexte'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a55"></a> <span class="src-id">chargerFichierContexte</span><span class="src-sym">(</span><span class="src-var">$_SERVER</span><span class="src-sym">[</span><span class="src-str">'argv'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-sym">(</span><span class="src-var">$cle</span>+<span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a56"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a57"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a58"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a59"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span><span class="src-comm">// mode web</span></div></li> |
<li><div class="src-line"><a name="a60"></a> <span class="src-comm">// Pour Papyrus</span></div></li> |
<li><div class="src-line"><a name="a61"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'PAP_VERSION'</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a62"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">chargerFichierContexte</span><span class="src-sym">(</span><span class="src-str">'papyrus'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a63"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a64"></a> <span class="src-comm">// Via le fichie .ini par défaut de l'appli</span></div></li> |
<li><div class="src-line"><a name="a65"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><span class="src-id">existeValeur</span><span class="src-sym">(</span><span class="src-str">'info.contexte'</span><span class="src-sym">, </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a66"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">chargerFichierContexte</span><span class="src-sym">(</span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'info.contexte'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a67"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a68"></a> </div></li> |
<li><div class="src-line"><a name="a69"></a> <span class="src-comm">// Chargement du contexte présent dans le GET</span></div></li> |
<li><div class="src-line"><a name="a70"></a> <span class="src-key">if </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$_GET</span><span class="src-sym">[</span><span class="src-str">'contexte'</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a71"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">chargerFichierContexte</span><span class="src-sym">(</span><span class="src-var">$_GET</span><span class="src-sym">[</span><span class="src-str">'contexte'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a72"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a73"></a> </div></li> |
<li><div class="src-line"><a name="a74"></a> <span class="src-comm">// Chargement du contexte présent dans le POST</span></div></li> |
<li><div class="src-line"><a name="a75"></a> <span class="src-key">if </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$_POST</span><span class="src-sym">[</span><span class="src-str">'contexte'</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a76"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">chargerFichierContexte</span><span class="src-sym">(</span><span class="src-var">$_POST</span><span class="src-sym">[</span><span class="src-str">'contexte'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a77"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a78"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a79"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a80"></a> </div></li> |
<li><div class="src-line"><a name="a81"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a82"></a><span class="src-doc"> * Charge le fichier de config correspondant au contexte</span></div></li> |
<li><div class="src-line"><a name="a83"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$contexte </span><span class="src-doc">le contexte</span></div></li> |
<li><div class="src-line"><a name="a84"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a85"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">chargerFichierContexte</span><span class="src-sym">(</span><span class="src-var">$contexte</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a86"></a> <span class="src-var">$chemin_config_appli_contextuel </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">[</span><span class="src-str">'chemin_configurations'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a87"></a> <span class="src-var">$chemin_config_appli_contextuel </span>.= <span class="src-id">sprintf</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">[</span><span class="src-str">'fw_fichier_config'</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-str">'_'</span>.<span class="src-var">$contexte</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a88"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">parserFichierIni</span><span class="src-sym">(</span><span class="src-var">$chemin_config_appli_contextuel</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a89"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a90"></a> </div></li> |
<li><div class="src-line"><a name="a91"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a92"></a><span class="src-doc"> * Parse le fichier ini donné en paramètre</span></div></li> |
<li><div class="src-line"><a name="a93"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$fichier_ini </span><span class="src-doc">nom du fichier ini à parser</span></div></li> |
<li><div class="src-line"><a name="a94"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">array </span><span class="src-doc">tableau contenant les paramètres du fichier ini</span></div></li> |
<li><div class="src-line"><a name="a95"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a96"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">parserFichierIni</span><span class="src-sym">(</span><span class="src-var">$fichier_ini</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a97"></a> <span class="src-var">$retour </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a98"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/file_exists">file_exists</a><span class="src-sym">(</span><span class="src-var">$fichier_ini</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a99"></a> <span class="src-var">$ini </span>= <a href="http://www.php.net/parse_ini_file">parse_ini_file</a><span class="src-sym">(</span><span class="src-var">$fichier_ini</span><span class="src-sym">, </span><span class="src-id">true</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a100"></a> <span class="src-var">$ini </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">analyserTableauIni</span><span class="src-sym">(</span><span class="src-var">$ini</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a101"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">fusionner</span><span class="src-sym">(</span><span class="src-var">$ini</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a102"></a> <span class="src-var">$retour </span>= <span class="src-id">true</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a103"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a104"></a> <span class="src-key">return </span><span class="src-var">$retour</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a105"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a106"></a> </div></li> |
<li><div class="src-line"><a name="a107"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a108"></a><span class="src-doc"> * fusionne un tableau de paramètres avec le tableau de paramètres global</span></div></li> |
<li><div class="src-line"><a name="a109"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc-var">$ini </span><span class="src-doc">le tableau à fusionner</span></div></li> |
<li><div class="src-line"><a name="a110"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a111"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">fusionner</span><span class="src-sym">(</span><span class="src-key">array </span><span class="src-var">$ini</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a112"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres </span>= <span class="src-id">array_merge</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">, </span><span class="src-var">$ini</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a113"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a114"></a> </div></li> |
<li><div class="src-line"><a name="a115"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a116"></a><span class="src-doc"> * renvoie la valeur demandé grâce une chaine de paramètres</span></div></li> |
<li><div class="src-line"><a name="a117"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$param </span><span class="src-doc">la chaine de paramètres</span></div></li> |
<li><div class="src-line"><a name="a118"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc-var">$config </span><span class="src-doc">le tableau de paramètre</span></div></li> |
<li><div class="src-line"><a name="a119"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">la valeur de la chaine demandée</span></div></li> |
<li><div class="src-line"><a name="a120"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a121"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">getValeur</span><span class="src-sym">(</span><span class="src-var">$param</span><span class="src-sym">, </span><span class="src-var">$config</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a122"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$param </span>=== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a123"></a> <span class="src-key">return </span><span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a124"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a125"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$param</span><span class="src-sym">, </span><span class="src-str">'.'</span><span class="src-sym">) </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a126"></a> <span class="src-var">$pieces </span>= <a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">'.'</span><span class="src-sym">, </span><span class="src-var">$param</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a127"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">) </span>&& <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a128"></a> <span class="src-key">if </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a129"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a130"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getValeur</span><span class="src-sym">(</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a131"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a132"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a133"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a134"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a135"></a> <span class="src-key">if </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$param</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a136"></a> <span class="src-key">return </span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$param</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a137"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a138"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a139"></a> <span class="src-key">return </span><span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a140"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a141"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a142"></a> </div></li> |
<li><div class="src-line"><a name="a143"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a144"></a><span class="src-doc"> * Teste si param existe dans le tableau config</span></div></li> |
<li><div class="src-line"><a name="a145"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$param </span><span class="src-doc">nom du paramètre</span></div></li> |
<li><div class="src-line"><a name="a146"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc">tableau de configuration</span></div></li> |
<li><div class="src-line"><a name="a147"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a148"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">existeValeur</span><span class="src-sym">(</span><span class="src-var">$param</span><span class="src-sym">, </span><span class="src-var">$config</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a149"></a> <span class="src-var">$retour </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a150"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getValeur</span><span class="src-sym">(</span><span class="src-var">$param</span><span class="src-sym">, </span><span class="src-var">$config</span><span class="src-sym">) </span>!== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a151"></a> <span class="src-var">$retour </span>= <span class="src-id">true</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a152"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a153"></a> <span class="src-key">return </span><span class="src-var">$retour</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a154"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a155"></a> </div></li> |
<li><div class="src-line"><a name="a156"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a157"></a><span class="src-doc"> * Vérifie si l'instance de classe à été crée, si non la crée</span></div></li> |
<li><div class="src-line"><a name="a158"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a159"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">verifierCreationInstance</span><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a160"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$instance</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a161"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$instance </span>= <span class="src-key">new </span><span class="src-id">Config</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a162"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a163"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a164"></a> </div></li> |
<li><div class="src-line"><a name="a165"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a166"></a><span class="src-doc"> * analyse un tableau de paramètres</span></div></li> |
<li><div class="src-line"><a name="a167"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc-var">$config </span><span class="src-doc">le tableau de paramètres</span></div></li> |
<li><div class="src-line"><a name="a168"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">array </span><span class="src-doc">le tableau analysé</span></div></li> |
<li><div class="src-line"><a name="a169"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a170"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">analyserTableauIni</span><span class="src-sym">(</span><span class="src-var">$config </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a171"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$config </span><span class="src-key">as </span><span class="src-var">$cle </span>=> <span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a172"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$valeur</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a173"></a> <span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">] </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">analyserTableauIni</span><span class="src-sym">(</span><span class="src-var">$valeur</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a174"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a175"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">evaluerReferences</span><span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">, </span><span class="src-var">$cle</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a176"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">evaluerPhp</span><span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">, </span><span class="src-var">$cle</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a177"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">evaluerCle</span><span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">, </span><span class="src-var">$cle</span><span class="src-sym">, </span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a178"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a179"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a180"></a> <span class="src-key">return </span><span class="src-var">$config</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a181"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a182"></a> </div></li> |
<li><div class="src-line"><a name="a183"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a184"></a><span class="src-doc"> * dans le cas des chaine de configuration à sous clé (ex.: cle.souscle)</span></div></li> |
<li><div class="src-line"><a name="a185"></a><span class="src-doc"> * evalue les valeurs correspondantes et crée les sous tableaux associés</span></div></li> |
<li><div class="src-line"><a name="a186"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc-var">$config </span><span class="src-doc">tableau de configuration (par référence)</span></div></li> |
<li><div class="src-line"><a name="a187"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$cle </span><span class="src-doc">la cle dans le tableau</span></div></li> |
<li><div class="src-line"><a name="a188"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$valeur </span><span class="src-doc">la valeur à affecter</span></div></li> |
<li><div class="src-line"><a name="a189"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a190"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">evaluerCle</span><span class="src-sym">(</span><span class="src-sym">&</span><span class="src-var">$config</span><span class="src-sym">, </span><span class="src-var">$cle</span><span class="src-sym">, </span><span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a191"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$cle</span><span class="src-sym">, </span><span class="src-str">'.'</span><span class="src-sym">) </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a192"></a> unset<span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a193"></a> <span class="src-var">$pieces </span>= <a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">'.'</span><span class="src-sym">, </span><span class="src-var">$cle</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a194"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">) </span>&& <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a195"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a196"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">] </span>=== <span class="src-str">'0' </span>&& <span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a197"></a> <span class="src-comm">// convert the current values in $config into an array</span></div></li> |
<li><div class="src-line"><a name="a198"></a> <span class="src-var">$config </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">] </span>=> <span class="src-var">$config</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a199"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a200"></a> <span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]] </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a201"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a202"></a> <span class="src-sym">} </span><span class="src-key">elseif </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a203"></a> throw <span class="src-key">new </span><span class="src-id">ErrorException</span><span class="src-sym">(</span><span class="src-str">"</span><span class="src-str">Ne peut pas créer de sous-clé pour '{<span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">}</span>' car la clé existe déjà</span><span class="src-str">"</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a204"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a205"></a> <span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]] </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">evaluerCle</span><span class="src-sym">(</span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]]</span><span class="src-sym">, </span><span class="src-var">$pieces</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-var">$valeur</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a206"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a207"></a> throw <span class="src-key">new </span><span class="src-id">ErrorException</span><span class="src-sym">(</span><span class="src-str">"</span><span class="src-str">Clé invalide '<span class="src-var">$cle</span>'</span><span class="src-str">"</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a208"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a209"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a210"></a> <span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">] </span>= <span class="src-var">$valeur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a211"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a212"></a> <span class="src-key">return </span><span class="src-var">$config</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a213"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a214"></a> </div></li> |
<li><div class="src-line"><a name="a215"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a216"></a><span class="src-doc"> * Evalue les valeurs de références à une clé dans le tableau config (cas du ref:cle)</span></div></li> |
<li><div class="src-line"><a name="a217"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc-var">$config </span><span class="src-doc">tableau de configuration</span></div></li> |
<li><div class="src-line"><a name="a218"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$cle </span><span class="src-doc">la clé dont il faut évaluer les références</span></div></li> |
<li><div class="src-line"><a name="a219"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a220"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">evaluerReferences</span><span class="src-sym">(</span><span class="src-sym">&</span><span class="src-var">$config</span><span class="src-sym">, </span><span class="src-var">$cle</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a221"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/preg_match_all">preg_match_all</a><span class="src-sym">(</span><span class="src-str">'/{ref:([A-Za-z0-9_-]+)}/'</span><span class="src-sym">, </span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-var">$correspondances</span><span class="src-sym">, </span><span class="src-id">PREG_SET_ORDER</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a222"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$correspondances </span><span class="src-key">as </span><span class="src-var">$ref</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a223"></a> <span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">] </span>= <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-var">$ref</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getValeur</span><span class="src-sym">(</span><span class="src-var">$ref</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-var">$config</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a224"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a225"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a226"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a227"></a> </div></li> |
<li><div class="src-line"><a name="a228"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a229"></a><span class="src-doc"> * Evalue le code php contenu dans un clé tu tableau config</span></div></li> |
<li><div class="src-line"><a name="a230"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc-var">$config </span><span class="src-doc">tableau de configuration (par référence)</span></div></li> |
<li><div class="src-line"><a name="a231"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$cle </span><span class="src-doc">le clé du tableau dont il faut évaluer la valeur</span></div></li> |
<li><div class="src-line"><a name="a232"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a233"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">evaluerPhp</span><span class="src-sym">(</span><span class="src-sym">&</span><span class="src-var">$config</span><span class="src-sym">, </span><span class="src-var">$cle</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a234"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'/^php:(.+)$/'</span><span class="src-sym">, </span><span class="src-var">$config</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-var">$correspondances</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a235"></a> eval<span class="src-sym">(</span><span class="src-str">'$config["'</span>.<span class="src-var">$cle</span>.<span class="src-str">'"] = '</span>.<span class="src-var">$correspondances</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span>.<span class="src-str">';'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a236"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a237"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a238"></a> </div></li> |
<li><div class="src-line"><a name="a239"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a240"></a><span class="src-doc"> * Charge un fichier ini dans le tableau des paramètres de l'appli</span></div></li> |
<li><div class="src-line"><a name="a241"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$fichier_ini </span><span class="src-doc">le nom du fichier à charger</span></div></li> |
<li><div class="src-line"><a name="a242"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">array </span><span class="src-doc">le fichier ini parsé</span></div></li> |
<li><div class="src-line"><a name="a243"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a244"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Config.html#methodcharger">charger</a><span class="src-sym">(</span><span class="src-var">$fichier_ini</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a245"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">verifierCreationInstance</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a246"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">parserFichierIni</span><span class="src-sym">(</span><span class="src-var">$fichier_ini</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a247"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a248"></a> </div></li> |
<li><div class="src-line"><a name="a249"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a250"></a><span class="src-doc"> * Acesseur pour la valeur d'un paramètre</span></div></li> |
<li><div class="src-line"><a name="a251"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$param </span><span class="src-doc">le nom du paramètre</span></div></li> |
<li><div class="src-line"><a name="a252"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">la valeur du paramètre</span></div></li> |
<li><div class="src-line"><a name="a253"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a254"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-var">$param </span>= <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a255"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">verifierCreationInstance</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a256"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getValeur</span><span class="src-sym">(</span><span class="src-var">$param</span><span class="src-sym">, </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a257"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a258"></a> </div></li> |
<li><div class="src-line"><a name="a259"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a260"></a><span class="src-doc"> * Vérifie si la valeur d'un paramètre existe</span></div></li> |
<li><div class="src-line"><a name="a261"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$param </span><span class="src-doc">le nom du paramètre</span></div></li> |
<li><div class="src-line"><a name="a262"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">boolean </span><span class="src-doc">vrai si le paramètre existe, false sinon</span></div></li> |
<li><div class="src-line"><a name="a263"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a264"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">existe</span><span class="src-sym">(</span><span class="src-var">$param</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a265"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">verifierCreationInstance</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a266"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">existeValeur</span><span class="src-sym">(</span><span class="src-var">$param</span><span class="src-sym">, </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$parametres</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a267"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a268"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a269"></a><span class="src-php">?></span></div></li> |
</ol> |
</div> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:30 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/__filesource/fsource_Framework__Modele.php.html |
---|
New file |
0,0 → 1,393 |
<html> |
<head> |
<title>File Source for Modele.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1 align="center">Source for file Modele.php</h1> |
<p>Documentation is available at <a href="../Framework/_Modele.php.html">Modele.php</a></p> |
<div class="src-code"> |
<ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc">* Classe modèle, donc d'accés au données, elle ne devrait pas être appelée de l'extérieur.</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc">* Elle fait office d'abstraction légère de base de données en utilisant diveres possibilités</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc">* d'abstraction de base de données (PDO, mysql, mysqli, sqlite)</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc">* Elle est abstraite donc doit obligatoirement être étendue.</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc">*</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc">* PHP Version 5</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc">*</span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc">* </span><span class="src-doc-coretag">@category</span><span class="src-doc"> Class</span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc">* </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc">* </span><span class="src-doc-coretag">@author</span><span class="src-doc"> aurelien <aurelien@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc">* </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2009 Tela-Botanica</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc">* </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL</span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc">* </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.gnu.org/licenses/gpl.html Licence GNU-GPL</span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc">* </span><span class="src-doc-coretag">@version</span><span class="src-doc"> SVN: $$Id: Modele.php 145 2010-03-02 17:23:09Z jpm $$</span></div></li> |
<li><div class="src-line"><a name="a18"></a><span class="src-doc">* </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-doc">*</span></div></li> |
<li><div class="src-line"><a name="a20"></a><span class="src-doc">*/</span></div></li> |
<li><div class="src-line"><a name="a21"></a><span class="src-key">abstract </span><span class="src-key">class </span><a href="../Framework/Modele.html">Modele</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a22"></a> </div></li> |
<li><div class="src-line"><a name="a23"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a24"></a><span class="src-doc"> * Mode de fetch associatif</span></div></li> |
<li><div class="src-line"><a name="a25"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a26"></a> <span class="src-key">private </span><span class="src-var">$ASSOC </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a27"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a28"></a><span class="src-doc"> * Mode de fetch objet</span></div></li> |
<li><div class="src-line"><a name="a29"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a30"></a> <span class="src-key">private </span><span class="src-var">$OBJECT </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a31"></a> </div></li> |
<li><div class="src-line"><a name="a32"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a33"></a><span class="src-doc"> * abstraction de base de données utilisée</span></div></li> |
<li><div class="src-line"><a name="a34"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a35"></a> <span class="src-key">private </span><span class="src-var">$abstraction</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a36"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a37"></a><span class="src-doc"> * registre global</span></div></li> |
<li><div class="src-line"><a name="a38"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a39"></a> <span class="src-key">private </span><span class="src-var">$registre</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a40"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a41"></a><span class="src-doc"> * DSN pour accéder à la base de données</span></div></li> |
<li><div class="src-line"><a name="a42"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a43"></a> <span class="src-key">private </span><span class="src-var">$dsn</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a44"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a45"></a><span class="src-doc"> * Type de base de données (mysql, mysqli, etc ...)</span></div></li> |
<li><div class="src-line"><a name="a46"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a47"></a> <span class="src-key">private </span><span class="src-var">$type</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a48"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a49"></a><span class="src-doc"> * Hote herbergeant la base de données</span></div></li> |
<li><div class="src-line"><a name="a50"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a51"></a> <span class="src-key">private </span><span class="src-var">$hote</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a52"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a53"></a><span class="src-doc"> * Nom de la base de données à laquelle le modèle doit se connecter</span></div></li> |
<li><div class="src-line"><a name="a54"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a55"></a> <span class="src-key">private </span><span class="src-var">$bdd_nom</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a56"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a57"></a><span class="src-doc"> * Nom d'utilisateur</span></div></li> |
<li><div class="src-line"><a name="a58"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a59"></a> <span class="src-key">private </span><span class="src-var">$utilisateur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a60"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a61"></a><span class="src-doc"> * Mot de passe</span></div></li> |
<li><div class="src-line"><a name="a62"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a63"></a> <span class="src-key">private </span><span class="src-var">$pass</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a64"></a> </div></li> |
<li><div class="src-line"><a name="a65"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a66"></a><span class="src-doc"> * Encodage de la base de données</span></div></li> |
<li><div class="src-line"><a name="a67"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a68"></a> <span class="src-key">private </span><span class="src-var">$encodage </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a69"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a70"></a><span class="src-doc"> * Connexion à la base de données</span></div></li> |
<li><div class="src-line"><a name="a71"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a72"></a> <span class="src-key">private </span><span class="src-var">$connexion </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a73"></a> </div></li> |
<li><div class="src-line"><a name="a74"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a75"></a><span class="src-doc"> * Constructeur par défaut, appelé à l'initialisation.</span></div></li> |
<li><div class="src-line"><a name="a76"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a77"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Modele.html#method__construct">__construct</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a78"></a> <span class="src-comm">// les différents paramètres nécessaires sont lus à partir du registre</span></div></li> |
<li><div class="src-line"><a name="a79"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">registre </span>= <span class="src-id"><a href="../Framework/Registre.html">Registre</a></span><span class="src-sym">::</span><a href="../Framework/Registre.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a80"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">abstraction </span>= <a href="http://www.php.net/strtolower">strtolower</a><span class="src-sym">(</span><span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'bdd_abstraction'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a81"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">type </span>= <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'bdd_protocole'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a82"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote </span>= <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'bdd_serveur'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a83"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">bdd_nom </span>= <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'bdd_nom'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a84"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">utilisateur </span>= <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'bdd_utilisateur'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a85"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">pass </span>= <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'bdd_mot_de_passe'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a86"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">encodage </span>= <span class="src-id"><a href="../Framework/Config.html">Config</a></span><span class="src-sym">::</span><a href="../Framework/Config.html#methodget">get</a><span class="src-sym">(</span><span class="src-str">'bdd_encodage'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a87"></a> </div></li> |
<li><div class="src-line"><a name="a88"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">dsn </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">type</span>.<span class="src-str">':dbname='</span>.<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">bdd_nom</span>.<span class="src-str">';host='</span>.<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a89"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Modele.html#methodinitialiserProtocole">initialiserProtocole</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a90"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a91"></a> </div></li> |
<li><div class="src-line"><a name="a92"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a93"></a><span class="src-doc"> * Connection à la base de données en utilisant les informations fournies par</span></div></li> |
<li><div class="src-line"><a name="a94"></a><span class="src-doc"> * le fichier de configuration.</span></div></li> |
<li><div class="src-line"><a name="a95"></a><span class="src-doc"> * private et final car n'a pas vocation a être appelée par l'utilisateur.</span></div></li> |
<li><div class="src-line"><a name="a96"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a97"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@throws</span><span class="src-doc"> Exception une exception dans le cas ou là connexion échoue</span></div></li> |
<li><div class="src-line"><a name="a98"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a99"></a> <span class="src-key">final </span><span class="src-key">private </span><span class="src-key">function </span><span class="src-id">connecter</span><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a100"></a> <span class="src-key">switch </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">abstraction</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a101"></a> <span class="src-key">case </span><span class="src-str">'pdo'</span>:</div></li> |
<li><div class="src-line"><a name="a102"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>= <span class="src-key">new </span><span class="src-id">PDO</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">dsn</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">utilisateur</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">pass</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a103"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a104"></a> </div></li> |
<li><div class="src-line"><a name="a105"></a> <span class="src-key">case </span><span class="src-str">'mysql'</span>:</div></li> |
<li><div class="src-line"><a name="a106"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>= <a href="http://www.php.net/mysql_connect">mysql_connect</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote</span><span class="src-sym">,</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">utilisateur</span><span class="src-sym">,</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">pass</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a107"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>!= <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a108"></a> <a href="http://www.php.net/mysql_select_db">mysql_select_db</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">bdd_nom</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a109"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a110"></a> throw <span class="src-key">new </span><span class="src-id">Exception</span><span class="src-sym">(</span><span class="src-str">'Erreur de connexion à la base de données, vérifiez les paramètres du fichier de configuration'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a111"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a112"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a113"></a> </div></li> |
<li><div class="src-line"><a name="a114"></a> <span class="src-key">case </span><span class="src-str">'mysqli'</span>:</div></li> |
<li><div class="src-line"><a name="a115"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>= <span class="src-key">new </span><span class="src-id">mysqli</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">hote</span><span class="src-sym">,</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">utilisateur</span><span class="src-sym">,</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">pass</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">bdd_nom</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a116"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a117"></a> throw <span class="src-key">new </span><span class="src-id">Exception</span><span class="src-sym">(</span><span class="src-str">'Erreur de connexion à la base de données, vérifiez les paramètres du fichier de configuration'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a118"></a> <span class="src-key">return</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a119"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a120"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a121"></a> </div></li> |
<li><div class="src-line"><a name="a122"></a> <span class="src-key">case </span><span class="src-str">'sqlite3'</span>:</div></li> |
<li><div class="src-line"><a name="a123"></a> <span class="src-comm">// cas particulier de sqllite, on considère que le nom de la base de données correspond au fichier à ouvrir</span></div></li> |
<li><div class="src-line"><a name="a124"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>= <span class="src-key">new </span><span class="src-id">SQLite3</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">bdd_nom</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a125"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a126"></a> throw <span class="src-key">new </span><span class="src-id">Exception</span><span class="src-sym">(</span><span class="src-str">'Erreur de connexion à la base de données, vérifiez les paramètres du fichier de configuration'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a127"></a> <span class="src-key">return</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a128"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a129"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a130"></a> </div></li> |
<li><div class="src-line"><a name="a131"></a> <span class="src-key">default</span>:</div></li> |
<li><div class="src-line"><a name="a132"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a133"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a134"></a> </div></li> |
<li><div class="src-line"><a name="a135"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">encodage </span>!= <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a136"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Modele.html#methodrequete">requete</a><span class="src-sym">(</span><span class="src-str">"SET names '"</span>.<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">encodage</span>.<span class="src-str">"'"</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a137"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a138"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a139"></a> </div></li> |
<li><div class="src-line"><a name="a140"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a141"></a><span class="src-doc"> * Fonction qui appelle la bonne fonction pour executer une requête suivant le type de bdd.</span></div></li> |
<li><div class="src-line"><a name="a142"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a143"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">la requete à effectuer</span></div></li> |
<li><div class="src-line"><a name="a144"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">PDOStatement </span><span class="src-doc">un objet contenant le résultat de la requête</span></div></li> |
<li><div class="src-line"><a name="a145"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a146"></a> <span class="src-key">final </span><span class="src-key">protected </span><span class="src-key">function </span><a href="../Framework/Modele.html#methodrequete">requete</a><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a147"></a> <span class="src-comm">// on ne se connecte que lors du premier appel à une requete (lazy connexion)</span></div></li> |
<li><div class="src-line"><a name="a148"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a149"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">connecter</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a150"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a151"></a> </div></li> |
<li><div class="src-line"><a name="a152"></a> <span class="src-var">$retour </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a153"></a> </div></li> |
<li><div class="src-line"><a name="a154"></a> <span class="src-key">switch </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">abstraction</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a155"></a> <span class="src-key">case </span><span class="src-str">'pdo'</span>:</div></li> |
<li><div class="src-line"><a name="a156"></a> <span class="src-var">$retour </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">query</span><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a157"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a158"></a> <span class="src-key">case </span><span class="src-str">'mysql'</span>:</div></li> |
<li><div class="src-line"><a name="a159"></a> <span class="src-var">$retour </span>= <a href="http://www.php.net/mysql_query">mysql_query</a><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">,</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a160"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a161"></a> <span class="src-key">case </span><span class="src-str">'mysqli'</span>:</div></li> |
<li><div class="src-line"><a name="a162"></a> <span class="src-var">$retour </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">query</span><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a163"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a164"></a> <span class="src-key">case </span><span class="src-str">'sqlite3'</span>:</div></li> |
<li><div class="src-line"><a name="a165"></a> <span class="src-var">$retour </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">exec</span><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a166"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a167"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a168"></a> </div></li> |
<li><div class="src-line"><a name="a169"></a> <span class="src-key">return </span><span class="src-var">$retour</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a170"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a171"></a> </div></li> |
<li><div class="src-line"><a name="a172"></a> <span class="src-key">final </span><span class="src-key">protected </span><span class="src-key">function </span><a href="../Framework/Modele.html#methodrequeteUn">requeteUn</a><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">,</span><span class="src-var">$mode </span>= <span class="src-str">'ASSOC'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a173"></a> <span class="src-comm">// Connection seulement lors du premier appel à une requete (lazy connexion)</span></div></li> |
<li><div class="src-line"><a name="a174"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a175"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">connecter</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a176"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a177"></a> </div></li> |
<li><div class="src-line"><a name="a178"></a> <span class="src-var">$retour </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a179"></a> <span class="src-key">switch </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">abstraction</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a180"></a> <span class="src-key">case </span><span class="src-str">'pdo'</span>:</div></li> |
<li><div class="src-line"><a name="a181"></a> <span class="src-var">$res_req </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">query</span><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a182"></a> <span class="src-var">$retour </span>=<span class="src-var">$res_req</span><span class="src-sym">-></span><span class="src-id">fetch</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$mode</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a183"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a184"></a> <span class="src-key">case </span><span class="src-str">'mysql'</span>:</div></li> |
<li><div class="src-line"><a name="a185"></a> <span class="src-var">$res </span>= <a href="http://www.php.net/mysql_query">mysql_query</a><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">,</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a186"></a> <span class="src-var">$fonction_fetch </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$mode</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a187"></a> <span class="src-var">$retour </span>= <span class="src-var">$fonction_fetch</span><span class="src-sym">(</span><span class="src-var">$res</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a188"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a189"></a> <span class="src-key">case </span><span class="src-str">'mysqli'</span>:</div></li> |
<li><div class="src-line"><a name="a190"></a> <span class="src-var">$res </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">query</span><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a191"></a> <span class="src-var">$fonction_fetch </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$mode</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a192"></a> <span class="src-var">$retour </span>= <span class="src-var">$res</span><span class="src-sym">-></span><span class="src-var">$fonction_fetch</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a193"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a194"></a> <span class="src-key">case </span><span class="src-str">'sqlite3'</span>:</div></li> |
<li><div class="src-line"><a name="a195"></a> <span class="src-var">$retour </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">querySingle</span><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a196"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a197"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a198"></a> </div></li> |
<li><div class="src-line"><a name="a199"></a> <span class="src-key">return </span><span class="src-var">$retour</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a200"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a201"></a> </div></li> |
<li><div class="src-line"><a name="a202"></a> </div></li> |
<li><div class="src-line"><a name="a203"></a> <span class="src-key">final </span><span class="src-key">protected </span><span class="src-key">function </span><a href="../Framework/Modele.html#methodrequeteTous">requeteTous</a><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">,</span><span class="src-var">$mode </span>= <span class="src-str">'ASSOC'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a204"></a> <span class="src-comm">// Connexion seulement lors du premier appel à une requete (lazy connexion)</span></div></li> |
<li><div class="src-line"><a name="a205"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a206"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">connecter</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a207"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a208"></a> </div></li> |
<li><div class="src-line"><a name="a209"></a> <span class="src-var">$retour </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a210"></a> </div></li> |
<li><div class="src-line"><a name="a211"></a> <span class="src-key">switch </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">abstraction</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a212"></a> <span class="src-key">case </span><span class="src-str">'pdo'</span>:</div></li> |
<li><div class="src-line"><a name="a213"></a> try <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a214"></a> <span class="src-var">$res_req </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">query</span><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a215"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$res_req </span>!== <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a216"></a> <span class="src-var">$retour </span>= <span class="src-var">$res_req</span><span class="src-sym">-></span><span class="src-id">fetchAll</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$mode</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a217"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a218"></a> <span class="src-var">$retour </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a219"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a220"></a> <span class="src-sym">} </span>catch <span class="src-sym">(</span><span class="src-id">PDOException </span><span class="src-var">$e</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a221"></a> <span class="src-var">$message </span>= <span class="src-str">'Requête echec. Fichier : "%s". Ligne : "%s". Message : %s'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a222"></a> <a href="http://www.php.net/trigger_error">trigger_error</a><span class="src-sym">(</span><a href="http://www.php.net/sprintf">sprintf</a><span class="src-sym">(</span><span class="src-var">$message</span><span class="src-sym">, </span><span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getFile</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getLine</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getMessage</span><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">, </span><span class="src-id">E_USER_WARNING</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a223"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a224"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a225"></a> <span class="src-key">case </span><span class="src-str">'mysql'</span>:</div></li> |
<li><div class="src-line"><a name="a226"></a> <span class="src-var">$res </span>= <a href="http://www.php.net/mysql_query">mysql_query</a><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a227"></a> <span class="src-var">$fonction_fetch </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$mode</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a228"></a> <span class="src-key">while </span><span class="src-sym">(</span><span class="src-var">$ligne </span>= <span class="src-var">$fonction_fetch</span><span class="src-sym">(</span><span class="src-var">$res</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a229"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$ligne</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a230"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a231"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a232"></a> <span class="src-key">case </span><span class="src-str">'mysqli'</span>:</div></li> |
<li><div class="src-line"><a name="a233"></a> <span class="src-var">$res </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">query</span><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a234"></a> <span class="src-var">$function_fetch </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">$mode</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a235"></a> <span class="src-key">while </span><span class="src-sym">(</span><span class="src-var">$ligne </span>= <span class="src-var">$res</span><span class="src-sym">-></span><span class="src-var">$function_fetch</span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a236"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$ligne</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a237"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a238"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a239"></a> <span class="src-key">case </span><span class="src-str">'sqlite3'</span>:</div></li> |
<li><div class="src-line"><a name="a240"></a> <span class="src-var">$res </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">query</span><span class="src-sym">(</span><span class="src-var">$requete</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a241"></a> <span class="src-key">while </span><span class="src-sym">(</span><span class="src-var">$ligne </span>= <span class="src-var">$res</span><span class="src-sym">-></span><span class="src-id">fetch_array</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">ASSOC</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a242"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$mode </span>== <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">ASSOC</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a243"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$ligne</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a244"></a> <span class="src-sym">} </span><span class="src-key">elseif </span><span class="src-sym">(</span><span class="src-var">$mode </span>== <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">OBJECT</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a245"></a> <span class="src-comm">// cas particulier de sqllite</span></div></li> |
<li><div class="src-line"><a name="a246"></a> <span class="src-comm">// qui n'a pas de fonction fetch_object</span></div></li> |
<li><div class="src-line"><a name="a247"></a> <span class="src-var">$ligneObjet </span>= <span class="src-key">new </span><span class="src-id">stdClass</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a248"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$ligne </span><span class="src-key">as </span><span class="src-var">$colonne </span>=> <span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a249"></a> <span class="src-var">$ligneObjet</span><span class="src-sym">-></span><span class="src-var">$colonne </span>= <span class="src-var">$valeur</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a250"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a251"></a> <span class="src-var">$retour</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$ligneObjet</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a252"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a253"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a254"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a255"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a256"></a> </div></li> |
<li><div class="src-line"><a name="a257"></a> <span class="src-key">return </span><span class="src-var">$retour</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a258"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a259"></a> </div></li> |
<li><div class="src-line"><a name="a260"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a261"></a><span class="src-doc"> * protège une chaine de caractères avant l'insertion dans la base de données</span></div></li> |
<li><div class="src-line"><a name="a262"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a263"></a> <span class="src-key">final </span><span class="src-key">protected </span><span class="src-key">function </span><a href="../Framework/Modele.html#methodproteger">proteger</a><span class="src-sym">(</span><span class="src-var">$chaine</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a264"></a> </div></li> |
<li><div class="src-line"><a name="a265"></a> <span class="src-comm">// on ne se connecte que lors du premier appel à une requete</span></div></li> |
<li><div class="src-line"><a name="a266"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a267"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">connecter</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a268"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a269"></a> </div></li> |
<li><div class="src-line"><a name="a270"></a> <span class="src-var">$retour </span>= <span class="src-var">$chaine</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a271"></a> </div></li> |
<li><div class="src-line"><a name="a272"></a> <span class="src-key">switch </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">abstraction</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a273"></a> <span class="src-key">case </span><span class="src-str">'pdo'</span>:</div></li> |
<li><div class="src-line"><a name="a274"></a> <span class="src-var">$retour </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">quote</span><span class="src-sym">(</span><span class="src-var">$chaine</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a275"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a276"></a> <span class="src-key">case </span><span class="src-str">'mysql'</span>:</div></li> |
<li><div class="src-line"><a name="a277"></a> <span class="src-var">$retour </span>= <span class="src-str">'"'</span>.<a href="http://www.php.net/mysql_real_escape_string">mysql_real_escape_string</a><span class="src-sym">(</span><span class="src-var">$chaine</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">)</span>.<span class="src-str">'"'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a278"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a279"></a> <span class="src-key">case </span><span class="src-str">'mysqli'</span>:</div></li> |
<li><div class="src-line"><a name="a280"></a> <span class="src-var">$retour </span>= <span class="src-str">'"'</span>.<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">real_escape_string</span><span class="src-sym">(</span><span class="src-var">$chaine</span><span class="src-sym">)</span>.<span class="src-str">'"'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a281"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a282"></a> <span class="src-key">case </span><span class="src-str">'sqlite3'</span>:</div></li> |
<li><div class="src-line"><a name="a283"></a> <span class="src-var">$retour </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">escapeString</span><span class="src-sym">(</span><span class="src-var">$chaine</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a284"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a285"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a286"></a> </div></li> |
<li><div class="src-line"><a name="a287"></a> <span class="src-key">return </span><span class="src-var">$retour</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a288"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a289"></a> </div></li> |
<li><div class="src-line"><a name="a290"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a291"></a><span class="src-doc"> * initialise les constantes de classe à leur bonne valeur</span></div></li> |
<li><div class="src-line"><a name="a292"></a><span class="src-doc"> * et lance une exception si le protocole n'est pas bien défini</span></div></li> |
<li><div class="src-line"><a name="a293"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@throws</span><span class="src-doc"> Exception</span></div></li> |
<li><div class="src-line"><a name="a294"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a295"></a> <span class="src-key">final </span><span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Modele.html#methodinitialiserProtocole">initialiserProtocole</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a296"></a> </div></li> |
<li><div class="src-line"><a name="a297"></a> <span class="src-key">switch </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">abstraction</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a298"></a> <span class="src-key">case </span><span class="src-str">'pdo'</span>:</div></li> |
<li><div class="src-line"><a name="a299"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">ASSOC </span>= <span class="src-id">PDO</span><span class="src-sym">::</span><span class="src-id">FETCH_ASSOC</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a300"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">OBJECT </span>= <span class="src-id">PDO</span><span class="src-sym">::</span><span class="src-id">FETCH_CLASS</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a301"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a302"></a> <span class="src-key">case </span><span class="src-str">'mysql'</span>:</div></li> |
<li><div class="src-line"><a name="a303"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">ASSOC </span>= <span class="src-str">'mysql_fetch_assoc'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a304"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">OBJECT </span>= <span class="src-str">'mysql_fetch_object'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a305"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a306"></a> <span class="src-key">case </span><span class="src-str">'mysqli'</span>:</div></li> |
<li><div class="src-line"><a name="a307"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">ASSOC </span>= <span class="src-str">'fetch_assoc'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a308"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">OBJECT </span>= <span class="src-str">'fetch_object'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a309"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a310"></a> <span class="src-key">case </span><span class="src-str">'sqlite3'</span>:</div></li> |
<li><div class="src-line"><a name="a311"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">ASSOC </span>= <span class="src-str">'SQLITE3_ASSOC'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a312"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">OBJECT </span>= <span class="src-str">'SQLITE3_OBJECT'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a313"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a314"></a> <span class="src-key">default</span>:</div></li> |
<li><div class="src-line"><a name="a315"></a> throw <span class="src-key">new </span><span class="src-id">Exception</span><span class="src-sym">(</span><span class="src-str">'Erreur : l\'abstraction '</span>.<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">abstraction</span>.<span class="src-str">' n\'est pas prise en charge'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a316"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a317"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a318"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a319"></a> </div></li> |
<li><div class="src-line"><a name="a320"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a321"></a><span class="src-doc"> * Destructeur de classe, se contente de fermer explicitement la connexion</span></div></li> |
<li><div class="src-line"><a name="a322"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a323"></a> <span class="src-key">final </span><span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Modele.html#method__destruct">__destruct</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a324"></a> <span class="src-key">switch </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">abstraction</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a325"></a> <span class="src-key">case </span><span class="src-str">'pdo'</span>:</div></li> |
<li><div class="src-line"><a name="a326"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a327"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a328"></a> <span class="src-key">case </span><span class="src-str">'mysql'</span>:</div></li> |
<li><div class="src-line"><a name="a329"></a> <span class="src-key">return </span><a href="http://www.php.net/mysql_close">mysql_close</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a330"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a331"></a> <span class="src-key">case </span><span class="src-str">'mysqli'</span>:</div></li> |
<li><div class="src-line"><a name="a332"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">close</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a333"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a334"></a> <span class="src-key">case </span><span class="src-str">'sqlite3'</span>:</div></li> |
<li><div class="src-line"><a name="a335"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">connexion</span><span class="src-sym">-></span><span class="src-id">close</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a336"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a337"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a338"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a339"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a340"></a><span class="src-php">?></span></div></li> |
</ol> |
</div> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:35 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/__filesource/fsource_Framework__Debug.php.html |
---|
New file |
0,0 → 1,174 |
<html> |
<head> |
<title>File Source for Debug.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1 align="center">Source for file Debug.php</h1> |
<p>Documentation is available at <a href="../Framework/_Debug.php.html">Debug.php</a></p> |
<div class="src-code"> |
<ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Classe fournissant des fonctions de débogage équivalante à var_dump et print_r.</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> * L'affichage et l'utilisation de ces fonctions sont améliorés via cette classe.</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> * Cette classe est inspirée de la classe Zend_Debug.</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> * PHP version 5</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> Debogage</span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> // Auteur principal :</span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> // Autres auteurs :</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> GPL v3 <http://www.gnu.org/licenses/gpl.txt></span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt></span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> $$Id: Debug.php 153 2010-03-04 10:48:32Z jpm $$</span></div></li> |
<li><div class="src-line"><a name="a18"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 1999-2009 Tela Botanica (accueil@tela-botanica.org)</span></div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a20"></a><span class="src-key">class </span><a href="../Framework/Debug.html">Debug</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a21"></a> </div></li> |
<li><div class="src-line"><a name="a22"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a23"></a><span class="src-doc"> * mode de php (cli ou sapi)</span></div></li> |
<li><div class="src-line"><a name="a24"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a25"></a> <span class="src-key">protected </span><span class="src-key">static </span><span class="src-var">$mode </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a26"></a> </div></li> |
<li><div class="src-line"><a name="a27"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a28"></a><span class="src-doc"> * Accesseur pour le mode</span></div></li> |
<li><div class="src-line"><a name="a29"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">le mode de php</span></div></li> |
<li><div class="src-line"><a name="a30"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a31"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Debug.html#methodgetMode">getMode</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a32"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$mode </span>=== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a33"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$mode </span>= <span class="src-id">PHP_SAPI</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a35"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$mode</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a36"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a37"></a> </div></li> |
<li><div class="src-line"><a name="a38"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a39"></a><span class="src-doc"> * Equivalent de var_dump</span></div></li> |
<li><div class="src-line"><a name="a40"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">mixed </span><span class="src-doc-var">$variable </span><span class="src-doc">la variable à dumper</span></div></li> |
<li><div class="src-line"><a name="a41"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$mot_cle </span><span class="src-doc">le mot cle à associer à la variable</span></div></li> |
<li><div class="src-line"><a name="a42"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc-var">$echo </span><span class="src-doc">si true on affiche le résultat, si false on ne renvoie que la chaine sans l'afficher</span></div></li> |
<li><div class="src-line"><a name="a43"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">la chaine à afficher representant le dump ou null si echo</span></div></li> |
<li><div class="src-line"><a name="a44"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a45"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Debug.html#methoddump">dump</a><span class="src-sym">(</span><span class="src-var">$variable</span><span class="src-sym">, </span><span class="src-var">$mot_cle </span>= <span class="src-id">null</span><span class="src-sym">, </span><span class="src-var">$echo </span>= <span class="src-id">true</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a46"></a> <span class="src-comm">// var_dump de la variable dans un buffer et récupération de la sortie</span></div></li> |
<li><div class="src-line"><a name="a47"></a> <span class="src-id">ob_start</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a48"></a> <a href="http://www.php.net/var_dump">var_dump</a><span class="src-sym">(</span><span class="src-var">$variable</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a49"></a> <span class="src-var">$sortie </span>= <a href="http://www.php.net/ob_get_clean">ob_get_clean</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a50"></a> </div></li> |
<li><div class="src-line"><a name="a51"></a> <span class="src-comm">// Pré-traitement de la sortie</span></div></li> |
<li><div class="src-line"><a name="a52"></a> <span class="src-var">$sortie </span>= <a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span><span class="src-str">"/\]\=\>\n(\s+)/m"</span><span class="src-sym">, </span><span class="src-str">"] => "</span><span class="src-sym">, </span><span class="src-var">$sortie</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a53"></a> </div></li> |
<li><div class="src-line"><a name="a54"></a> <span class="src-comm">// Traitement général du débogage</span></div></li> |
<li><div class="src-line"><a name="a55"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">traiterDebogage</span><span class="src-sym">(</span><span class="src-var">$mot_cle</span><span class="src-sym">, </span><span class="src-var">$sortie</span><span class="src-sym">, </span><span class="src-var">$echo</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a56"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a57"></a> </div></li> |
<li><div class="src-line"><a name="a58"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a59"></a><span class="src-doc"> * Equivalent de print_r</span></div></li> |
<li><div class="src-line"><a name="a60"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">mixed </span><span class="src-doc-var">$variable </span><span class="src-doc">la variable à afficher</span></div></li> |
<li><div class="src-line"><a name="a61"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$mot_cle </span><span class="src-doc">le mot cle à associer</span></div></li> |
<li><div class="src-line"><a name="a62"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc-var">$echo </span><span class="src-doc">faire un echo ou non</span></div></li> |
<li><div class="src-line"><a name="a63"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">la chaine contenant la variable printée ou null si echo</span></div></li> |
<li><div class="src-line"><a name="a64"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a65"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/Debug.html#methodprintr">printr</a><span class="src-sym">(</span><span class="src-var">$variable</span><span class="src-sym">, </span><span class="src-var">$mot_cle </span>= <span class="src-id">null</span><span class="src-sym">, </span><span class="src-var">$echo </span>= <span class="src-id">true</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a66"></a> <span class="src-comm">// Récupération de la sortie</span></div></li> |
<li><div class="src-line"><a name="a67"></a> <span class="src-var">$sortie </span>= <a href="http://www.php.net/print_r">print_r</a><span class="src-sym">(</span><span class="src-var">$variable</span><span class="src-sym">, </span><span class="src-id">true</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a68"></a> </div></li> |
<li><div class="src-line"><a name="a69"></a> <span class="src-comm">// Traitement général du débogage</span></div></li> |
<li><div class="src-line"><a name="a70"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">traiterDebogage</span><span class="src-sym">(</span><span class="src-var">$mot_cle</span><span class="src-sym">, </span><span class="src-var">$sortie</span><span class="src-sym">, </span><span class="src-var">$echo</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a71"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a72"></a> </div></li> |
<li><div class="src-line"><a name="a73"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a74"></a><span class="src-doc"> * Traite une chaine de débogage et les mots clés associés</span></div></li> |
<li><div class="src-line"><a name="a75"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc"> </span><span class="src-doc-var">$mot_cle </span><span class="src-doc">le mot à associer à la chaine</span></div></li> |
<li><div class="src-line"><a name="a76"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc"> </span><span class="src-doc-var">$sortie </span><span class="src-doc">le chaine de debogage</span></div></li> |
<li><div class="src-line"><a name="a77"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc-var">$echo </span><span class="src-doc">faire un echo du resultat ou non</span></div></li> |
<li><div class="src-line"><a name="a78"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">la chaine de debogage formatée ou bien null si echo</span></div></li> |
<li><div class="src-line"><a name="a79"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a80"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">traiterDebogage</span><span class="src-sym">(</span><span class="src-var">$mot_cle</span><span class="src-sym">, </span><span class="src-var">$sortie</span><span class="src-sym">, </span><span class="src-var">$echo</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a81"></a> <span class="src-comm">// Formate le mot-clé</span></div></li> |
<li><div class="src-line"><a name="a82"></a> <span class="src-var">$mot_cle </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">formaterMotCle</span><span class="src-sym">(</span><span class="src-var">$mot_cle</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a83"></a> </div></li> |
<li><div class="src-line"><a name="a84"></a> <span class="src-comm">// Traitement de la sortie</span></div></li> |
<li><div class="src-line"><a name="a85"></a> <span class="src-var">$sortie </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">traiterSortieSuivantMode</span><span class="src-sym">(</span><span class="src-var">$mot_cle</span><span class="src-sym">, </span><span class="src-var">$sortie</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a86"></a> </div></li> |
<li><div class="src-line"><a name="a87"></a> <span class="src-comm">// Affichage et/ou retour</span></div></li> |
<li><div class="src-line"><a name="a88"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$echo</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a89"></a> echo <span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a90"></a> <span class="src-key">return </span><span class="src-id">null</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a91"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a92"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a93"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a94"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a95"></a> </div></li> |
<li><div class="src-line"><a name="a96"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a97"></a><span class="src-doc"> * formate un mot clé donné</span></div></li> |
<li><div class="src-line"><a name="a98"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$mot_cle </span><span class="src-doc">le mot clé à formaté</span></div></li> |
<li><div class="src-line"><a name="a99"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">le mot clé formaté ou bien un chaine vide le mot clé est null ou vide</span></div></li> |
<li><div class="src-line"><a name="a100"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a101"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">formaterMotCle</span><span class="src-sym">(</span><span class="src-var">$mot_cle</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a102"></a> <span class="src-key">return </span><span class="src-sym">(</span><span class="src-var">$mot_cle </span>=== <span class="src-id">null</span><span class="src-sym">) </span>? <span class="src-str">'' </span>: <a href="http://www.php.net/rtrim">rtrim</a><span class="src-sym">(</span><span class="src-var">$mot_cle</span><span class="src-sym">)</span>.<span class="src-str">' '</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a103"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a104"></a> </div></li> |
<li><div class="src-line"><a name="a105"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a106"></a><span class="src-doc"> * traite la sortie de la chaine de débogage suivant le mode de php</span></div></li> |
<li><div class="src-line"><a name="a107"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$mot_cle </span><span class="src-doc">le mot clé associé à la chaine</span></div></li> |
<li><div class="src-line"><a name="a108"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc"> </span><span class="src-doc-var">$sortie </span><span class="src-doc">la chaine de débogage</span></div></li> |
<li><div class="src-line"><a name="a109"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">la sortie formatée pour le mode en cours</span></div></li> |
<li><div class="src-line"><a name="a110"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a111"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">traiterSortieSuivantMode</span><span class="src-sym">(</span><span class="src-var">$mot_cle</span><span class="src-sym">, </span><span class="src-var">$sortie</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a112"></a> <span class="src-var">$corps </span>= <span class="src-var">$mot_cle</span>.<span class="src-id">PHP_EOL</span>.<span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a113"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getMode</span><span class="src-sym">(</span><span class="src-sym">) </span>== <span class="src-str">'cli'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a114"></a> <span class="src-var">$sortie </span>= <span class="src-id">PHP_EOL</span>.<span class="src-var">$corps</span>.<span class="src-id">PHP_EOL</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a115"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a116"></a> <span class="src-var">$sortie </span>= <span class="src-str">'<pre>'</span>.<span class="src-var">$corps</span>.<span class="src-str">'</pre>'</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a117"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a118"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a119"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a120"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a121"></a><span class="src-php">?></span></div></li> |
</ol> |
</div> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:32 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/__filesource/fsource_Framework__GestionnaireException.php.html |
---|
New file |
0,0 → 1,239 |
<html> |
<head> |
<title>File Source for GestionnaireException.php</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="../media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="../elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="../li_Framework.html">Framework</a><br /> |
<br /><br /> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<h1 align="center">Source for file GestionnaireException.php</h1> |
<p>Documentation is available at <a href="../Framework/_GestionnaireException.php.html">GestionnaireException.php</a></p> |
<div class="src-code"> |
<ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> |
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li> |
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Classe de gestion des exceptions.</span></div></li> |
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> * C'est un Singleton.</span></div></li> |
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> * PHP Version 5</span></div></li> |
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> Class</span></div></li> |
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li> |
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> aurelien <aurelien@tela-botanica.org></span></div></li> |
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2009 Tela-Botanica</span></div></li> |
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL</span></div></li> |
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.gnu.org/licenses/gpl.html Licence GNU-GPL</span></div></li> |
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> SVN: $$Id: GestionnaireException.php 158 2010-03-04 17:14:36Z jpm $$</span></div></li> |
<li><div class="src-line"><a name="a16"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li> |
<li><div class="src-line"><a name="a17"></a><span class="src-doc"> *</span></div></li> |
<li><div class="src-line"><a name="a18"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a19"></a><span class="src-key">class </span><a href="../Framework/GestionnaireException.html">GestionnaireException</a> <span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a20"></a> </div></li> |
<li><div class="src-line"><a name="a21"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a22"></a><span class="src-doc"> * Liste des exceptions enregistrées</span></div></li> |
<li><div class="src-line"><a name="a23"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a24"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$exceptions </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a25"></a> </div></li> |
<li><div class="src-line"><a name="a26"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a27"></a><span class="src-doc"> * Détermine si l'on affiche ou non le contexte</span></div></li> |
<li><div class="src-line"><a name="a28"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a29"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$contexte </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a30"></a> </div></li> |
<li><div class="src-line"><a name="a31"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a32"></a><span class="src-doc"> * Détermine si l'on loggue ou non les erreurs</span></div></li> |
<li><div class="src-line"><a name="a33"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a34"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$logger </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a35"></a> </div></li> |
<li><div class="src-line"><a name="a36"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a37"></a><span class="src-doc"> * Definit si php est lancé en ligne de commande ou en mode serveur</span></div></li> |
<li><div class="src-line"><a name="a38"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a39"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$mode </span>= <span class="src-id">php_sapi_name </span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a40"></a> </div></li> |
<li><div class="src-line"><a name="a41"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a42"></a><span class="src-doc"> * le gestionnaire d'exception est un singleton</span></div></li> |
<li><div class="src-line"><a name="a43"></a><span class="src-doc"> * et possède donc un "pointeur statique sur lui-même"</span></div></li> |
<li><div class="src-line"><a name="a44"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a45"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$gestionnaireException</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a46"></a> </div></li> |
<li><div class="src-line"><a name="a47"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a48"></a><span class="src-doc"> * Constructeur avec paramètres optionnel</span></div></li> |
<li><div class="src-line"><a name="a49"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">bool </span><span class="src-doc">indique si l'on veut afficher ou non le contexte des exceptions (i.e. la trace)</span></div></li> |
<li><div class="src-line"><a name="a50"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a51"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/GestionnaireException.html#method__construct">__construct</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a52"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$exceptions </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a53"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$contexte </span>= <span class="src-id">Config</span><span class="src-sym">::</span><span class="src-id">get</span><span class="src-sym">(</span><span class="src-str">'fw_debogage_contexte'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a54"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$logger </span>= <span class="src-id">Config</span><span class="src-sym">::</span><span class="src-id">get</span><span class="src-sym">(</span><span class="src-str">'fw_log_debogage'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a55"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$mode </span>= <span class="src-id">php_sapi_name</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a56"></a> </div></li> |
<li><div class="src-line"><a name="a57"></a> <a href="http://www.php.net/set_exception_handler">set_exception_handler</a><span class="src-sym">(</span><span class="src-key">array</span><span class="src-sym">(</span><a href="http://www.php.net/get_class">get_class</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">)</span><span class="src-sym">,</span><span class="src-str">'gererException'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a58"></a> <a href="http://www.php.net/set_error_handler">set_error_handler</a><span class="src-sym">(</span><span class="src-key">array</span><span class="src-sym">(</span><a href="http://www.php.net/get_class">get_class</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">)</span><span class="src-sym">,</span><span class="src-str">'gererErreur'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a59"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a60"></a> </div></li> |
<li><div class="src-line"><a name="a61"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a62"></a><span class="src-doc"> * Renvoie le booleen définissant si l'on affiche le contexte ou non</span></div></li> |
<li><div class="src-line"><a name="a63"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a64"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/GestionnaireException.html#methodgetContexte">getContexte</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a65"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$contexte</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a66"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a67"></a> </div></li> |
<li><div class="src-line"><a name="a68"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a69"></a><span class="src-doc"> * Definit si l'on veut afficher le contexte ou non</span></div></li> |
<li><div class="src-line"><a name="a70"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">bool </span><span class="src-doc">true si on veut afficher le contexte, false sinon, par défaut vaut false</span></div></li> |
<li><div class="src-line"><a name="a71"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a72"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/GestionnaireException.html#methodsetContexte">setContexte</a><span class="src-sym">(</span><span class="src-var">$contexte</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a73"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$contexte </span>= <span class="src-var">$contexte</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a74"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a75"></a> </div></li> |
<li><div class="src-line"><a name="a76"></a> <span class="src-doc">/** Fonction d'accès au singleton</span></div></li> |
<li><div class="src-line"><a name="a77"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">GestionnaireErreur </span><span class="src-doc">le gestionnaire d'exceptions courant</span></div></li> |
<li><div class="src-line"><a name="a78"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a79"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/GestionnaireException.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a80"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$gestionnaireException </span>instanceof <span class="src-id">GestionnaireException</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a81"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$gestionnaireException</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a82"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a83"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$gestionnaireException </span>= <span class="src-key">new </span><span class="src-id">GestionnaireException</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a84"></a> </div></li> |
<li><div class="src-line"><a name="a85"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$gestionnaireException</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a86"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a87"></a> </div></li> |
<li><div class="src-line"><a name="a88"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a89"></a><span class="src-doc"> * Fonction de gestion des exceptions, remplace le handler par défaut</span></div></li> |
<li><div class="src-line"><a name="a90"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">Exception </span><span class="src-doc-var">$e </span><span class="src-doc">l'exception à traiter</span></div></li> |
<li><div class="src-line"><a name="a91"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a92"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/GestionnaireException.html#methodgererException">gererException</a><span class="src-sym">(</span><span class="src-id">Exception </span><span class="src-var">$e</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a93"></a> <span class="src-comm">// pour le moment on se contente de l'ajouter au tableau et de les afficher</span></div></li> |
<li><div class="src-line"><a name="a94"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$exceptions</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$e</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a95"></a> </div></li> |
<li><div class="src-line"><a name="a96"></a> <span class="src-comm">// si on doit logger on envoie l'exception au loggeur</span></div></li> |
<li><div class="src-line"><a name="a97"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$logger</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a98"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">loggerException</span><span class="src-sym">(</span><span class="src-var">$e</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a99"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a100"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a101"></a> </div></li> |
<li><div class="src-line"><a name="a102"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a103"></a><span class="src-doc"> * Gère les erreurs en les convertissant en exceptions (remplace la fonction gestion d'erreurs native de php)</span></div></li> |
<li><div class="src-line"><a name="a104"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc-var">$niveau </span><span class="src-doc">le niveau de l'erreur</span></div></li> |
<li><div class="src-line"><a name="a105"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$message </span><span class="src-doc">le message associé à l'erreur</span></div></li> |
<li><div class="src-line"><a name="a106"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$fichier </span><span class="src-doc">le nom du fichier où l'erreur s'est produite</span></div></li> |
<li><div class="src-line"><a name="a107"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc-var">$ligne </span><span class="src-doc">la ligne où l'erreur s'est produite</span></div></li> |
<li><div class="src-line"><a name="a108"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$contexte </span><span class="src-doc">le contexte associé à l'erreur</span></div></li> |
<li><div class="src-line"><a name="a109"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a110"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/GestionnaireException.html#methodgererErreur">gererErreur</a><span class="src-sym">(</span><span class="src-var">$niveau</span><span class="src-sym">, </span><span class="src-var">$message</span><span class="src-sym">, </span><span class="src-var">$fichier</span><span class="src-sym">, </span><span class="src-var">$ligne</span><span class="src-sym">, </span><span class="src-var">$contexte</span><span class="src-sym">)</span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a111"></a> <span class="src-comm">// si aucun rapport d'erreur, on sort directement</span></div></li> |
<li><div class="src-line"><a name="a112"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/error_reporting">error_reporting</a><span class="src-sym">(</span><span class="src-sym">) </span>== <span class="src-num">0</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a113"></a> <span class="src-key">return</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a114"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a115"></a> </div></li> |
<li><div class="src-line"><a name="a116"></a> <span class="src-comm">// sinon on crée une exception</span></div></li> |
<li><div class="src-line"><a name="a117"></a> <span class="src-var">$e </span>= <span class="src-key">new </span><span class="src-id">ErrorException</span><span class="src-sym">(</span><span class="src-var">$message</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-var">$niveau</span><span class="src-sym">, </span><span class="src-var">$fichier</span><span class="src-sym">, </span><span class="src-var">$ligne</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a118"></a> <span class="src-comm">// que l'on donne au tableau d'exceptions</span></div></li> |
<li><div class="src-line"><a name="a119"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$exceptions</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$e</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a120"></a> <span class="src-comm">// on la logge si nécéssaire</span></div></li> |
<li><div class="src-line"><a name="a121"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$logger</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a122"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">loggerException</span><span class="src-sym">(</span><span class="src-var">$e</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a123"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a124"></a> <span class="src-key">return</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a125"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a126"></a> </div></li> |
<li><div class="src-line"><a name="a127"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a128"></a><span class="src-doc"> * Renvoie les exceptions au format (X)HTML</span></div></li> |
<li><div class="src-line"><a name="a129"></a><span class="src-doc"> * ou bien au format texte suivant le mode d'utilisation de PHP</span></div></li> |
<li><div class="src-line"><a name="a130"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a131"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Framework/GestionnaireException.html#methodgetExceptions">getExceptions</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a132"></a> <span class="src-var">$retour </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a133"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$exceptions </span><span class="src-key">as </span><span class="src-var">$cle </span>=> <span class="src-var">$e</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a134"></a> <span class="src-key">switch </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$mode</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a135"></a> <span class="src-key">case </span><span class="src-str">'cli' </span>:</div></li> |
<li><div class="src-line"><a name="a136"></a> <span class="src-var">$retour </span>.= <span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getMessage</span><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a137"></a> <span class="src-var">$retour </span>.= <span class="src-str">'Fichier : '</span>.<span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getFile</span><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a138"></a> <span class="src-var">$retour </span>.= <span class="src-str">'Ligne : '</span>.<span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getLine</span><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a139"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getContexte</span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a140"></a> <span class="src-var">$retour </span>.= <span class="src-str">'Contexte : '</span>.<span class="src-str">"\n"</span>.<a href="http://www.php.net/print_r">print_r</a><span class="src-sym">(</span><span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getTraceAsString</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-id">true</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a141"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a142"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a143"></a> <span class="src-key">default</span>:</div></li> |
<li><div class="src-line"><a name="a144"></a> <span class="src-var">$retour </span>.= <span class="src-str">'<pre class="debogage">'</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a145"></a> <span class="src-var">$retour </span>.= <span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getMessage</span><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a146"></a> <span class="src-var">$retour </span>.= <span class="src-str">'<span class="debogage_fichier">'</span>.<span class="src-str">'Fichier : '</span>.<span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getFile</span><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">'</span>'</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a147"></a> <span class="src-var">$retour </span>.= <span class="src-str">'<span class="debogage_ligne">'</span>.<span class="src-str">'Ligne : '</span>.<span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getLine</span><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">'</span>'</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a148"></a> <span class="src-var">$retour </span>.= <span class="src-str">'</pre>'</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a149"></a> </div></li> |
<li><div class="src-line"><a name="a150"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getContexte</span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a151"></a> <span class="src-var">$retour </span>.= <span class="src-str">'<pre>'</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a152"></a> <span class="src-var">$retour </span>.= <span class="src-str">'<strong>Contexte : </strong>'</span>.<span class="src-str">"\n"</span>.<a href="http://www.php.net/print_r">print_r</a><span class="src-sym">(</span><span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getTraceAsString</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-id">true</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a153"></a> <span class="src-var">$retour </span>.= <span class="src-str">'</pre>'</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a154"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a155"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a156"></a> <span class="src-comm">// Nous vidons le tableau des exceptions au fur et à mesure</span></div></li> |
<li><div class="src-line"><a name="a157"></a> unset<span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$exceptions</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a158"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a159"></a> <span class="src-key">return </span><span class="src-var">$retour</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a160"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a161"></a> </div></li> |
<li><div class="src-line"><a name="a162"></a> <span class="src-doc">/**</span></div></li> |
<li><div class="src-line"><a name="a163"></a><span class="src-doc"> * logge une exception donnée sous une forme lisible</span></div></li> |
<li><div class="src-line"><a name="a164"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">Exception </span><span class="src-doc"> </span><span class="src-doc-var">$e </span><span class="src-doc">l'exception à logger</span></div></li> |
<li><div class="src-line"><a name="a165"></a><span class="src-doc"> */</span></div></li> |
<li><div class="src-line"><a name="a166"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-key">function </span><span class="src-id">loggerException</span><span class="src-sym">(</span><span class="src-var">$e</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a167"></a> <span class="src-var">$erreur </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a168"></a> <span class="src-var">$erreur </span>.= <span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getMessage</span><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a169"></a> <span class="src-var">$erreur </span>.= <span class="src-str">'Fichier : '</span>.<span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getFile</span><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a170"></a> <span class="src-var">$erreur </span>.= <span class="src-str">'Ligne : '</span>.<span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getLine</span><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a171"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getContexte</span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a172"></a> <span class="src-var">$erreur </span>.= <span class="src-str">'Contexte : '</span>.<span class="src-str">"\n"</span>.<a href="http://www.php.net/print_r">print_r</a><span class="src-sym">(</span><span class="src-var">$e</span><span class="src-sym">-></span><span class="src-id">getTraceAsString</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-id">true</span><span class="src-sym">)</span>.<span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a173"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a174"></a> <span class="src-var">$erreur </span>.= <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a175"></a> <span class="src-id"><a href="../Framework/Log.html">Log</a></span><span class="src-sym">::</span><a href="../Framework/Log.html#methodajouterEntree">ajouterEntree</a><span class="src-sym">(</span><span class="src-str">'erreurs'</span><span class="src-sym">,</span><span class="src-var">$erreur</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a176"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a177"></a> </div></li> |
<li><div class="src-line"><a name="a178"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/GestionnaireException.html#method__destruct">__destruct</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a179"></a> <span class="src-comm">// Si des erreurs n'ont pas été affichée nous forçons leur affichage</span></div></li> |
<li><div class="src-line"><a name="a180"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/count">count</a><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$exceptions</span><span class="src-sym">) </span>> <span class="src-num">0</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> |
<li><div class="src-line"><a name="a181"></a> echo <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">getExceptions</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> |
<li><div class="src-line"><a name="a182"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a183"></a> <span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a184"></a> </div></li> |
<li><div class="src-line"><a name="a185"></a><span class="src-sym">}</span></div></li> |
<li><div class="src-line"><a name="a186"></a><span class="src-php">?></span></div></li> |
</ol> |
</div> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:32 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/errors.html |
---|
New file |
0,0 → 1,118 |
<html> |
<head> |
<title>phpDocumentor Parser Errors and Warnings</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="li_Framework.html">Framework</a><br /> |
<br /><br /> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<a href="#Post-parsing">Post-parsing</a><br> |
<a href="#autoload.inc.php">autoload.inc.php</a><br> |
<a href="#Chronometre.php">Chronometre.php</a><br> |
<a href="#Config.php">Config.php</a><br> |
<a href="#Controleur.php">Controleur.php</a><br> |
<a href="#Debug.php">Debug.php</a><br> |
<a href="#GestionnaireException.php">GestionnaireException.php</a><br> |
<a href="#Log.php">Log.php</a><br> |
<a href="#Modele.php">Modele.php</a><br> |
<a href="#Registre.php">Registre.php</a><br> |
<a href="#SquelettePhp.php">SquelettePhp.php</a><br> |
<a href="#Url.php">Url.php</a><br> |
<a name="Application.php"></a> |
<h1>Application.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 17</b> - DocBlock would be page-level, but precedes class "Application", use another DocBlock to document the file<br> |
<b>Warning on line 17</b> - package Framework is already in category php5, will now replace with category Debogage<br> |
<a name="autoload.inc.php"></a> |
<h1>autoload.inc.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 21</b> - package Framework is already in category Class, will now replace with category Fichier_De_Fonctions<br> |
<b>Warning on line 22</b> - Page-level DocBlock precedes "define DS", use another DocBlock to document the source element<br> |
<a name="Chronometre.php"></a> |
<h1>Chronometre.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 22</b> - DocBlock would be page-level, but precedes class "Chronometre", use another DocBlock to document the file<br> |
<b>Warning on line 22</b> - package Framework is already in category Class, will now replace with category PHP<br> |
<a name="Config.php"></a> |
<h1>Config.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 18</b> - package Framework is already in category php5, will now replace with category PHP<br> |
<b>Warning on line 18</b> - DocBlock would be page-level, but precedes class "Config", use another DocBlock to document the file<br> |
<a name="Controleur.php"></a> |
<h1>Controleur.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 18</b> - package Framework is already in category Php5, will now replace with category php5<br> |
<b>Warning on line 18</b> - DocBlock would be page-level, but precedes class "Controleur", use another DocBlock to document the file<br> |
<a name="Debug.php"></a> |
<h1>Debug.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 19</b> - DocBlock would be page-level, but precedes class "Debug", use another DocBlock to document the file<br> |
<b>Warning on line 19</b> - package Framework is already in category Class, will now replace with category Debogage<br> |
<a name="GestionnaireException.php"></a> |
<h1>GestionnaireException.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 18</b> - package Framework is already in category Fichier_De_Fonctions, will now replace with category Class<br> |
<b>Warning on line 18</b> - DocBlock would be page-level, but precedes class "GestionnaireException", use another DocBlock to document the file<br> |
<a name="Log.php"></a> |
<h1>Log.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 16</b> - DocBlock would be page-level, but precedes class "Log", use another DocBlock to document the file<br> |
<b>Warning on line 16</b> - package Framework is already in category Debogage, will now replace with category PHP<br> |
<a name="Modele.php"></a> |
<h1>Modele.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 20</b> - DocBlock would be page-level, but precedes class "Modele", use another DocBlock to document the file<br> |
<b>Warning on line 20</b> - package Framework is already in category PHP, will now replace with category Class<br> |
<a name="Registre.php"></a> |
<h1>Registre.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 18</b> - DocBlock would be page-level, but precedes class "Registre", use another DocBlock to document the file<br> |
<b>Warning on line 18</b> - package Framework is already in category PHP, will now replace with category Class<br> |
<a name="SquelettePhp.php"></a> |
<h1>SquelettePhp.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 15</b> - package Framework is already in category Debogage, will now replace with category php5<br> |
<b>Warning on line 15</b> - DocBlock would be page-level, but precedes class "SquelettePhp", use another DocBlock to document the file<br> |
<a name="Url.php"></a> |
<h1>Url.php</h1> |
<h2>Warnings:</h2><br> |
<b>Warning on line 20</b> - package Framework is already in category php, will now replace with category Php5<br> |
<b>Warning on line 21</b> - DocBlock would be page-level, but precedes class "Url", use another DocBlock to document the file<br> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:38 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/media/style.css |
---|
New file |
0,0 → 1,195 |
.php { |
padding: 1em; |
} |
.php-src { font-family: 'Courier New', Courier, monospace; font-weight: normal; } |
body |
{ |
color: #000000; |
background-color: #ffffff; |
background-image: url("background.png"); |
background-repeat: repeat-y; |
font-family: tahoma, verdana, arial, sans-serif; |
font-size: 10pt; |
margin: 0; |
padding: 0; |
} |
a |
{ |
color: #000099; |
background-color: transparent; |
text-decoration: none; |
} |
a:hover |
{ |
text-decoration: underline; |
} |
a.menu |
{ |
color: #ffffff; |
background-color: transparent; |
} |
td |
{ |
font-size: 10pt; |
} |
td.header_top |
{ |
color: #ffffff; |
background-color: #9999cc; |
font-size: 16pt; |
font-weight: bold; |
text-align: right; |
padding: 10px; |
} |
td.header_line |
{ |
color: #ffffff; |
background-color: #333366; |
} |
td.header_menu |
{ |
color: #ffffff; |
background-color: #666699; |
font-size: 8pt; |
text-align: right; |
padding: 2px; |
padding-right: 5px; |
} |
td.menu |
{ |
padding: 2px; |
padding-left: 5px; |
} |
td.code_border |
{ |
color: #000000; |
background-color: #c0c0c0; |
} |
td.code |
{ |
color: #000000; |
background-color: #f0f0f0; |
} |
td.type |
{ |
font-style: italic; |
} |
div.credit |
{ |
font-size: 8pt; |
text-align: center; |
} |
div.package |
{ |
padding-left: 5px; |
} |
div.tags |
{ |
padding-left: 15px; |
} |
div.function |
{ |
padding-left: 15px; |
} |
div.top |
{ |
font-size: 8pt; |
} |
div.warning |
{ |
color: #ff0000; |
background-color: transparent; |
} |
div.description |
{ |
padding-left: 15px; |
} |
hr |
{ |
height: 1px; |
border-style: solid; |
border-color: #c0c0c0; |
margin-top: 10px; |
margin-bottom: 10px; |
} |
span.smalllinenumber |
{ |
font-size: 8pt; |
} |
ul { |
margin-left: 0px; |
padding-left: 8px; |
} |
/* Syntax highlighting */ |
.src-code { background-color: #f5f5f5; border: 1px solid #ccc9a4; padding: 0 0 0 1em; margin : 0px; |
font-family: 'Courier New', Courier, monospace; font-weight: normal; } |
.src-line { font-family: 'Courier New', Courier, monospace; font-weight: normal; } |
.src-comm { color: green; } |
.src-id { } |
.src-inc { color: #0000FF; } |
.src-key { color: #0000FF; } |
.src-num { color: #CC0000; } |
.src-str { color: #66cccc; } |
.src-sym { font-weight: bold; } |
.src-var { } |
.src-php { font-weight: bold; } |
.src-doc { color: #009999 } |
.src-doc-close-template { color: #0000FF } |
.src-doc-coretag { color: #0099FF; font-weight: bold } |
.src-doc-inlinetag { color: #0099FF } |
.src-doc-internal { color: #6699cc } |
.src-doc-tag { color: #0080CC } |
.src-doc-template { color: #0000FF } |
.src-doc-type { font-style: italic } |
.src-doc-var { font-style: italic } |
.tute-tag { color: #009999 } |
.tute-attribute-name { color: #0000FF } |
.tute-attribute-value { color: #0099FF } |
.tute-entity { font-weight: bold; } |
.tute-comment { font-style: italic } |
.tute-inline-tag { color: #636311; font-weight: bold } |
/* tutorial */ |
.authors { } |
.author { font-style: italic; font-weight: bold } |
.author-blurb { margin: .5em 0em .5em 2em; font-size: 85%; font-weight: normal; font-style: normal } |
.example { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; } |
.listing { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; white-space: nowrap; } |
.release-info { font-size: 85%; font-style: italic; margin: 1em 0em } |
.ref-title-box { } |
.ref-title { } |
.ref-purpose { font-style: italic; color: #666666 } |
.ref-synopsis { } |
.title { font-weight: bold; margin: 1em 0em 0em 0em; padding: .25em; border: 2px solid #999999; background-color: #9999CC } |
.cmd-synopsis { margin: 1em 0em } |
.cmd-title { font-weight: bold } |
.toc { margin-left: 2em; padding-left: 0em } |
/trunk/doc/HTMLSmartyConverter/media/empty.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
/trunk/doc/HTMLSmartyConverter/media/empty.png |
---|
New file |
Property changes: |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/trunk/doc/HTMLSmartyConverter/media/background.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
/trunk/doc/HTMLSmartyConverter/media/background.png |
---|
New file |
Property changes: |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/trunk/doc/HTMLSmartyConverter/elementindex_Framework.html |
---|
New file |
0,0 → 1,460 |
<html> |
<head> |
<title>Package Framework Element Index</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="Framework/Application.html">Application</a><br /> |
<a href="Framework/Chronometre.html">Chronometre</a><br /> |
<a href="Framework/Config.html">Config</a><br /> |
<a href="Framework/Controleur.html">Controleur</a><br /> |
<a href="Framework/Debug.html">Debug</a><br /> |
<a href="Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="Framework/Log.html">Log</a><br /> |
<a href="Framework/Modele.html">Modele</a><br /> |
<a href="Framework/Registre.html">Registre</a><br /> |
<a href="Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<a name="top"></a> |
<h1>Element index for package Framework</h1> |
[ <a href="elementindex_Framework.html#a">a</a> ] |
[ <a href="elementindex_Framework.html#c">c</a> ] |
[ <a href="elementindex_Framework.html#d">d</a> ] |
[ <a href="elementindex_Framework.html#e">e</a> ] |
[ <a href="elementindex_Framework.html#g">g</a> ] |
[ <a href="elementindex_Framework.html#i">i</a> ] |
[ <a href="elementindex_Framework.html#l">l</a> ] |
[ <a href="elementindex_Framework.html#m">m</a> ] |
[ <a href="elementindex_Framework.html#n">n</a> ] |
[ <a href="elementindex_Framework.html#o">o</a> ] |
[ <a href="elementindex_Framework.html#p">p</a> ] |
[ <a href="elementindex_Framework.html#r">r</a> ] |
[ <a href="elementindex_Framework.html#s">s</a> ] |
[ <a href="elementindex_Framework.html#u">u</a> ] |
[ <a href="elementindex_Framework.html#v">v</a> ] |
[ <a href="elementindex_Framework.html#_">_</a> ] |
<hr /> |
<a name="_"></a> |
<div> |
<h2>_</h2> |
<dl> |
<dt><b>__construct</b></dt> |
<dd>in file Chronometre.php, method <a href="Framework/Chronometre.html#method__construct">Chronometre::__construct()</a><br> Constructeur : *</dd> |
<dt><b>__construct</b></dt> |
<dd>in file Modele.php, method <a href="Framework/Modele.html#method__construct">Modele::__construct()</a><br> Constructeur par défaut, appelé à l'initialisation.</dd> |
<dt><b>__construct</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#method__construct">Url::__construct()</a></dd> |
<dt><b>__construct</b></dt> |
<dd>in file GestionnaireException.php, method <a href="Framework/GestionnaireException.html#method__construct">GestionnaireException::__construct()</a><br> Constructeur avec paramètres optionnel</dd> |
<dt><b>__construct</b></dt> |
<dd>in file Controleur.php, method <a href="Framework/Controleur.html#method__construct">Controleur::__construct()</a><br> Constructeur par défaut</dd> |
<dt><b>__destruct</b></dt> |
<dd>in file Modele.php, method <a href="Framework/Modele.html#method__destruct">Modele::__destruct()</a><br> Destructeur de classe, se contente de fermer explicitement la connexion</dd> |
<dt><b>__destruct</b></dt> |
<dd>in file Log.php, method <a href="Framework/Log.html#method__destruct">Log::__destruct()</a><br> destructeur de classe, ferme les descripteurs ouverts</dd> |
<dt><b>__destruct</b></dt> |
<dd>in file GestionnaireException.php, method <a href="Framework/GestionnaireException.html#method__destruct">GestionnaireException::__destruct()</a></dd> |
<dt><b>__toString</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#method__toString">Url::__toString()</a></dd> |
</dl> |
</div> |
<a href="elementindex_Framework.html#top">top</a><br> |
<hr /> |
<a name="a"></a> |
<div> |
<h2>a</h2> |
<dl> |
<dt><b>afficherChrono</b></dt> |
<dd>in file Chronometre.php, method <a href="Framework/Chronometre.html#methodafficherChrono">Chronometre::afficherChrono()</a><br> Méthode afficherChrono() - Permet d'afficher les temps d'éxécution de différentes parties d'un script.</dd> |
<dt><b>ajouterEntree</b></dt> |
<dd>in file Log.php, method <a href="Framework/Log.html#methodajouterEntree">Log::ajouterEntree()</a><br> Ajoute une entrée au log spécifié par le paramètre $nomFichier</dd> |
<dt><b>analyser</b></dt> |
<dd>in file SquelettePhp.php, method <a href="Framework/SquelettePhp.html#methodanalyser">SquelettePhp::analyser()</a><br> Fonction prenant en paramètre un chemin de fichier squelette et un tableau associatif de données, en extrait les variables, charge le squelette et retourne le résultat des deux combinés.</dd> |
<dt><b>Application</b></dt> |
<dd>in file Application.php, class <a href="Framework/Application.html">Application</a><br> Classe fournissant des informations au Framework sur l'application.</dd> |
<dt><b>Application.php</b></dt> |
<dd>procedural page <a href="Framework/_Application.php.html">Application.php</a></dd> |
<dt><b>autoload.inc.php</b></dt> |
<dd>procedural page <a href="Framework/_autoload.inc.php.html">autoload.inc.php</a></dd> |
<dt><b>autoloadAppliDefaut</b></dt> |
<dd>in file autoload.inc.php, function <a href="Framework/_autoload.inc.php.html#functionautoloadAppliDefaut">autoloadAppliDefaut()</a></dd> |
<dt><b>autoloadFw</b></dt> |
<dd>in file autoload.inc.php, function <a href="Framework/_autoload.inc.php.html#functionautoloadFw">autoloadFw()</a></dd> |
</dl> |
</div> |
<a href="elementindex_Framework.html#top">top</a><br> |
<hr /> |
<a name="c"></a> |
<div> |
<h2>c</h2> |
<dl> |
<dt><b>charger</b></dt> |
<dd>in file Config.php, method <a href="Framework/Config.html#methodcharger">Config::charger()</a><br> Charge un fichier ini dans le tableau des paramètres de l'appli</dd> |
<dt><b>chargerModele</b></dt> |
<dd>in file Controleur.php, method <a href="Framework/Controleur.html#methodchargerModele">Controleur::chargerModele()</a><br> Charge un modele donné et le rend disponible sous la forme $this->nom_modele</dd> |
<dt><b>chargerVue</b></dt> |
<dd>in file Controleur.php, method <a href="Framework/Controleur.html#methodchargerVue">Controleur::chargerVue()</a><br> Fonction prenant en paramètre le nom d'un squelette et un tableau associatif de données, en extrait les variables, charge le squelette et crée une variable de classe portant le nom du squelette contenant les deux combinés.</dd> |
<dt><b>Chronometre</b></dt> |
<dd>in file Chronometre.php, class <a href="Framework/Chronometre.html">Chronometre</a><br> Classe Chronometre() - Permet de stocker et d'afficher les temps d'éxécution de script.</dd> |
<dt><b>Chronometre.php</b></dt> |
<dd>procedural page <a href="Framework/_Chronometre.php.html">Chronometre.php</a></dd> |
<dt><b>Config</b></dt> |
<dd>in file Config.php, class <a href="Framework/Config.html">Config</a><br> Config permet de charger automatiquement les fichiers ini du Framework et de l'application.</dd> |
<dt><b>Config.php</b></dt> |
<dd>procedural page <a href="Framework/_Config.php.html">Config.php</a></dd> |
<dt><b>Controleur</b></dt> |
<dd>in file Controleur.php, class <a href="Framework/Controleur.html">Controleur</a><br> Classe Controleur, coeur d'une application, c'est normalement la seule classe d'une application qui devrait être appelée de l'extérieur.</dd> |
<dt><b>Controleur.php</b></dt> |
<dd>procedural page <a href="Framework/_Controleur.php.html">Controleur.php</a></dd> |
</dl> |
</div> |
<a href="elementindex_Framework.html#top">top</a><br> |
<hr /> |
<a name="d"></a> |
<div> |
<h2>d</h2> |
<dl> |
<dt><b>Debug</b></dt> |
<dd>in file Debug.php, class <a href="Framework/Debug.html">Debug</a><br> Classe fournissant des fonctions de débogage équivalante à var_dump et print_r.</dd> |
<dt><b>Debug.php</b></dt> |
<dd>procedural page <a href="Framework/_Debug.php.html">Debug.php</a></dd> |
<dt><b>detruire</b></dt> |
<dd>in file Registre.php, method <a href="Framework/Registre.html#methoddetruire">Registre::detruire()</a><br> Détruit l'objet associé à l'intitulé, n'a pas d'effet si il n'y a pas d'objet associé</dd> |
<dt><b>DS</b></dt> |
<dd>in file autoload.inc.php, constant <a href="Framework/_autoload.inc.php.html#defineDS">DS</a></dd> |
<dt><b>dump</b></dt> |
<dd>in file Debug.php, method <a href="Framework/Debug.html#methoddump">Debug::dump()</a><br> Equivalent de var_dump</dd> |
</dl> |
</div> |
<a href="elementindex_Framework.html#top">top</a><br> |
<hr /> |
<a name="e"></a> |
<div> |
<h2>e</h2> |
<dl> |
<dt><b>etreAbsolue</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodetreAbsolue">Url::etreAbsolue()</a><br> Renvoie vrai ou faux suivant que l'instance en cours représente une URL relative ou absolue.</dd> |
<dt><b>existe</b></dt> |
<dd>in file Registre.php, method <a href="Framework/Registre.html#methodexiste">Registre::existe()</a><br> Teste si un objet est présent sous un intitulé donné</dd> |
<dt><b>existe</b></dt> |
<dd>in file Config.php, method <a href="Framework/Config.html#methodexiste">Config::existe()</a><br> Vérifie si la valeur d'un paramètre existe</dd> |
</dl> |
</div> |
<a href="elementindex_Framework.html#top">top</a><br> |
<hr /> |
<a name="g"></a> |
<div> |
<h2>g</h2> |
<dl> |
<dt><b>gererErreur</b></dt> |
<dd>in file GestionnaireException.php, method <a href="Framework/GestionnaireException.html#methodgererErreur">GestionnaireException::gererErreur()</a><br> Gère les erreurs en les convertissant en exceptions (remplace la fonction gestion d'erreurs native de php)</dd> |
<dt><b>gererException</b></dt> |
<dd>in file GestionnaireException.php, method <a href="Framework/GestionnaireException.html#methodgererException">GestionnaireException::gererException()</a><br> Fonction de gestion des exceptions, remplace le handler par défaut</dd> |
<dt><b>GestionnaireException</b></dt> |
<dd>in file GestionnaireException.php, class <a href="Framework/GestionnaireException.html">GestionnaireException</a><br> Classe de gestion des exceptions.</dd> |
<dt><b>GestionnaireException.php</b></dt> |
<dd>procedural page <a href="Framework/_GestionnaireException.php.html">GestionnaireException.php</a></dd> |
<dt><b>get</b></dt> |
<dd>in file Registre.php, method <a href="Framework/Registre.html#methodget">Registre::get()</a><br> Renvoie l'objet associé à l'intitulé donné en paramètre</dd> |
<dt><b>get</b></dt> |
<dd>in file Config.php, method <a href="Framework/Config.html#methodget">Config::get()</a><br> Acesseur pour la valeur d'un paramètre</dd> |
<dt><b>getAutorite</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetAutorite">Url::getAutorite()</a><br> Renvoie la partie autorité, i.e. [ infoUtilisateur "@" ] hote [ ":" port ], ou false si celle-ci est absente.</dd> |
<dt><b>getCanonique</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetCanonique">Url::getCanonique()</a><br> Renvoie une instance de Url representant l'URL canonique du script PHP en cours d'éxécution</dd> |
<dt><b>getChemin</b></dt> |
<dd>in file Application.php, method <a href="Framework/Application.html#methodgetChemin">Application::getChemin()</a><br> accesseur pour le chemin</dd> |
<dt><b>getChemin</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetChemin">Url::getChemin()</a><br> Renvoie la partie chemin (chemin) (éventuellement vide).</dd> |
<dt><b>getContexte</b></dt> |
<dd>in file GestionnaireException.php, method <a href="Framework/GestionnaireException.html#methodgetContexte">GestionnaireException::getContexte()</a><br> Renvoie le booleen définissant si l'on affiche le contexte ou non</dd> |
<dt><b>getDemande</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetDemande">Url::getDemande()</a><br> Renvoie une instance de Url representant l'URL utilisée pour récupérer la requête en cours</dd> |
<dt><b>getExceptions</b></dt> |
<dd>in file GestionnaireException.php, method <a href="Framework/GestionnaireException.html#methodgetExceptions">GestionnaireException::getExceptions()</a><br> Renvoie les exceptions au format (X)HTML</dd> |
<dt><b>getFragment</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetFragment">Url::getFragment()</a><br> Renvoie le nom du fragment, ou false si "#" n'est pas present dans l'URL.</dd> |
<dt><b>getHote</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetHote">Url::getHote()</a><br> Renvoie la partie hôte, ou false s'il n'y a pas de partie autorité, c.a.d.</dd> |
<dt><b>getInfo</b></dt> |
<dd>in file Application.php, method <a href="Framework/Application.html#methodgetInfo">Application::getInfo()</a><br> accesseur pour le tableau d'infos</dd> |
<dt><b>getInfoUtilisateur</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetInfoUtilisateur">Url::getInfoUtilisateur()</a><br> Renvoie la partie userinfio, ou false si celle-ci n'existe pas, i.e. si la partie autorité ne contient pas de "@"</dd> |
<dt><b>getInstance</b></dt> |
<dd>in file Registre.php, method <a href="Framework/Registre.html#methodgetInstance">Registre::getInstance()</a><br> Fonction qui renvoie l'instance de classe en assurant son unicité, c'est l'unique méthode qui doit être</dd> |
<dt><b>getInstance</b></dt> |
<dd>in file GestionnaireException.php, method <a href="Framework/GestionnaireException.html#methodgetInstance">GestionnaireException::getInstance()</a><br> Fonction d'accès au singleton</dd> |
<dt><b>getInstance</b></dt> |
<dd>in file Log.php, method <a href="Framework/Log.html#methodgetInstance">Log::getInstance()</a><br> Fonction qui renvoie l'instance de classe en assurant son unicité, c'est l'unique méthode qui doit être</dd> |
<dt><b>getMode</b></dt> |
<dd>in file Debug.php, method <a href="Framework/Debug.html#methodgetMode">Debug::getMode()</a><br> Accesseur pour le mode</dd> |
<dt><b>getModele</b></dt> |
<dd>in file Controleur.php, method <a href="Framework/Controleur.html#methodgetModele">Controleur::getModele()</a><br> Retourne un modele donné</dd> |
<dt><b>getMotDePasse</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetMotDePasse">Url::getMotDePasse()</a><br> renvoie la partie mot de passe de la partie infoUtilisateur (partie après le premier ":"), , ou false si aucune partie infoUtilisateur n'est définie (i.e. l'URL ne contient pas de "@" en face du nom d'hôte) ou si la partie infoUtilisateur ne contient pas de ":".</dd> |
<dt><b>getOption</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetOption">Url::getOption()</a><br> Renvoie la valeur de l'option specifiée.</dd> |
<dt><b>getPort</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetPort">Url::getPort()</a><br> Renvoie le numéro de port, ou false si aucun numéro de port n'est spécifié, i.e. le port par défaut doit utilisé.</dd> |
<dt><b>getRequete</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetRequete">Url::getRequete()</a><br> renvoie la chaine de requête (requete string) (sans le premier "?"), ou false si "?" n'est pas présent dans l'url.</dd> |
<dt><b>getSchema</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetSchema">Url::getSchema()</a><br> Retourne le schéma, c.a.d. "http" ou "urn", ou false si aucun schéma n'est spécifié, i.e. l'url est une url relative</dd> |
<dt><b>getTemps</b></dt> |
<dd>in file Chronometre.php, method <a href="Framework/Chronometre.html#methodgetTemps">Chronometre::getTemps()</a><br> Accesseurs :</dd> |
<dt><b>getURL</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetURL">Url::getURL()</a><br> Renvoie un représentation sous forme de chaine de l'URL</dd> |
<dt><b>getURLDemande</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetURLDemande">Url::getURLDemande()</a><br> Renvoie l'URL utilisée pour récupérer la requête en cours</dd> |
<dt><b>getURLNormalisee</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetURLNormalisee">Url::getURLNormalisee()</a><br> Renvoie une représentation de cette URL sous forme de chaine normalisée. Utile pour la comparaison d'URLs</dd> |
<dt><b>getUtilisateur</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetUtilisateur">Url::getUtilisateur()</a><br> renvoie la partie user de la partie infoUtilisateur (partie précédant le premier ":"), ou false si aucune partie infoUtilisateur n'est définie.</dd> |
<dt><b>getVariablesRequete</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetVariablesRequete">Url::getVariablesRequete()</a><br> Renvoie la requete string sous forme d'un tableau de variables telles qu'elles apparaitraient dans le $_GET d'un script PHP</dd> |
<dt><b>getVue</b></dt> |
<dd>in file Controleur.php, method <a href="Framework/Controleur.html#methodgetVue">Controleur::getVue()</a><br> Fonction prenant en paramètre le nom d'un squelette et un tableau associatif de données, en extrait les variables, charge le squelette et retourne le résultat des deux combinés.</dd> |
</dl> |
</div> |
<a href="elementindex_Framework.html#top">top</a><br> |
<hr /> |
<a name="i"></a> |
<div> |
<h2>i</h2> |
<dl> |
<dt><b>initialiserProtocole</b></dt> |
<dd>in file Modele.php, method <a href="Framework/Modele.html#methodinitialiserProtocole">Modele::initialiserProtocole()</a><br> initialise les constantes de classe à leur bonne valeur</dd> |
</dl> |
</div> |
<a href="elementindex_Framework.html#top">top</a><br> |
<hr /> |
<a name="l"></a> |
<div> |
<h2>l</h2> |
<dl> |
<dt><b>Log</b></dt> |
<dd>in file Log.php, class <a href="Framework/Log.html">Log</a><br> Classe permettant de logger des messages dans les fichier situés dans le dossier de log</dd> |
<dt><b>Log.php</b></dt> |
<dd>procedural page <a href="Framework/_Log.php.html">Log.php</a></dd> |
</dl> |
</div> |
<a href="elementindex_Framework.html#top">top</a><br> |
<hr /> |
<a name="m"></a> |
<div> |
<h2>m</h2> |
<dl> |
<dt><b>$mode</b></dt> |
<dd>in file Debug.php, variable <a href="Framework/Debug.html#var$mode">Debug::$mode</a><br> mode de php (cli ou sapi)</dd> |
<dt><b>Modele</b></dt> |
<dd>in file Modele.php, class <a href="Framework/Modele.html">Modele</a><br> Classe modèle, donc d'accés au données, elle ne devrait pas être appelée de l'extérieur.</dd> |
<dt><b>Modele.php</b></dt> |
<dd>procedural page <a href="Framework/_Modele.php.html">Modele.php</a></dd> |
</dl> |
</div> |
<a href="elementindex_Framework.html#top">top</a><br> |
<hr /> |
<a name="n"></a> |
<div> |
<h2>n</h2> |
<dl> |
<dt><b>normaliser</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodnormaliser">Url::normaliser()</a><br> Renvoie une instance normalisée de Url</dd> |
</dl> |
</div> |
<a href="elementindex_Framework.html#top">top</a><br> |
<hr /> |
<a name="o"></a> |
<div> |
<h2>o</h2> |
<dl> |
<dt><b>OPTION_ENCODER_CLES</b></dt> |
<dd>in file Url.php, class constant <a href="Framework/Url.html#constOPTION_ENCODER_CLES">Url::OPTION_ENCODER_CLES</a><br> URL-encoder les clés des variables dans les requêtes. Par défaut à true.</dd> |
<dt><b>OPTION_SEPARATEUR_ENTREE</b></dt> |
<dd>in file Url.php, class constant <a href="Framework/Url.html#constOPTION_SEPARATEUR_ENTREE">Url::OPTION_SEPARATEUR_ENTREE</a><br> Séparateurs de variables lors du parsing de la requête. Chaque caractère est considéré comme un séparateur. Par défaut, spécifié par le paramêtre arg_separator.input dans php.ini (par défaut "&").</dd> |
<dt><b>OPTION_SEPARATEUR_SORTIE</b></dt> |
<dd>in file Url.php, class constant <a href="Framework/Url.html#constOPTION_SEPARATEUR_SORTIE">Url::OPTION_SEPARATEUR_SORTIE</a><br> Séparateur de variables lors de la génération de la requête. Par défaut, spécifié par le paramètre arg_separator.output dans php.ini (par défaut "&").</dd> |
<dt><b>OPTION_STRICTE</b></dt> |
<dd>in file Url.php, class constant <a href="Framework/Url.html#constOPTION_STRICTE">Url::OPTION_STRICTE</a><br> Parsing strict dans resoudre() (voir RFC 3986, section 5.2.2). Par défaut à true.</dd> |
<dt><b>OPTION_UTILISER_CROCHETS</b></dt> |
<dd>in file Url.php, class constant <a href="Framework/Url.html#constOPTION_UTILISER_CROCHETS">Url::OPTION_UTILISER_CROCHETS</a><br> Répresenter les tableaux dans les requêtes en utilisant la notation php []. Par défaut à true.</dd> |
</dl> |
</div> |
<a href="elementindex_Framework.html#top">top</a><br> |
<hr /> |
<a name="p"></a> |
<div> |
<h2>p</h2> |
<dl> |
<dt><b>printr</b></dt> |
<dd>in file Debug.php, method <a href="Framework/Debug.html#methodprintr">Debug::printr()</a><br> Equivalent de print_r</dd> |
<dt><b>proteger</b></dt> |
<dd>in file Modele.php, method <a href="Framework/Modele.html#methodproteger">Modele::proteger()</a><br> protège une chaine de caractères avant l'insertion dans la base de données</dd> |
<dt><b>PS</b></dt> |
<dd>in file autoload.inc.php, constant <a href="Framework/_autoload.inc.php.html#definePS">PS</a></dd> |
</dl> |
</div> |
<a href="elementindex_Framework.html#top">top</a><br> |
<hr /> |
<a name="r"></a> |
<div> |
<h2>r</h2> |
<dl> |
<dt><b>Registre</b></dt> |
<dd>in file Registre.php, class <a href="Framework/Registre.html">Registre</a><br> Classe registre, qui permet un accès à différentes variables à travers les autres classes.</dd> |
<dt><b>Registre.php</b></dt> |
<dd>procedural page <a href="Framework/_Registre.php.html">Registre.php</a></dd> |
<dt><b>requete</b></dt> |
<dd>in file Modele.php, method <a href="Framework/Modele.html#methodrequete">Modele::requete()</a><br> Fonction qui appelle la bonne fonction pour executer une requête suivant le type de bdd.</dd> |
<dt><b>requeteTous</b></dt> |
<dd>in file Modele.php, method <a href="Framework/Modele.html#methodrequeteTous">Modele::requeteTous()</a></dd> |
<dt><b>requeteUn</b></dt> |
<dd>in file Modele.php, method <a href="Framework/Modele.html#methodrequeteUn">Modele::requeteUn()</a></dd> |
<dt><b>resoudre</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodresoudre">Url::resoudre()</a><br> Renvoie une instance de Url représentant une URL absolue relative à cette URL.</dd> |
</dl> |
</div> |
<a href="elementindex_Framework.html#top">top</a><br> |
<hr /> |
<a name="s"></a> |
<div> |
<h2>s</h2> |
<dl> |
<dt><b>set</b></dt> |
<dd>in file Registre.php, method <a href="Framework/Registre.html#methodset">Registre::set()</a><br> Ajoute un objet au tableau selon un intitulé donné</dd> |
<dt><b>setAutorite</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetAutorite">Url::setAutorite()</a></dd> |
<dt><b>setChemin</b></dt> |
<dd>in file Application.php, method <a href="Framework/Application.html#methodsetChemin">Application::setChemin()</a><br> Modificateur pour le chemin de base</dd> |
<dt><b>setChemin</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetChemin">Url::setChemin()</a></dd> |
<dt><b>setContexte</b></dt> |
<dd>in file GestionnaireException.php, method <a href="Framework/GestionnaireException.html#methodsetContexte">GestionnaireException::setContexte()</a><br> Definit si l'on veut afficher le contexte ou non</dd> |
<dt><b>setFragment</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetFragment">Url::setFragment()</a></dd> |
<dt><b>setHote</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetHote">Url::setHote()</a></dd> |
<dt><b>setInfo</b></dt> |
<dd>in file Application.php, method <a href="Framework/Application.html#methodsetInfo">Application::setInfo()</a><br> Le tableau des informations sur l'application possède les clés suivantes :</dd> |
<dt><b>setInfoUtilisateur</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetInfoUtilisateur">Url::setInfoUtilisateur()</a><br> Setteur pour la partie infoUtilisateur. Si deux argument sont passé, ils sont combinés dans la partie infoUtilisateur de cette manière username ":" password.</dd> |
<dt><b>setOption</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetOption">Url::setOption()</a><br> Met à jour la valeur de l'option spécifiée.</dd> |
<dt><b>setPort</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetPort">Url::setPort()</a></dd> |
<dt><b>setRequete</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetRequete">Url::setRequete()</a></dd> |
<dt><b>setSchema</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetSchema">Url::setSchema()</a></dd> |
<dt><b>setTemps</b></dt> |
<dd>in file Chronometre.php, method <a href="Framework/Chronometre.html#methodsetTemps">Chronometre::setTemps()</a><br> Setteur pour la variable temps</dd> |
<dt><b>setVariableRequete</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetVariableRequete">Url::setVariableRequete()</a></dd> |
<dt><b>setVariablesRequete</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetVariablesRequete">Url::setVariablesRequete()</a></dd> |
<dt><b>SquelettePhp</b></dt> |
<dd>in file SquelettePhp.php, class <a href="Framework/SquelettePhp.html">SquelettePhp</a><br> Classe SquelettePhp, traitant les squelette Php utilisant la syntaxe courte php ou pas.</dd> |
<dt><b>SquelettePhp.php</b></dt> |
<dd>procedural page <a href="Framework/_SquelettePhp.php.html">SquelettePhp.php</a></dd> |
</dl> |
</div> |
<a href="elementindex_Framework.html#top">top</a><br> |
<hr /> |
<a name="u"></a> |
<div> |
<h2>u</h2> |
<dl> |
<dt><b>unsetVariableRequete</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodunsetVariableRequete">Url::unsetVariableRequete()</a></dd> |
<dt><b>Url</b></dt> |
<dd>in file Url.php, class <a href="Framework/Url.html">Url</a><br> classe Url, gérant le découpage des paramètres, leurs modification etc...</dd> |
<dt><b>Url.php</b></dt> |
<dd>procedural page <a href="Framework/_Url.php.html">Url.php</a></dd> |
</dl> |
</div> |
<a href="elementindex_Framework.html#top">top</a><br> |
<hr /> |
<a name="v"></a> |
<div> |
<h2>v</h2> |
<dl> |
<dt><b>verifierOuvrirFichier</b></dt> |
<dd>in file Log.php, method <a href="Framework/Log.html#methodverifierOuvrirFichier">Log::verifierOuvrirFichier()</a><br> Vérifie la présence d'un fichier dans le tableau, ses droits d'écriture,</dd> |
<dt><b>viderLog</b></dt> |
<dd>in file Log.php, method <a href="Framework/Log.html#methodviderLog">Log::viderLog()</a><br> Vide un fichier log indiqué</dd> |
</dl> |
</div> |
<a href="elementindex_Framework.html#top">top</a><br> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:28 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/elementindex.html |
---|
New file |
0,0 → 1,414 |
<html> |
<head> |
<title>Element Index</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top"></td> |
</tr> |
<tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="li_Framework.html">Framework</a><br /> |
<br /><br /> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<a name="top"></a> |
<h1>Index of all elements</h1> |
[ <a href="elementindex.html#a">a</a> ] |
[ <a href="elementindex.html#c">c</a> ] |
[ <a href="elementindex.html#d">d</a> ] |
[ <a href="elementindex.html#e">e</a> ] |
[ <a href="elementindex.html#g">g</a> ] |
[ <a href="elementindex.html#i">i</a> ] |
[ <a href="elementindex.html#l">l</a> ] |
[ <a href="elementindex.html#m">m</a> ] |
[ <a href="elementindex.html#n">n</a> ] |
[ <a href="elementindex.html#o">o</a> ] |
[ <a href="elementindex.html#p">p</a> ] |
[ <a href="elementindex.html#r">r</a> ] |
[ <a href="elementindex.html#s">s</a> ] |
[ <a href="elementindex.html#u">u</a> ] |
[ <a href="elementindex.html#v">v</a> ] |
[ <a href="elementindex.html#_">_</a> ] |
<hr /> |
<a name="a"></a> |
<div> |
<h2>a</h2> |
<dl> |
<dt><b>afficherChrono</b></dt> |
<dd>in file Chronometre.php, method <a href="Framework/Chronometre.html#methodafficherChrono">Chronometre::afficherChrono()</a><br> Méthode afficherChrono() - Permet d'afficher les temps d'éxécution de différentes parties d'un script.</dd> |
<dt><b>ajouterEntree</b></dt> |
<dd>in file Log.php, method <a href="Framework/Log.html#methodajouterEntree">Log::ajouterEntree()</a><br> Ajoute une entrée au log spécifié par le paramètre $nomFichier</dd> |
<dt><b>analyser</b></dt> |
<dd>in file SquelettePhp.php, method <a href="Framework/SquelettePhp.html#methodanalyser">SquelettePhp::analyser()</a><br> Fonction prenant en paramètre un chemin de fichier squelette et un tableau associatif de données, en extrait les variables, charge le squelette et retourne le résultat des deux combinés.</dd> |
<dt><b>Application</b></dt> |
<dd>in file Application.php, class <a href="Framework/Application.html">Application</a><br> Classe fournissant des informations au Framework sur l'application.</dd> |
<dt><b>Application.php</b></dt> |
<dd>procedural page <a href="Framework/_Application.php.html">Application.php</a></dd> |
<dt><b>autoload.inc.php</b></dt> |
<dd>procedural page <a href="Framework/_autoload.inc.php.html">autoload.inc.php</a></dd> |
<dt><b>autoloadAppliDefaut</b></dt> |
<dd>in file autoload.inc.php, function <a href="Framework/_autoload.inc.php.html#functionautoloadAppliDefaut">autoloadAppliDefaut()</a></dd> |
<dt><b>autoloadFw</b></dt> |
<dd>in file autoload.inc.php, function <a href="Framework/_autoload.inc.php.html#functionautoloadFw">autoloadFw()</a></dd> |
</dl> |
</div> |
<a href="elementindex.html#top">top</a><br> |
<hr /> |
<a name="c"></a> |
<div> |
<h2>c</h2> |
<dl> |
<dt><b>charger</b></dt> |
<dd>in file Config.php, method <a href="Framework/Config.html#methodcharger">Config::charger()</a><br> Charge un fichier ini dans le tableau des paramètres de l'appli</dd> |
<dt><b>chargerModele</b></dt> |
<dd>in file Controleur.php, method <a href="Framework/Controleur.html#methodchargerModele">Controleur::chargerModele()</a><br> Charge un modele donné et le rend disponible sous la forme $this->nom_modele</dd> |
<dt><b>chargerVue</b></dt> |
<dd>in file Controleur.php, method <a href="Framework/Controleur.html#methodchargerVue">Controleur::chargerVue()</a><br> Fonction prenant en paramètre le nom d'un squelette et un tableau associatif de données, en extrait les variables, charge le squelette et crée une variable de classe portant le nom du squelette contenant les deux combinés.</dd> |
<dt><b>Chronometre</b></dt> |
<dd>in file Chronometre.php, class <a href="Framework/Chronometre.html">Chronometre</a><br> Classe Chronometre() - Permet de stocker et d'afficher les temps d'éxécution de script.</dd> |
<dt><b>Chronometre.php</b></dt> |
<dd>procedural page <a href="Framework/_Chronometre.php.html">Chronometre.php</a></dd> |
<dt><b>Config</b></dt> |
<dd>in file Config.php, class <a href="Framework/Config.html">Config</a><br> Config permet de charger automatiquement les fichiers ini du Framework et de l'application.</dd> |
<dt><b>Config.php</b></dt> |
<dd>procedural page <a href="Framework/_Config.php.html">Config.php</a></dd> |
<dt><b>Controleur</b></dt> |
<dd>in file Controleur.php, class <a href="Framework/Controleur.html">Controleur</a><br> Classe Controleur, coeur d'une application, c'est normalement la seule classe d'une application qui devrait être appelée de l'extérieur.</dd> |
<dt><b>Controleur.php</b></dt> |
<dd>procedural page <a href="Framework/_Controleur.php.html">Controleur.php</a></dd> |
</dl> |
</div> |
<a href="elementindex.html#top">top</a><br> |
<hr /> |
<a name="d"></a> |
<div> |
<h2>d</h2> |
<dl> |
<dt><b>Debug</b></dt> |
<dd>in file Debug.php, class <a href="Framework/Debug.html">Debug</a><br> Classe fournissant des fonctions de débogage équivalante à var_dump et print_r.</dd> |
<dt><b>Debug.php</b></dt> |
<dd>procedural page <a href="Framework/_Debug.php.html">Debug.php</a></dd> |
<dt><b>detruire</b></dt> |
<dd>in file Registre.php, method <a href="Framework/Registre.html#methoddetruire">Registre::detruire()</a><br> Détruit l'objet associé à l'intitulé, n'a pas d'effet si il n'y a pas d'objet associé</dd> |
<dt><b>DS</b></dt> |
<dd>in file autoload.inc.php, constant <a href="Framework/_autoload.inc.php.html#defineDS">DS</a></dd> |
<dt><b>dump</b></dt> |
<dd>in file Debug.php, method <a href="Framework/Debug.html#methoddump">Debug::dump()</a><br> Equivalent de var_dump</dd> |
</dl> |
</div> |
<a href="elementindex.html#top">top</a><br> |
<hr /> |
<a name="e"></a> |
<div> |
<h2>e</h2> |
<dl> |
<dt><b>etreAbsolue</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodetreAbsolue">Url::etreAbsolue()</a><br> Renvoie vrai ou faux suivant que l'instance en cours représente une URL relative ou absolue.</dd> |
<dt><b>existe</b></dt> |
<dd>in file Registre.php, method <a href="Framework/Registre.html#methodexiste">Registre::existe()</a><br> Teste si un objet est présent sous un intitulé donné</dd> |
<dt><b>existe</b></dt> |
<dd>in file Config.php, method <a href="Framework/Config.html#methodexiste">Config::existe()</a><br> Vérifie si la valeur d'un paramètre existe</dd> |
</dl> |
</div> |
<a href="elementindex.html#top">top</a><br> |
<hr /> |
<a name="g"></a> |
<div> |
<h2>g</h2> |
<dl> |
<dt><b>gererErreur</b></dt> |
<dd>in file GestionnaireException.php, method <a href="Framework/GestionnaireException.html#methodgererErreur">GestionnaireException::gererErreur()</a><br> Gère les erreurs en les convertissant en exceptions (remplace la fonction gestion d'erreurs native de php)</dd> |
<dt><b>gererException</b></dt> |
<dd>in file GestionnaireException.php, method <a href="Framework/GestionnaireException.html#methodgererException">GestionnaireException::gererException()</a><br> Fonction de gestion des exceptions, remplace le handler par défaut</dd> |
<dt><b>GestionnaireException</b></dt> |
<dd>in file GestionnaireException.php, class <a href="Framework/GestionnaireException.html">GestionnaireException</a><br> Classe de gestion des exceptions.</dd> |
<dt><b>GestionnaireException.php</b></dt> |
<dd>procedural page <a href="Framework/_GestionnaireException.php.html">GestionnaireException.php</a></dd> |
<dt><b>get</b></dt> |
<dd>in file Registre.php, method <a href="Framework/Registre.html#methodget">Registre::get()</a><br> Renvoie l'objet associé à l'intitulé donné en paramètre</dd> |
<dt><b>get</b></dt> |
<dd>in file Config.php, method <a href="Framework/Config.html#methodget">Config::get()</a><br> Acesseur pour la valeur d'un paramètre</dd> |
<dt><b>getAutorite</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetAutorite">Url::getAutorite()</a><br> Renvoie la partie autorité, i.e. [ infoUtilisateur "@" ] hote [ ":" port ], ou false si celle-ci est absente.</dd> |
<dt><b>getCanonique</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetCanonique">Url::getCanonique()</a><br> Renvoie une instance de Url representant l'URL canonique du script PHP en cours d'éxécution</dd> |
<dt><b>getChemin</b></dt> |
<dd>in file Application.php, method <a href="Framework/Application.html#methodgetChemin">Application::getChemin()</a><br> accesseur pour le chemin</dd> |
<dt><b>getChemin</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetChemin">Url::getChemin()</a><br> Renvoie la partie chemin (chemin) (éventuellement vide).</dd> |
<dt><b>getContexte</b></dt> |
<dd>in file GestionnaireException.php, method <a href="Framework/GestionnaireException.html#methodgetContexte">GestionnaireException::getContexte()</a><br> Renvoie le booleen définissant si l'on affiche le contexte ou non</dd> |
<dt><b>getDemande</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetDemande">Url::getDemande()</a><br> Renvoie une instance de Url representant l'URL utilisée pour récupérer la requête en cours</dd> |
<dt><b>getExceptions</b></dt> |
<dd>in file GestionnaireException.php, method <a href="Framework/GestionnaireException.html#methodgetExceptions">GestionnaireException::getExceptions()</a><br> Renvoie les exceptions au format (X)HTML</dd> |
<dt><b>getFragment</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetFragment">Url::getFragment()</a><br> Renvoie le nom du fragment, ou false si "#" n'est pas present dans l'URL.</dd> |
<dt><b>getHote</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetHote">Url::getHote()</a><br> Renvoie la partie hôte, ou false s'il n'y a pas de partie autorité, c.a.d.</dd> |
<dt><b>getInfo</b></dt> |
<dd>in file Application.php, method <a href="Framework/Application.html#methodgetInfo">Application::getInfo()</a><br> accesseur pour le tableau d'infos</dd> |
<dt><b>getInfoUtilisateur</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetInfoUtilisateur">Url::getInfoUtilisateur()</a><br> Renvoie la partie userinfio, ou false si celle-ci n'existe pas, i.e. si la partie autorité ne contient pas de "@"</dd> |
<dt><b>getInstance</b></dt> |
<dd>in file Registre.php, method <a href="Framework/Registre.html#methodgetInstance">Registre::getInstance()</a><br> Fonction qui renvoie l'instance de classe en assurant son unicité, c'est l'unique méthode qui doit être</dd> |
<dt><b>getInstance</b></dt> |
<dd>in file GestionnaireException.php, method <a href="Framework/GestionnaireException.html#methodgetInstance">GestionnaireException::getInstance()</a><br> Fonction d'accès au singleton</dd> |
<dt><b>getInstance</b></dt> |
<dd>in file Log.php, method <a href="Framework/Log.html#methodgetInstance">Log::getInstance()</a><br> Fonction qui renvoie l'instance de classe en assurant son unicité, c'est l'unique méthode qui doit être</dd> |
<dt><b>getMode</b></dt> |
<dd>in file Debug.php, method <a href="Framework/Debug.html#methodgetMode">Debug::getMode()</a><br> Accesseur pour le mode</dd> |
<dt><b>getModele</b></dt> |
<dd>in file Controleur.php, method <a href="Framework/Controleur.html#methodgetModele">Controleur::getModele()</a><br> Retourne un modele donné</dd> |
<dt><b>getMotDePasse</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetMotDePasse">Url::getMotDePasse()</a><br> renvoie la partie mot de passe de la partie infoUtilisateur (partie après le premier ":"), , ou false si aucune partie infoUtilisateur n'est définie (i.e. l'URL ne contient pas de "@" en face du nom d'hôte) ou si la partie infoUtilisateur ne contient pas de ":".</dd> |
<dt><b>getOption</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetOption">Url::getOption()</a><br> Renvoie la valeur de l'option specifiée.</dd> |
<dt><b>getPort</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetPort">Url::getPort()</a><br> Renvoie le numéro de port, ou false si aucun numéro de port n'est spécifié, i.e. le port par défaut doit utilisé.</dd> |
<dt><b>getRequete</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetRequete">Url::getRequete()</a><br> renvoie la chaine de requête (requete string) (sans le premier "?"), ou false si "?" n'est pas présent dans l'url.</dd> |
<dt><b>getSchema</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetSchema">Url::getSchema()</a><br> Retourne le schéma, c.a.d. "http" ou "urn", ou false si aucun schéma n'est spécifié, i.e. l'url est une url relative</dd> |
<dt><b>getTemps</b></dt> |
<dd>in file Chronometre.php, method <a href="Framework/Chronometre.html#methodgetTemps">Chronometre::getTemps()</a><br> Accesseurs :</dd> |
<dt><b>getURL</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetURL">Url::getURL()</a><br> Renvoie un représentation sous forme de chaine de l'URL</dd> |
<dt><b>getURLDemande</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetURLDemande">Url::getURLDemande()</a><br> Renvoie l'URL utilisée pour récupérer la requête en cours</dd> |
<dt><b>getURLNormalisee</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetURLNormalisee">Url::getURLNormalisee()</a><br> Renvoie une représentation de cette URL sous forme de chaine normalisée. Utile pour la comparaison d'URLs</dd> |
<dt><b>getUtilisateur</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetUtilisateur">Url::getUtilisateur()</a><br> renvoie la partie user de la partie infoUtilisateur (partie précédant le premier ":"), ou false si aucune partie infoUtilisateur n'est définie.</dd> |
<dt><b>getVariablesRequete</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodgetVariablesRequete">Url::getVariablesRequete()</a><br> Renvoie la requete string sous forme d'un tableau de variables telles qu'elles apparaitraient dans le $_GET d'un script PHP</dd> |
<dt><b>getVue</b></dt> |
<dd>in file Controleur.php, method <a href="Framework/Controleur.html#methodgetVue">Controleur::getVue()</a><br> Fonction prenant en paramètre le nom d'un squelette et un tableau associatif de données, en extrait les variables, charge le squelette et retourne le résultat des deux combinés.</dd> |
</dl> |
</div> |
<a href="elementindex.html#top">top</a><br> |
<hr /> |
<a name="i"></a> |
<div> |
<h2>i</h2> |
<dl> |
<dt><b>initialiserProtocole</b></dt> |
<dd>in file Modele.php, method <a href="Framework/Modele.html#methodinitialiserProtocole">Modele::initialiserProtocole()</a><br> initialise les constantes de classe à leur bonne valeur</dd> |
</dl> |
</div> |
<a href="elementindex.html#top">top</a><br> |
<hr /> |
<a name="l"></a> |
<div> |
<h2>l</h2> |
<dl> |
<dt><b>Log</b></dt> |
<dd>in file Log.php, class <a href="Framework/Log.html">Log</a><br> Classe permettant de logger des messages dans les fichier situés dans le dossier de log</dd> |
<dt><b>Log.php</b></dt> |
<dd>procedural page <a href="Framework/_Log.php.html">Log.php</a></dd> |
</dl> |
</div> |
<a href="elementindex.html#top">top</a><br> |
<hr /> |
<a name="m"></a> |
<div> |
<h2>m</h2> |
<dl> |
<dt><b>$mode</b></dt> |
<dd>in file Debug.php, variable <a href="Framework/Debug.html#var$mode">Debug::$mode</a><br> mode de php (cli ou sapi)</dd> |
<dt><b>Modele</b></dt> |
<dd>in file Modele.php, class <a href="Framework/Modele.html">Modele</a><br> Classe modèle, donc d'accés au données, elle ne devrait pas être appelée de l'extérieur.</dd> |
<dt><b>Modele.php</b></dt> |
<dd>procedural page <a href="Framework/_Modele.php.html">Modele.php</a></dd> |
</dl> |
</div> |
<a href="elementindex.html#top">top</a><br> |
<hr /> |
<a name="n"></a> |
<div> |
<h2>n</h2> |
<dl> |
<dt><b>normaliser</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodnormaliser">Url::normaliser()</a><br> Renvoie une instance normalisée de Url</dd> |
</dl> |
</div> |
<a href="elementindex.html#top">top</a><br> |
<hr /> |
<a name="o"></a> |
<div> |
<h2>o</h2> |
<dl> |
<dt><b>OPTION_ENCODER_CLES</b></dt> |
<dd>in file Url.php, class constant <a href="Framework/Url.html#constOPTION_ENCODER_CLES">Url::OPTION_ENCODER_CLES</a><br> URL-encoder les clés des variables dans les requêtes. Par défaut à true.</dd> |
<dt><b>OPTION_SEPARATEUR_ENTREE</b></dt> |
<dd>in file Url.php, class constant <a href="Framework/Url.html#constOPTION_SEPARATEUR_ENTREE">Url::OPTION_SEPARATEUR_ENTREE</a><br> Séparateurs de variables lors du parsing de la requête. Chaque caractère est considéré comme un séparateur. Par défaut, spécifié par le paramêtre arg_separator.input dans php.ini (par défaut "&").</dd> |
<dt><b>OPTION_SEPARATEUR_SORTIE</b></dt> |
<dd>in file Url.php, class constant <a href="Framework/Url.html#constOPTION_SEPARATEUR_SORTIE">Url::OPTION_SEPARATEUR_SORTIE</a><br> Séparateur de variables lors de la génération de la requête. Par défaut, spécifié par le paramètre arg_separator.output dans php.ini (par défaut "&").</dd> |
<dt><b>OPTION_STRICTE</b></dt> |
<dd>in file Url.php, class constant <a href="Framework/Url.html#constOPTION_STRICTE">Url::OPTION_STRICTE</a><br> Parsing strict dans resoudre() (voir RFC 3986, section 5.2.2). Par défaut à true.</dd> |
<dt><b>OPTION_UTILISER_CROCHETS</b></dt> |
<dd>in file Url.php, class constant <a href="Framework/Url.html#constOPTION_UTILISER_CROCHETS">Url::OPTION_UTILISER_CROCHETS</a><br> Répresenter les tableaux dans les requêtes en utilisant la notation php []. Par défaut à true.</dd> |
</dl> |
</div> |
<a href="elementindex.html#top">top</a><br> |
<hr /> |
<a name="p"></a> |
<div> |
<h2>p</h2> |
<dl> |
<dt><b>printr</b></dt> |
<dd>in file Debug.php, method <a href="Framework/Debug.html#methodprintr">Debug::printr()</a><br> Equivalent de print_r</dd> |
<dt><b>proteger</b></dt> |
<dd>in file Modele.php, method <a href="Framework/Modele.html#methodproteger">Modele::proteger()</a><br> protège une chaine de caractères avant l'insertion dans la base de données</dd> |
<dt><b>PS</b></dt> |
<dd>in file autoload.inc.php, constant <a href="Framework/_autoload.inc.php.html#definePS">PS</a></dd> |
</dl> |
</div> |
<a href="elementindex.html#top">top</a><br> |
<hr /> |
<a name="r"></a> |
<div> |
<h2>r</h2> |
<dl> |
<dt><b>Registre</b></dt> |
<dd>in file Registre.php, class <a href="Framework/Registre.html">Registre</a><br> Classe registre, qui permet un accès à différentes variables à travers les autres classes.</dd> |
<dt><b>Registre.php</b></dt> |
<dd>procedural page <a href="Framework/_Registre.php.html">Registre.php</a></dd> |
<dt><b>requete</b></dt> |
<dd>in file Modele.php, method <a href="Framework/Modele.html#methodrequete">Modele::requete()</a><br> Fonction qui appelle la bonne fonction pour executer une requête suivant le type de bdd.</dd> |
<dt><b>requeteTous</b></dt> |
<dd>in file Modele.php, method <a href="Framework/Modele.html#methodrequeteTous">Modele::requeteTous()</a></dd> |
<dt><b>requeteUn</b></dt> |
<dd>in file Modele.php, method <a href="Framework/Modele.html#methodrequeteUn">Modele::requeteUn()</a></dd> |
<dt><b>resoudre</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodresoudre">Url::resoudre()</a><br> Renvoie une instance de Url représentant une URL absolue relative à cette URL.</dd> |
</dl> |
</div> |
<a href="elementindex.html#top">top</a><br> |
<hr /> |
<a name="s"></a> |
<div> |
<h2>s</h2> |
<dl> |
<dt><b>set</b></dt> |
<dd>in file Registre.php, method <a href="Framework/Registre.html#methodset">Registre::set()</a><br> Ajoute un objet au tableau selon un intitulé donné</dd> |
<dt><b>setAutorite</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetAutorite">Url::setAutorite()</a></dd> |
<dt><b>setChemin</b></dt> |
<dd>in file Application.php, method <a href="Framework/Application.html#methodsetChemin">Application::setChemin()</a><br> Modificateur pour le chemin de base</dd> |
<dt><b>setChemin</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetChemin">Url::setChemin()</a></dd> |
<dt><b>setContexte</b></dt> |
<dd>in file GestionnaireException.php, method <a href="Framework/GestionnaireException.html#methodsetContexte">GestionnaireException::setContexte()</a><br> Definit si l'on veut afficher le contexte ou non</dd> |
<dt><b>setFragment</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetFragment">Url::setFragment()</a></dd> |
<dt><b>setHote</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetHote">Url::setHote()</a></dd> |
<dt><b>setInfo</b></dt> |
<dd>in file Application.php, method <a href="Framework/Application.html#methodsetInfo">Application::setInfo()</a><br> Le tableau des informations sur l'application possède les clés suivantes :</dd> |
<dt><b>setInfoUtilisateur</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetInfoUtilisateur">Url::setInfoUtilisateur()</a><br> Setteur pour la partie infoUtilisateur. Si deux argument sont passé, ils sont combinés dans la partie infoUtilisateur de cette manière username ":" password.</dd> |
<dt><b>setOption</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetOption">Url::setOption()</a><br> Met à jour la valeur de l'option spécifiée.</dd> |
<dt><b>setPort</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetPort">Url::setPort()</a></dd> |
<dt><b>setRequete</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetRequete">Url::setRequete()</a></dd> |
<dt><b>setSchema</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetSchema">Url::setSchema()</a></dd> |
<dt><b>setTemps</b></dt> |
<dd>in file Chronometre.php, method <a href="Framework/Chronometre.html#methodsetTemps">Chronometre::setTemps()</a><br> Setteur pour la variable temps</dd> |
<dt><b>setVariableRequete</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetVariableRequete">Url::setVariableRequete()</a></dd> |
<dt><b>setVariablesRequete</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodsetVariablesRequete">Url::setVariablesRequete()</a></dd> |
<dt><b>SquelettePhp</b></dt> |
<dd>in file SquelettePhp.php, class <a href="Framework/SquelettePhp.html">SquelettePhp</a><br> Classe SquelettePhp, traitant les squelette Php utilisant la syntaxe courte php ou pas.</dd> |
<dt><b>SquelettePhp.php</b></dt> |
<dd>procedural page <a href="Framework/_SquelettePhp.php.html">SquelettePhp.php</a></dd> |
</dl> |
</div> |
<a href="elementindex.html#top">top</a><br> |
<hr /> |
<a name="u"></a> |
<div> |
<h2>u</h2> |
<dl> |
<dt><b>unsetVariableRequete</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#methodunsetVariableRequete">Url::unsetVariableRequete()</a></dd> |
<dt><b>Url</b></dt> |
<dd>in file Url.php, class <a href="Framework/Url.html">Url</a><br> classe Url, gérant le découpage des paramètres, leurs modification etc...</dd> |
<dt><b>Url.php</b></dt> |
<dd>procedural page <a href="Framework/_Url.php.html">Url.php</a></dd> |
</dl> |
</div> |
<a href="elementindex.html#top">top</a><br> |
<hr /> |
<a name="v"></a> |
<div> |
<h2>v</h2> |
<dl> |
<dt><b>verifierOuvrirFichier</b></dt> |
<dd>in file Log.php, method <a href="Framework/Log.html#methodverifierOuvrirFichier">Log::verifierOuvrirFichier()</a><br> Vérifie la présence d'un fichier dans le tableau, ses droits d'écriture,</dd> |
<dt><b>viderLog</b></dt> |
<dd>in file Log.php, method <a href="Framework/Log.html#methodviderLog">Log::viderLog()</a><br> Vide un fichier log indiqué</dd> |
</dl> |
</div> |
<a href="elementindex.html#top">top</a><br> |
<hr /> |
<a name="_"></a> |
<div> |
<h2>_</h2> |
<dl> |
<dt><b>__construct</b></dt> |
<dd>in file Chronometre.php, method <a href="Framework/Chronometre.html#method__construct">Chronometre::__construct()</a><br> Constructeur : *</dd> |
<dt><b>__construct</b></dt> |
<dd>in file Modele.php, method <a href="Framework/Modele.html#method__construct">Modele::__construct()</a><br> Constructeur par défaut, appelé à l'initialisation.</dd> |
<dt><b>__construct</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#method__construct">Url::__construct()</a></dd> |
<dt><b>__construct</b></dt> |
<dd>in file GestionnaireException.php, method <a href="Framework/GestionnaireException.html#method__construct">GestionnaireException::__construct()</a><br> Constructeur avec paramètres optionnel</dd> |
<dt><b>__construct</b></dt> |
<dd>in file Controleur.php, method <a href="Framework/Controleur.html#method__construct">Controleur::__construct()</a><br> Constructeur par défaut</dd> |
<dt><b>__destruct</b></dt> |
<dd>in file Modele.php, method <a href="Framework/Modele.html#method__destruct">Modele::__destruct()</a><br> Destructeur de classe, se contente de fermer explicitement la connexion</dd> |
<dt><b>__destruct</b></dt> |
<dd>in file Log.php, method <a href="Framework/Log.html#method__destruct">Log::__destruct()</a><br> destructeur de classe, ferme les descripteurs ouverts</dd> |
<dt><b>__destruct</b></dt> |
<dd>in file GestionnaireException.php, method <a href="Framework/GestionnaireException.html#method__destruct">GestionnaireException::__destruct()</a></dd> |
<dt><b>__toString</b></dt> |
<dd>in file Url.php, method <a href="Framework/Url.html#method__toString">Url::__toString()</a></dd> |
</dl> |
</div> |
<a href="elementindex.html#top">top</a><br> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:28 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/HTMLSmartyConverter/li_Framework.html |
---|
New file |
0,0 → 1,93 |
<html> |
<head> |
<title>Documentation</title> |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> |
<link rel="stylesheet" type="text/css" href="media/style.css"> |
</head> |
<body> |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> |
<tr> |
<td class="header_top">Framework</td> |
</tr> |
<tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
<tr> |
<td class="header_menu"> |
[ <a href="classtrees_Framework.html" class="menu">class tree: Framework</a> ] |
[ <a href="elementindex_Framework.html" class="menu">index: Framework</a> ] |
[ <a href="elementindex.html" class="menu">all elements</a> ] |
</td> |
</tr> |
<tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> |
</table> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
<tr valign="top"> |
<td width="200" class="menu"> |
<b>Packages:</b><br /> |
<a href="li_Framework.html">Framework</a><br /> |
<br /><br /> |
<b>Files:</b><br /> |
<div class="package"> |
<a href="Framework/_Application.php.html"> Application.php |
</a><br> |
<a href="Framework/_autoload.inc.php.html"> autoload.inc.php |
</a><br> |
<a href="Framework/_Chronometre.php.html"> Chronometre.php |
</a><br> |
<a href="Framework/_Config.php.html"> Config.php |
</a><br> |
<a href="Framework/_Controleur.php.html"> Controleur.php |
</a><br> |
<a href="Framework/_Debug.php.html"> Debug.php |
</a><br> |
<a href="Framework/_GestionnaireException.php.html"> GestionnaireException.php |
</a><br> |
<a href="Framework/_Log.php.html"> Log.php |
</a><br> |
<a href="Framework/_Modele.php.html"> Modele.php |
</a><br> |
<a href="Framework/_Registre.php.html"> Registre.php |
</a><br> |
<a href="Framework/_SquelettePhp.php.html"> SquelettePhp.php |
</a><br> |
<a href="Framework/_Url.php.html"> Url.php |
</a><br> |
</div><br /> |
<b>Classes:</b><br /> |
<div class="package"> |
<a href="Framework/Application.html">Application</a><br /> |
<a href="Framework/Chronometre.html">Chronometre</a><br /> |
<a href="Framework/Config.html">Config</a><br /> |
<a href="Framework/Controleur.html">Controleur</a><br /> |
<a href="Framework/Debug.html">Debug</a><br /> |
<a href="Framework/GestionnaireException.html">GestionnaireException</a><br /> |
<a href="Framework/Log.html">Log</a><br /> |
<a href="Framework/Modele.html">Modele</a><br /> |
<a href="Framework/Registre.html">Registre</a><br /> |
<a href="Framework/SquelettePhp.html">SquelettePhp</a><br /> |
<a href="Framework/Url.html">Url</a><br /> |
</div> |
</td> |
<td> |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> |
<div align="center"><h1>Documentation</h1></div> |
<b>Welcome to Framework!</b><br /> |
<br /> |
This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.3</a><br /> |
<div class="credit"> |
<hr /> |
Documentation generated on Thu, 04 Mar 2010 19:27:28 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> |
</div> |
</td></tr></table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/doc/index.php |
---|
New file |
0,0 → 1,29 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml" > |
<head xml:lang="fr" lang="fr"> |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
<meta http-equiv="Content-style-type" content="text/css" /> |
<meta http-equiv="Content-script-type" content="text/javascript" /> |
<meta http-equiv="Content-language" content="fr" /> |
<title>Documentations du Framework de Tela Botanica</title> |
<meta name="description" content="Les documents fournissant la documentation du Framework de Tela Botanica."> |
<meta name="keywords" content="Framework, Tela Botanica, documentation, HTML, PDF, CHM"> |
<meta name="revisit-after" content="15 days" /> |
<meta name="robots" content="index,follow" /> |
<meta name="author" content="Tela Botanica" /> |
</head> |
<body> |
<div id="logo_tela"> |
<a href="/" title="Retour à l'accueil du site"> |
<img src="http://www.tela-botanica.org/sites/reseau/generique/images/graphisme/logo_jaune.gif" alt="Le logo de Tela Botanica"/> |
</a> |
</div> |
<h1>Documentations du Framework de Tela Botanica</h1> |
<p>La documentation est disponible sous plusieurs formats :</p> |
<ul> |
<li><a href="HTMLframesConverter/index.html">Format HTML avec frames</a></li> |
<li><a href="HTMLSmartyConverter/index.html">Format HTML sans frames</a></li> |
</ul> |
</body> |
</html> |