Subversion Repositories Applications.framework

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
159 jpm 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
  <html xmlns="http://www.w3.org/1999/xhtml">
3
		<head>
4
			<!-- template designed by Marco Von Ballmoos  -->
5
			<title>Docs For Class Chronometre</title>
6
			<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
7
			<link rel="stylesheet" href="../media/stylesheet.css" />
8
						<script src="../media/lib/classTree.js"></script>
9
												<script language="javascript" type="text/javascript">
10
				var imgPlus = new Image();
11
				var imgMinus = new Image();
12
				imgPlus.src = "../media/images/plus.png";
13
				imgMinus.src = "../media/images/minus.png";
14
 
15
				function showNode(Node){
16
							switch(navigator.family){
17
								case 'nn4':
18
									// Nav 4.x code fork...
19
							var oTable = document.layers["span" + Node];
20
							var oImg = document.layers["img" + Node];
21
									break;
22
								case 'ie4':
23
									// IE 4/5 code fork...
24
							var oTable = document.all["span" + Node];
25
							var oImg = document.all["img" + Node];
26
									break;
27
								case 'gecko':
28
									// Standards Compliant code fork...
29
							var oTable = document.getElementById("span" + Node);
30
							var oImg = document.getElementById("img" + Node);
31
									break;
32
							}
33
					oImg.src = imgMinus.src;
34
					oTable.style.display = "block";
35
				}
36
 
37
				function hideNode(Node){
38
							switch(navigator.family){
39
								case 'nn4':
40
									// Nav 4.x code fork...
41
							var oTable = document.layers["span" + Node];
42
							var oImg = document.layers["img" + Node];
43
									break;
44
								case 'ie4':
45
									// IE 4/5 code fork...
46
							var oTable = document.all["span" + Node];
47
							var oImg = document.all["img" + Node];
48
									break;
49
								case 'gecko':
50
									// Standards Compliant code fork...
51
							var oTable = document.getElementById("span" + Node);
52
							var oImg = document.getElementById("img" + Node);
53
									break;
54
							}
55
					oImg.src = imgPlus.src;
56
					oTable.style.display = "none";
57
				}
58
 
59
				function nodeIsVisible(Node){
60
							switch(navigator.family){
61
								case 'nn4':
62
									// Nav 4.x code fork...
63
							var oTable = document.layers["span" + Node];
64
									break;
65
								case 'ie4':
66
									// IE 4/5 code fork...
67
							var oTable = document.all["span" + Node];
68
									break;
69
								case 'gecko':
70
									// Standards Compliant code fork...
71
							var oTable = document.getElementById("span" + Node);
72
									break;
73
							}
74
					return (oTable && oTable.style.display == "block");
75
				}
76
 
77
				function toggleNodeVisibility(Node){
78
					if (nodeIsVisible(Node)){
79
						hideNode(Node);
80
					}else{
81
						showNode(Node);
82
					}
83
				}
84
			</script>
85
					</head>
86
		<body>
87
			<div class="page-body">
88
<h2 class="class-name">Class Chronometre</h2>
89
 
90
<a name="sec-description"></a>
91
<div class="info-box">
92
	<div class="info-box-title">Description</div>
93
	<div class="nav-bar">
94
					<span class="disabled">Description</span> |
95
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
96
 
97
					</div>
98
	<div class="info-box-body">
99
        		<!-- ========== Info from phpDoc block ========= -->
297 jpm 100
<p class="short-description">Chronometre permet de stocker et d'afficher les temps d'éxécution de script.</p>
101
<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>
159 jpm 102
	<ul class="tags">
103
				<li><span class="field">author:</span> Jean-Pascal MILCENT &lt;<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>&gt;</li>
297 jpm 104
				<li><span class="field">version:</span> $Id: Chronometre.php 241 2010-12-06 15:19:07Z jpm $</li>
105
				<li><span class="field">copyright:</span> Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)</li>
159 jpm 106
				<li><span class="field">link:</span> /doc/framework/</li>
297 jpm 107
				<li><span class="field">license:</span> <a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL-v2</a></li>
108
				<li><span class="field">license:</span> <a href="http://www.gnu.org/licenses/gpl.html">Licence GNU-GPL-v3</a></li>
159 jpm 109
			</ul>
110
		<p class="notes">
297 jpm 111
			Located in <a class="field" href="_Chronometre.php.html">/Chronometre.php</a> (line <span class="field"><a href="../__filesource/fsource_Framework__Chronometre.php.html#a17">17</a></span>)
159 jpm 112
		</p>
113
 
114
 
115
		<pre></pre>
116
 
117
			</div>
118
</div>
119
 
120
 
121
 
122
 
123
	<a name="sec-method-summary"></a>
124
	<div class="info-box">
125
		<div class="info-box-title">Method Summary</span></div>
126
		<div class="nav-bar">
127
			<a href="#sec-description">Description</a> |
128
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
129
		</div>
130
		<div class="info-box-body">
131
			<div class="method-summary">
297 jpm 132
 
159 jpm 133
				<div class="method-definition">
297 jpm 134
					static 						<span class="method-result">string</span>
159 jpm 135
										<a href="#afficherChrono" title="details" class="method-name">afficherChrono</a>
297 jpm 136
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$cle</span> = <span class="var-default">null</span>])
159 jpm 137
									</div>
138
 
139
				<div class="method-definition">
297 jpm 140
					static 						<span class="method-result">null</span>
141
										<a href="#chrono" title="details" class="method-name">chrono</a>
159 jpm 142
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$cle</span> = <span class="var-default">null</span>])
143
									</div>
297 jpm 144
																															</div>
159 jpm 145
		</div>
146
	</div>
147
 
148
 
149
	<a name="sec-methods"></a>
150
	<div class="info-box">
151
		<div class="info-box-title">Methods</div>
152
		<div class="nav-bar">
153
			<a href="#sec-description">Description</a> |
154
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
155
 
156
		</div>
157
		<div class="info-box-body">
158
			<A NAME='method_detail'></A>
297 jpm 159
<a name="methodafficherChrono" id="afficherChrono"><!-- --></a>
159 jpm 160
<div class="evenrow">
161
 
162
	<div class="method-header">
297 jpm 163
		<span class="method-title">static afficherChrono</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Chronometre.php.html#a75">75</a></span>)
159 jpm 164
	</div>
165
 
166
	<!-- ========== Info from phpDoc block ========= -->
297 jpm 167
<p class="short-description">Permet d'afficher les temps d'éxécution de différentes parties d'un script.</p>
168
<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.</p></p>
159 jpm 169
	<ul class="tags">
170
				<li><span class="field">return:</span> la chaine XHTML de mesure des temps.</li>
171
				<li><span class="field">author:</span> Jean-Pascal MILCENT &lt;<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>&gt;</li>
172
				<li><span class="field">author:</span> Loic d'Anterroches</li>
173
				<li><span class="field">access:</span> public</li>
174
			</ul>
175
 
176
	<div class="method-signature">
297 jpm 177
		static <span class="method-result">string</span>
159 jpm 178
		<span class="method-name">
179
			afficherChrono
180
		</span>
181
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$cle</span> = <span class="var-default">null</span>])
182
			</div>
183
 
184
			<ul class="parameters">
185
					<li>
186
				<span class="var-type">string</span>
297 jpm 187
				<span class="var-name">$cle</span><span class="var-description">: l'eventuel nom du point de chronométrage de fin.</span>			</li>
159 jpm 188
				</ul>
189
 
190
 
191
	</div>
297 jpm 192
<a name="methodchrono" id="chrono"><!-- --></a>
159 jpm 193
<div class="oddrow">
194
 
195
	<div class="method-header">
297 jpm 196
		<span class="method-title">static chrono</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Chronometre.php.html#a53">53</a></span>)
159 jpm 197
	</div>
198
 
199
	<!-- ========== Info from phpDoc block ========= -->
297 jpm 200
<p class="short-description">Effectue un chronometrage.</p>
201
<p class="description"><p>Vous pouvez indiquer le nom du point de chronométrage.  Si vous n'indiquez rien, un nombre sera généré en débutant à 1.</p></p>
159 jpm 202
	<ul class="tags">
203
				<li><span class="field">access:</span> public</li>
204
			</ul>
205
 
206
	<div class="method-signature">
297 jpm 207
		static <span class="method-result">null</span>
159 jpm 208
		<span class="method-name">
297 jpm 209
			chrono
159 jpm 210
		</span>
297 jpm 211
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$cle</span> = <span class="var-default">null</span>])
159 jpm 212
			</div>
213
 
214
			<ul class="parameters">
215
					<li>
297 jpm 216
				<span class="var-type">string</span>
217
				<span class="var-name">$cle</span><span class="var-description">: le nom du point de chronométrage</span>			</li>
159 jpm 218
				</ul>
219
 
220
 
221
	</div>
222
 
223
		</div>
224
	</div>
225
 
226
 
227
	<p class="notes" id="credit">
302 jpm 228
		Documentation generated on Tue, 18 Jan 2011 15:30:45 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
159 jpm 229
	</p>
230
	</div></body>
231
</html>