Subversion Repositories Applications.framework

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
159 jpm 1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
  <html xmlns="http://www.w3.org/1999/xhtml">
4
		<head>
5
			<!-- template designed by Marco Von Ballmoos  -->
6
			<title>Docs For Class Chronometre</title>
7
			<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
8
			<link rel="stylesheet" href="../media/stylesheet.css" />
9
						<script src="../media/lib/classTree.js"></script>
10
												<script language="javascript" type="text/javascript">
11
				var imgPlus = new Image();
12
				var imgMinus = new Image();
13
				imgPlus.src = "../media/images/plus.png";
14
				imgMinus.src = "../media/images/minus.png";
15
 
16
				function showNode(Node){
17
							switch(navigator.family){
18
								case 'nn4':
19
									// Nav 4.x code fork...
20
							var oTable = document.layers["span" + Node];
21
							var oImg = document.layers["img" + Node];
22
									break;
23
								case 'ie4':
24
									// IE 4/5 code fork...
25
							var oTable = document.all["span" + Node];
26
							var oImg = document.all["img" + Node];
27
									break;
28
								case 'gecko':
29
									// Standards Compliant code fork...
30
							var oTable = document.getElementById("span" + Node);
31
							var oImg = document.getElementById("img" + Node);
32
									break;
33
							}
34
					oImg.src = imgMinus.src;
35
					oTable.style.display = "block";
36
				}
37
 
38
				function hideNode(Node){
39
							switch(navigator.family){
40
								case 'nn4':
41
									// Nav 4.x code fork...
42
							var oTable = document.layers["span" + Node];
43
							var oImg = document.layers["img" + Node];
44
									break;
45
								case 'ie4':
46
									// IE 4/5 code fork...
47
							var oTable = document.all["span" + Node];
48
							var oImg = document.all["img" + Node];
49
									break;
50
								case 'gecko':
51
									// Standards Compliant code fork...
52
							var oTable = document.getElementById("span" + Node);
53
							var oImg = document.getElementById("img" + Node);
54
									break;
55
							}
56
					oImg.src = imgPlus.src;
57
					oTable.style.display = "none";
58
				}
59
 
60
				function nodeIsVisible(Node){
61
							switch(navigator.family){
62
								case 'nn4':
63
									// Nav 4.x code fork...
64
							var oTable = document.layers["span" + Node];
65
									break;
66
								case 'ie4':
67
									// IE 4/5 code fork...
68
							var oTable = document.all["span" + Node];
69
									break;
70
								case 'gecko':
71
									// Standards Compliant code fork...
72
							var oTable = document.getElementById("span" + Node);
73
									break;
74
							}
75
					return (oTable && oTable.style.display == "block");
76
				}
77
 
78
				function toggleNodeVisibility(Node){
79
					if (nodeIsVisible(Node)){
80
						hideNode(Node);
81
					}else{
82
						showNode(Node);
83
					}
84
				}
85
			</script>
86
					</head>
87
		<body>
88
			<div class="page-body">
89
<h2 class="class-name">Class Chronometre</h2>
90
 
91
<a name="sec-description"></a>
92
<div class="info-box">
93
	<div class="info-box-title">Description</div>
94
	<div class="nav-bar">
95
					<span class="disabled">Description</span> |
96
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
97
 
98
					</div>
99
	<div class="info-box-body">
100
        		<!-- ========== Info from phpDoc block ========= -->
101
<p class="short-description">Classe Chronometre() - Permet de stocker et d'afficher  les temps d'éxécution de script.</p>
102
<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>
103
	<ul class="tags">
104
				<li><span class="field">author:</span> Jean-Pascal MILCENT &lt;<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>&gt;</li>
105
				<li><span class="field">version:</span> Release: &lt;package_version&gt;</li>
106
				<li><span class="field">copyright:</span> 2009 Tela-Botanica</li>
107
				<li><span class="field">link:</span> /doc/framework/</li>
108
				<li><span class="field">license:</span> <a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL</a></li>
109
			</ul>
110
		<p class="notes">
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#a23">23</a></span>)
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">
132
 
133
				<div class="method-definition">
134
											<span class="method-result">Chronometre</span>
135
										<a href="#__construct" title="details" class="method-name">__construct</a>
136
										()
137
									</div>
138
 
139
				<div class="method-definition">
140
											<span class="method-result">string</span>
141
										<a href="#afficherChrono" title="details" class="method-name">afficherChrono</a>
142
											([<span class="var-type">int</span>&nbsp;<span class="var-name">$indentation_origine</span> = <span class="var-default">8</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$indentation</span> = <span class="var-default">4</span>])
143
									</div>
144
 
145
				<div class="method-definition">
146
											<span class="method-result">int</span>
147
										<a href="#getTemps" title="details" class="method-name">getTemps</a>
148
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$cle</span> = <span class="var-default">null</span>])
149
									</div>
150
 
151
				<div class="method-definition">
152
											<span class="method-result">null</span>
153
										<a href="#setTemps" title="details" class="method-name">setTemps</a>
154
											([<span class="var-type">array()</span>&nbsp;<span class="var-name">$moment</span> = <span class="var-default">array ()</span>])
155
									</div>
156
											</div>
157
		</div>
158
	</div>
159
 
160
 
161
	<a name="sec-methods"></a>
162
	<div class="info-box">
163
		<div class="info-box-title">Methods</div>
164
		<div class="nav-bar">
165
			<a href="#sec-description">Description</a> |
166
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
167
 
168
		</div>
169
		<div class="info-box-body">
170
			<A NAME='method_detail'></A>
171
<a name="method__construct" id="__construct"><!-- --></a>
172
<div class="evenrow">
173
 
174
	<div class="method-header">
175
		<span class="method-title">Constructor __construct</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Chronometre.php.html#a28">28</a></span>)
176
	</div>
177
 
178
	<!-- ========== Info from phpDoc block ========= -->
179
<p class="short-description">Constructeur : *</p>
180
	<ul class="tags">
181
				<li><span class="field">access:</span> public</li>
182
			</ul>
183
 
184
	<div class="method-signature">
185
		<span class="method-result">Chronometre</span>
186
		<span class="method-name">
187
			__construct
188
		</span>
189
				()
190
			</div>
191
 
192
 
193
 
194
	</div>
195
<a name="methodafficherChrono" id="afficherChrono"><!-- --></a>
196
<div class="oddrow">
197
 
198
	<div class="method-header">
199
		<span class="method-title">afficherChrono</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Chronometre.php.html#a82">82</a></span>)
200
	</div>
201
 
202
	<!-- ========== Info from phpDoc block ========= -->
203
<p class="short-description">Méthode afficherChrono() -  Permet d'afficher les temps d'éxécution de différentes parties d'un script.</p>
204
<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>
205
	<ul class="tags">
206
				<li><span class="field">return:</span> la chaine XHTML de mesure des temps.</li>
207
				<li><span class="field">author:</span> Jean-Pascal MILCENT &lt;<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>&gt;</li>
208
				<li><span class="field">author:</span> Loic d'Anterroches</li>
209
				<li><span class="field">access:</span> public</li>
210
			</ul>
211
 
212
	<div class="method-signature">
213
		<span class="method-result">string</span>
214
		<span class="method-name">
215
			afficherChrono
216
		</span>
217
					([<span class="var-type">int</span>&nbsp;<span class="var-name">$indentation_origine</span> = <span class="var-default">8</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$indentation</span> = <span class="var-default">4</span>])
218
			</div>
219
 
220
			<ul class="parameters">
221
					<li>
222
				<span class="var-type">int</span>
223
				<span class="var-name">$indentation_origine</span><span class="var-description">: l'indentation de base.</span>			</li>
224
					<li>
225
				<span class="var-type">int</span>
226
				<span class="var-name">$indentation</span><span class="var-description">: le pas d'indentation.</span>			</li>
227
				</ul>
228
 
229
 
230
	</div>
231
<a name="methodgetTemps" id="getTemps"><!-- --></a>
232
<div class="evenrow">
233
 
234
	<div class="method-header">
235
		<span class="method-title">getTemps</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Chronometre.php.html#a38">38</a></span>)
236
	</div>
237
 
238
	<!-- ========== Info from phpDoc block ========= -->
239
<p class="short-description">Accesseurs :</p>
240
	<ul class="tags">
241
				<li><span class="field">return:</span> le temps écoulé</li>
242
				<li><span class="field">access:</span> public</li>
243
			</ul>
244
 
245
	<div class="method-signature">
246
		<span class="method-result">int</span>
247
		<span class="method-name">
248
			getTemps
249
		</span>
250
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$cle</span> = <span class="var-default">null</span>])
251
			</div>
252
 
253
			<ul class="parameters">
254
					<li>
255
				<span class="var-type">string</span>
256
				<span class="var-name">$cle</span><span class="var-description">: la cle associée à un chronomètre particulier</span>			</li>
257
				</ul>
258
 
259
 
260
	</div>
261
<a name="methodsetTemps" id="setTemps"><!-- --></a>
262
<div class="oddrow">
263
 
264
	<div class="method-header">
265
		<span class="method-title">setTemps</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Chronometre.php.html#a54">54</a></span>)
266
	</div>
267
 
268
	<!-- ========== Info from phpDoc block ========= -->
269
<p class="short-description">Setteur pour la variable temps</p>
270
	<ul class="tags">
271
				<li><span class="field">access:</span> public</li>
272
			</ul>
273
 
274
	<div class="method-signature">
275
		<span class="method-result">null</span>
276
		<span class="method-name">
277
			setTemps
278
		</span>
279
					([<span class="var-type">array()</span>&nbsp;<span class="var-name">$moment</span> = <span class="var-default">array ()</span>])
280
			</div>
281
 
282
			<ul class="parameters">
283
					<li>
284
				<span class="var-type">array()</span>
285
				<span class="var-name">$moment</span><span class="var-description">: ajoute des points de chronométrage au tableau _temps</span>			</li>
286
				</ul>
287
 
288
 
289
	</div>
290
 
291
		</div>
292
	</div>
293
 
294
 
295
	<p class="notes" id="credit">
296
		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>
297
	</p>
298
	</div></body>
299
</html>