Rev 177 | Blame | Last modification | View Log | RSS feed
<?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>