1 |
<?xml version="1.0" encoding="iso-8859-1"?> |
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 StandardFormContent</title> |
7 |
<link rel="stylesheet" href="../../media/stylesheet.css" /> |
8 |
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> |
9 |
</head> |
10 |
<body> |
11 |
<div class="page-body"> |
12 |
|
13 |
<h2 class="class-name">Class StandardFormContent</h2> |
14 |
|
15 |
<a name="sec-description"></a> |
16 |
<div class="info-box"> |
17 |
<div class="info-box-title">Description</div> |
18 |
<div class="nav-bar"> |
19 |
<span class="disabled">Description</span> | |
20 |
<a href="#sec-descendents">Descendents</a> |
21 |
| <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) |
22 |
| <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
23 |
|
24 |
</div> |
25 |
<div class="info-box-body"> |
26 |
<!-- ========== Info from phpDoc block ========= --> |
27 |
<p class="short-description">This is a child of the FormContent class to provide a 'standard' look and feel for forms.</p> |
28 |
<p class="description"><p>It also enables a confirmation 'page' by default.</p></p> |
29 |
<p class="notes"> |
30 |
Located in <a class="field" href="_form_StandardFormContent_inc.html">/form/StandardFormContent.inc</a> (line <span class="field">26</span>) |
31 |
</p> |
32 |
|
33 |
|
34 |
<pre><a href="../../phpHtmlLib/FormProcessing/FormContent.html">FormContent</a> |
35 |
| |
36 |
--StandardFormContent</pre> |
37 |
|
38 |
</div> |
39 |
</div> |
40 |
|
41 |
<a name="sec-descendents"></a> |
42 |
<div class="info-box"> |
43 |
<div class="info-box-title">Direct descendents</div> |
44 |
<div class="nav-bar"> |
45 |
<a href="#sec-description">Description</a> | |
46 |
<span class="disabled">Descendents</span> |
47 |
| <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) |
48 |
| <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
49 |
|
50 |
</div> |
51 |
<div class="info-box-body"> |
52 |
<table cellpadding="2" cellspacing="0" class="class-table"> |
53 |
<tr> |
54 |
<th class="class-table-header">Class</th> |
55 |
<th class="class-table-header">Description</th> |
56 |
</tr> |
57 |
<tr> |
58 |
<td style="padding-right: 2em"><a href="../../phpHtmlLib/form-examples/Step1.html">Step1</a></td> |
59 |
<td> |
60 |
A simple Page Layout object child. |
61 |
</td> |
62 |
</tr> |
63 |
<tr> |
64 |
<td style="padding-right: 2em"><a href="../../phpHtmlLib/form-examples/Step2.html">Step2</a></td> |
65 |
<td> |
66 |
This is a child of the FormContent class to provide a 'standard' look and feel for forms. |
67 |
</td> |
68 |
</tr> |
69 |
<tr> |
70 |
<td style="padding-right: 2em"><a href="../../phpHtmlLib/form-examples/Step3.html">Step3</a></td> |
71 |
<td> |
72 |
This is a child of the FormContent class to provide a 'standard' look and feel for forms. |
73 |
</td> |
74 |
</tr> |
75 |
<tr> |
76 |
<td style="padding-right: 2em"><a href="../../phpHtmlLib/form-examples/StandardAccountForm.html">StandardAccountForm</a></td> |
77 |
<td> |
78 |
A simple Page Layout object child. |
79 |
</td> |
80 |
</tr> |
81 |
</table> |
82 |
</div> |
83 |
</div> |
84 |
|
85 |
|
86 |
<a name="sec-var-summary"></a> |
87 |
<div class="info-box"> |
88 |
<div class="info-box-title">Variable Summary</span></div> |
89 |
<div class="nav-bar"> |
90 |
<a href="#sec-description">Description</a> | |
91 |
<a href="#sec-descendents">Descendents</a> | |
92 |
<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) |
93 |
| |
94 |
<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
95 |
|
96 |
</div> |
97 |
<div class="info-box-body"> |
98 |
<div class="var-summary"> |
99 |
<div class="var-title"> |
100 |
<span class="var-type">mixed</span> |
101 |
<a href="#$_form_title" title="details" class="var-name">$_form_title</a> |
102 |
</div> |
103 |
<div class="var-title"> |
104 |
<span class="var-type">mixed</span> |
105 |
<a href="#$_infotable" title="details" class="var-name">$_infotable</a> |
106 |
</div> |
107 |
</div> |
108 |
</div> |
109 |
</div> |
110 |
|
111 |
<a name="sec-method-summary"></a> |
112 |
<div class="info-box"> |
113 |
<div class="info-box-title">Method Summary</span></div> |
114 |
<div class="nav-bar"> |
115 |
<a href="#sec-description">Description</a> | |
116 |
<a href="#sec-descendents">Descendents</a> | |
117 |
<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) |
118 |
|
119 |
| |
120 |
<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) |
121 |
</div> |
122 |
<div class="info-box-body"> |
123 |
<div class="method-summary"> |
124 |
|
125 |
<div class="method-definition"> |
126 |
<span class="method-result">StandardFormContent</span> |
127 |
<a href="#StandardFormContent" title="details" class="method-name">StandardFormContent</a> |
128 |
(<span class="var-type">mixed</span> <span class="var-name">$title</span>, [<span class="var-type">mixed</span> <span class="var-name">$cancel_action</span> = <span class="var-default">NULL</span>], [<span class="var-type">mixed</span> <span class="var-name">$width</span> = <span class="var-default">"100%"</span>]) |
129 |
</div> |
130 |
|
131 |
<div class="method-definition"> |
132 |
<span class="method-result">void</span> |
133 |
<a href="#add_form_block" title="details" class="method-name">add_form_block</a> |
134 |
([<span class="var-type">string</span> <span class="var-name">$title</span> = <span class="var-default">NULL</span>], <span class="var-type"><a href="../../phpHtmlLib/TABLEtag.html">TABLEtag</a></span> <span class="var-name">&$table</span>) |
135 |
</div> |
136 |
|
137 |
<div class="method-definition"> |
138 |
<span class="method-result"><a href="../../phpHtmlLib/FIELDSETtag.html">FIELDSETtag</a></span> |
139 |
<a href="#build_form_block" title="details" class="method-name">&build_form_block</a> |
140 |
([<span class="var-type">string</span> <span class="var-name">$title</span> = <span class="var-default">NULL</span>], <span class="var-type"><a href="../../phpHtmlLib/TABLEtag.html">TABLEtag</a></span> <span class="var-name">&$content</span>) |
141 |
</div> |
142 |
|
143 |
<div class="method-definition"> |
144 |
<span class="method-result">void</span> |
145 |
<a href="#confirm_action" title="details" class="method-name">confirm_action</a> |
146 |
() |
147 |
</div> |
148 |
|
149 |
<div class="method-definition"> |
150 |
<span class="method-result"><a href="../../phpHtmlLib/InfoTable.html">InfoTable</a></span> |
151 |
<a href="#form" title="details" class="method-name">form</a> |
152 |
(<span class="var-type">array</span> <span class="var-name">0</span>, <span class="var-type">array</span> <span class="var-name">1</span>) |
153 |
</div> |
154 |
|
155 |
<div class="method-definition"> |
156 |
<span class="method-result">boolean</span> |
157 |
<a href="#form_action" title="details" class="method-name">form_action</a> |
158 |
() |
159 |
</div> |
160 |
|
161 |
<div class="method-definition"> |
162 |
<span class="method-result">mixed</span> |
163 |
<a href="#form_confirm" title="details" class="method-name">form_confirm</a> |
164 |
([<span class="var-type">string</span> <span class="var-name">$title</span> = <span class="var-default">"Form Confirmation"</span>], [<span class="var-type">boolean</span> <span class="var-name">$show_buttons</span> = <span class="var-default">TRUE</span>]) |
165 |
</div> |
166 |
|
167 |
<div class="method-definition"> |
168 |
<span class="method-result">object</span> |
169 |
<a href="#form_content" title="details" class="method-name">form_content</a> |
170 |
() |
171 |
</div> |
172 |
|
173 |
<div class="method-definition"> |
174 |
<span class="method-result"><a href="../../phpHtmlLib/ButtonPanel.html">ButtonPanel</a></span> |
175 |
<a href="#form_content_buttons" title="details" class="method-name">form_content_buttons</a> |
176 |
() |
177 |
</div> |
178 |
|
179 |
<div class="method-definition"> |
180 |
<span class="method-result">void</span> |
181 |
<a href="#set_form_title" title="details" class="method-name">set_form_title</a> |
182 |
(<span class="var-type">string</span> <span class="var-name">$title</span>) |
183 |
</div> |
184 |
|
185 |
<div class="method-definition"> |
186 |
<span class="method-result">void</span> |
187 |
<a href="#_div_wrapper" title="details" class="method-name">&_div_wrapper</a> |
188 |
() |
189 |
</div> |
190 |
|
191 |
<div class="method-definition"> |
192 |
<span class="method-result">void</span> |
193 |
<a href="#_form_content_table" title="details" class="method-name">_form_content_table</a> |
194 |
([<span class="var-type">mixed</span> <span class="var-name">$width</span> = <span class="var-default">"100%"</span>], <span class="var-type">mixed</span> <span class="var-name">$border</span>, <span class="var-type">mixed</span> <span class="var-name">$cellspacing</span>, [<span class="var-type">mixed</span> <span class="var-name">$cellpadding</span> = <span class="var-default">3</span>]) |
195 |
</div> |
196 |
</div> |
197 |
</div> |
198 |
</div> |
199 |
|
200 |
<a name="sec-vars"></a> |
201 |
<div class="info-box"> |
202 |
<div class="info-box-title">Variables</div> |
203 |
<div class="nav-bar"> |
204 |
<a href="#sec-description">Description</a> | |
205 |
<a href="#sec-descendents">Descendents</a> | |
206 |
<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) |
207 |
|
208 |
|
209 |
| |
210 |
<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
211 |
|
212 |
</div> |
213 |
<div class="info-box-body"> |
214 |
<a name="var$_form_title" id="$_form_title"><!-- --></A> |
215 |
<div class="evenrow"> |
216 |
|
217 |
<div class="var-header"> |
218 |
<span class="var-title"> |
219 |
<span class="var-type">mixed</span> |
220 |
<span class="var-name">$_form_title</span> |
221 |
= <span class="var-default"> ""</span> (line <span class="line-number">33</span>) |
222 |
</span> |
223 |
</div> |
224 |
|
225 |
<!-- ========== Info from phpDoc block ========= --> |
226 |
<p class="short-description">The title used in the wrapping table</p> |
227 |
|
228 |
|
229 |
|
230 |
|
231 |
|
232 |
</div> |
233 |
<a name="var$_infotable" id="$_infotable"><!-- --></A> |
234 |
<div class="oddrow"> |
235 |
|
236 |
<div class="var-header"> |
237 |
<span class="var-title"> |
238 |
<span class="var-type">mixed</span> |
239 |
<span class="var-name">$_infotable</span> |
240 |
= <span class="var-default"> NULL</span> (line <span class="line-number">39</span>) |
241 |
</span> |
242 |
</div> |
243 |
|
244 |
<!-- ========== Info from phpDoc block ========= --> |
245 |
<p class="short-description">the InfoTable wrapper that holds all fields.</p> |
246 |
|
247 |
|
248 |
|
249 |
|
250 |
|
251 |
</div> |
252 |
|
253 |
<h4>Inherited Variables</h4> |
254 |
<A NAME='inherited_vars'><!-- --></A> |
255 |
<p>Inherited from <span class="classname"><a href="../../phpHtmlLib/FormProcessing/FormContent.html">FormContent</a></span></p> |
256 |
<blockquote> |
257 |
<span class="var-title"> |
258 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_action_counter">FormContent::$_action_counter</a></span><br> |
259 |
</span> |
260 |
<span class="var-title"> |
261 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_action_message">FormContent::$_action_message</a></span><br> |
262 |
</span> |
263 |
<span class="var-title"> |
264 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_cancel_action">FormContent::$_cancel_action</a></span><br> |
265 |
</span> |
266 |
<span class="var-title"> |
267 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_default_label_css">FormContent::$_default_label_css</a></span><br> |
268 |
</span> |
269 |
<span class="var-title"> |
270 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_elements">FormContent::$_elements</a></span><br> |
271 |
</span> |
272 |
<span class="var-title"> |
273 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_error_label_css">FormContent::$_error_label_css</a></span><br> |
274 |
</span> |
275 |
<span class="var-title"> |
276 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_file_elements">FormContent::$_file_elements</a></span><br> |
277 |
</span> |
278 |
<span class="var-title"> |
279 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_form_errors_title">FormContent::$_form_errors_title</a></span><br> |
280 |
</span> |
281 |
<span class="var-title"> |
282 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_form_errors_width">FormContent::$_form_errors_width</a></span><br> |
283 |
</span> |
284 |
<span class="var-title"> |
285 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_form_name">FormContent::$_form_name</a></span><br> |
286 |
</span> |
287 |
<span class="var-title"> |
288 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_form_on_submit">FormContent::$_form_on_submit</a></span><br> |
289 |
</span> |
290 |
<span class="var-title"> |
291 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_has_confirm">FormContent::$_has_confirm</a></span><br> |
292 |
</span> |
293 |
<span class="var-title"> |
294 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_has_file_element">FormContent::$_has_file_element</a></span><br> |
295 |
</span> |
296 |
<span class="var-title"> |
297 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_hidden_elements">FormContent::$_hidden_elements</a></span><br> |
298 |
</span> |
299 |
<span class="var-title"> |
300 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_required_field_marker">FormContent::$_required_field_marker</a></span><br> |
301 |
</span> |
302 |
<span class="var-title"> |
303 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_required_field_text">FormContent::$_required_field_text</a></span><br> |
304 |
</span> |
305 |
<span class="var-title"> |
306 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_stripslashes">FormContent::$_stripslashes</a></span><br> |
307 |
</span> |
308 |
<span class="var-title"> |
309 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_width">FormContent::$_width</a></span><br> |
310 |
</span> |
311 |
</blockquote> |
312 |
|
313 |
</div> |
314 |
</div> |
315 |
|
316 |
<a name="sec-methods"></a> |
317 |
<div class="info-box"> |
318 |
<div class="info-box-title">Methods</div> |
319 |
<div class="nav-bar"> |
320 |
<a href="#sec-description">Description</a> | |
321 |
<a href="#sec-descendents">Descendents</a> | |
322 |
<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) |
323 |
<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) |
324 |
|
325 |
</div> |
326 |
<div class="info-box-body"> |
327 |
<A NAME='method_detail'></A> |
328 |
<a name="methodStandardFormContent" id="StandardFormContent"><!-- --></a> |
329 |
<div class="evenrow"> |
330 |
|
331 |
<div class="method-header"> |
332 |
<span class="method-title">Constructor StandardFormContent</span> (line <span class="line-number">42</span>) |
333 |
</div> |
334 |
|
335 |
<!-- ========== Info from phpDoc block ========= --> |
336 |
|
337 |
<div class="method-signature"> |
338 |
<span class="method-result">StandardFormContent</span> |
339 |
<span class="method-name"> |
340 |
StandardFormContent |
341 |
</span> |
342 |
(<span class="var-type">mixed</span> <span class="var-name">$title</span>, [<span class="var-type">mixed</span> <span class="var-name">$cancel_action</span> = <span class="var-default">NULL</span>], [<span class="var-type">mixed</span> <span class="var-name">$width</span> = <span class="var-default">"100%"</span>]) |
343 |
</div> |
344 |
|
345 |
|
346 |
|
347 |
</div> |
348 |
<a name="methodadd_form_block" id="add_form_block"><!-- --></a> |
349 |
<div class="oddrow"> |
350 |
|
351 |
<div class="method-header"> |
352 |
<span class="method-title">add_form_block</span> (line <span class="line-number">193</span>) |
353 |
</div> |
354 |
|
355 |
<!-- ========== Info from phpDoc block ========= --> |
356 |
<p class="short-description">This function is used to add a block of form fields inside a table to this form.</p> |
357 |
<p class="description"><p>This table will automatically get wrapped inside a fieldset with a legend tag to label the block</p></p> |
358 |
|
359 |
<div class="method-signature"> |
360 |
<span class="method-result">void</span> |
361 |
<span class="method-name"> |
362 |
add_form_block |
363 |
</span> |
364 |
([<span class="var-type">string</span> <span class="var-name">$title</span> = <span class="var-default">NULL</span>], <span class="var-type"><a href="../../phpHtmlLib/TABLEtag.html">TABLEtag</a></span> <span class="var-name">&$table</span>) |
365 |
</div> |
366 |
|
367 |
<ul class="parameters"> |
368 |
<li> |
369 |
<span class="var-type">string</span> |
370 |
<span class="var-name">$title</span><span class="var-description">: - the title for the fieldset</span> </li> |
371 |
<li> |
372 |
<span class="var-type"><a href="../../phpHtmlLib/TABLEtag.html">TABLEtag</a></span> |
373 |
<span class="var-name">&$table</span><span class="var-description">: - the form fields inside a table</span> </li> |
374 |
</ul> |
375 |
|
376 |
|
377 |
</div> |
378 |
<a name="methodbuild_form_block" id="build_form_block"><!-- --></a> |
379 |
<div class="evenrow"> |
380 |
|
381 |
<div class="method-header"> |
382 |
<span class="method-title">build_form_block</span> (line <span class="line-number">206</span>) |
383 |
</div> |
384 |
|
385 |
<!-- ========== Info from phpDoc block ========= --> |
386 |
<p class="short-description">this builds a fieldset and legend and adds the form table to it.</p> |
387 |
|
388 |
<div class="method-signature"> |
389 |
<span class="method-result"><a href="../../phpHtmlLib/FIELDSETtag.html">FIELDSETtag</a></span> |
390 |
<span class="method-name"> |
391 |
&build_form_block |
392 |
</span> |
393 |
([<span class="var-type">string</span> <span class="var-name">$title</span> = <span class="var-default">NULL</span>], <span class="var-type"><a href="../../phpHtmlLib/TABLEtag.html">TABLEtag</a></span> <span class="var-name">&$content</span>) |
394 |
</div> |
395 |
|
396 |
<ul class="parameters"> |
397 |
<li> |
398 |
<span class="var-type">string</span> |
399 |
<span class="var-name">$title</span><span class="var-description">: - the legend string</span> </li> |
400 |
<li> |
401 |
<span class="var-type"><a href="../../phpHtmlLib/TABLEtag.html">TABLEtag</a></span> |
402 |
<span class="var-name">&$content</span><span class="var-description">: - the form fields in a table</span> </li> |
403 |
</ul> |
404 |
|
405 |
|
406 |
</div> |
407 |
<a name="methodconfirm_action" id="confirm_action"><!-- --></a> |
408 |
<div class="oddrow"> |
409 |
|
410 |
<div class="method-header"> |
411 |
<span class="method-title">confirm_action</span> (line <span class="line-number">160</span>) |
412 |
</div> |
413 |
|
414 |
<!-- ========== Info from phpDoc block ========= --> |
415 |
<p class="short-description">This method is responsible for handling the confirmation page's Confirm action.</p> |
416 |
|
417 |
<div class="method-signature"> |
418 |
<span class="method-result">void</span> |
419 |
<span class="method-name"> |
420 |
confirm_action |
421 |
</span> |
422 |
() |
423 |
</div> |
424 |
|
425 |
|
426 |
|
427 |
<hr class="separator" /> |
428 |
<div class="notes">Redefined in descendants as:</div> |
429 |
<ul class="redefinitions"> |
430 |
<li> |
431 |
<a href="../../phpHtmlLib/form-examples/Step1.html#methodconfirm_action">Step1::confirm_action()</a> |
432 |
: This method will get called after all validation has passed, and the confirmation has been accepted. |
433 |
</li> |
434 |
<li> |
435 |
<a href="../../phpHtmlLib/form-examples/Step2.html#methodconfirm_action">Step2::confirm_action()</a> |
436 |
: This method will get called after all validation has passed, and the confirmation has been accepted. |
437 |
</li> |
438 |
<li> |
439 |
<a href="../../phpHtmlLib/form-examples/Step3.html#methodconfirm_action">Step3::confirm_action()</a> |
440 |
: This method will get called after all validation has passed, and the confirmation has been accepted. |
441 |
</li> |
442 |
<li> |
443 |
<a href="../../phpHtmlLib/form-examples/StandardAccountForm.html#methodconfirm_action">StandardAccountForm::confirm_action()</a> |
444 |
: This method will get called after all validation has passed, and the confirmation has been accepted. |
445 |
</li> |
446 |
</ul> |
447 |
</div> |
448 |
<a name="methodform" id="form"><!-- --></a> |
449 |
<div class="evenrow"> |
450 |
|
451 |
<div class="method-header"> |
452 |
<span class="method-title">form</span> (line <span class="line-number">68</span>) |
453 |
</div> |
454 |
|
455 |
<!-- ========== Info from phpDoc block ========= --> |
456 |
<p class="short-description">this builds the main wrapper for the form fields and ads the Save and Cancel buttons</p> |
457 |
<ul class="tags"> |
458 |
<li><span class="field">return:</span> widget object</li> |
459 |
</ul> |
460 |
|
461 |
<div class="method-signature"> |
462 |
<span class="method-result"><a href="../../phpHtmlLib/InfoTable.html">InfoTable</a></span> |
463 |
<span class="method-name"> |
464 |
form |
465 |
</span> |
466 |
(<span class="var-type">array</span> <span class="var-name">0</span>, <span class="var-type">array</span> <span class="var-name">1</span>) |
467 |
</div> |
468 |
|
469 |
<ul class="parameters"> |
470 |
<li> |
471 |
<span class="var-type">array</span> |
472 |
<span class="var-name">0</span><span class="var-description">: - the form data</span> </li> |
473 |
<li> |
474 |
<span class="var-type">array</span> |
475 |
<span class="var-name">1</span><span class="var-description">: - the form error fields (if any)</span> </li> |
476 |
</ul> |
477 |
|
478 |
<hr class="separator" /> |
479 |
<div class="notes">Redefinition of:</div> |
480 |
<dl> |
481 |
<dt><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform">FormContent::form()</a></dt> |
482 |
<dd>This method builds the html form.</dd> |
483 |
</dl> |
484 |
|
485 |
</div> |
486 |
<a name="methodform_action" id="form_action"><!-- --></a> |
487 |
<div class="oddrow"> |
488 |
|
489 |
<div class="method-header"> |
490 |
<span class="method-title">form_action</span> (line <span class="line-number">144</span>) |
491 |
</div> |
492 |
|
493 |
<!-- ========== Info from phpDoc block ========= --> |
494 |
<p class="short-description">This method handles the form action.</p> |
495 |
<ul class="tags"> |
496 |
<li><span class="field">return:</span> TRUE = success FALSE = failed.</li> |
497 |
</ul> |
498 |
|
499 |
<div class="method-signature"> |
500 |
<span class="method-result">boolean</span> |
501 |
<span class="method-name"> |
502 |
form_action |
503 |
</span> |
504 |
() |
505 |
</div> |
506 |
|
507 |
|
508 |
<hr class="separator" /> |
509 |
<div class="notes">Redefinition of:</div> |
510 |
<dl> |
511 |
<dt><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_action">FormContent::form_action()</a></dt> |
512 |
<dd>This method handles the</dd> |
513 |
</dl> |
514 |
|
515 |
</div> |
516 |
<a name="methodform_confirm" id="form_confirm"><!-- --></a> |
517 |
<div class="evenrow"> |
518 |
|
519 |
<div class="method-header"> |
520 |
<span class="method-title">form_confirm</span> (line <span class="line-number">111</span>) |
521 |
</div> |
522 |
|
523 |
<!-- ========== Info from phpDoc block ========= --> |
524 |
<p class="short-description">This function is used to show an intermediary confirmation page. Use this function to show a confirmation of the data that was submitted by the user.</p> |
525 |
<p class="description"><p>This will get called after all of the form data was successfully validated. All of the form data will automatically be created as hidden form fields. All you have to do is show the data, and a confirm submit button.</p></p> |
526 |
<ul class="tags"> |
527 |
<li><span class="field">return:</span> - either raw html, or some container HTMLTag object.</li> |
528 |
</ul> |
529 |
|
530 |
<div class="method-signature"> |
531 |
<span class="method-result">mixed</span> |
532 |
<span class="method-name"> |
533 |
form_confirm |
534 |
</span> |
535 |
([<span class="var-type">string</span> <span class="var-name">$title</span> = <span class="var-default">"Form Confirmation"</span>], [<span class="var-type">boolean</span> <span class="var-name">$show_buttons</span> = <span class="var-default">TRUE</span>]) |
536 |
</div> |
537 |
|
538 |
<ul class="parameters"> |
539 |
<li> |
540 |
<span class="var-type">string</span> |
541 |
<span class="var-name">$title</span><span class="var-description">: - the title for the table</span> </li> |
542 |
<li> |
543 |
<span class="var-type">boolean</span> |
544 |
<span class="var-name">$show_buttons</span><span class="var-description">: - show the action buttons?</span> </li> |
545 |
</ul> |
546 |
|
547 |
<hr class="separator" /> |
548 |
<div class="notes">Redefinition of:</div> |
549 |
<dl> |
550 |
<dt><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_confirm">FormContent::form_confirm()</a></dt> |
551 |
<dd>This function is used to show an intermediary confirmation page. Use this function to show a confirmation of the data that was submitted by the user.</dd> |
552 |
</dl> |
553 |
|
554 |
</div> |
555 |
<a name="methodform_content" id="form_content"><!-- --></a> |
556 |
<div class="oddrow"> |
557 |
|
558 |
<div class="method-header"> |
559 |
<span class="method-title">form_content</span> (line <span class="line-number">89</span>) |
560 |
</div> |
561 |
|
562 |
<!-- ========== Info from phpDoc block ========= --> |
563 |
<p class="short-description">Child class MUST override this to provide the form fields</p> |
564 |
|
565 |
<div class="method-signature"> |
566 |
<span class="method-result">object</span> |
567 |
<span class="method-name"> |
568 |
form_content |
569 |
</span> |
570 |
() |
571 |
</div> |
572 |
|
573 |
|
574 |
|
575 |
<hr class="separator" /> |
576 |
<div class="notes">Redefined in descendants as:</div> |
577 |
<ul class="redefinitions"> |
578 |
<li> |
579 |
<a href="../../phpHtmlLib/form-examples/Step1.html#methodform_content">Step1::form_content()</a> |
580 |
: This method is called by the StandardFormContent object to allow you to build the 'blocks' of fields you want to display. Each form block will live inside a fieldset tag with the a title. |
581 |
</li> |
582 |
<li> |
583 |
<a href="../../phpHtmlLib/form-examples/Step2.html#methodform_content">Step2::form_content()</a> |
584 |
: This method is called by the StandardFormContent object to allow you to build the 'blocks' of fields you want to display. Each form block will live inside a fieldset tag with the a title. |
585 |
</li> |
586 |
<li> |
587 |
<a href="../../phpHtmlLib/form-examples/Step3.html#methodform_content">Step3::form_content()</a> |
588 |
: This method is called by the StandardFormContent object to allow you to build the 'blocks' of fields you want to display. Each form block will live inside a fieldset tag with the a title. |
589 |
</li> |
590 |
<li> |
591 |
<a href="../../phpHtmlLib/form-examples/StandardAccountForm.html#methodform_content">StandardAccountForm::form_content()</a> |
592 |
: This method is called by the StandardFormContent object to allow you to build the 'blocks' of fields you want to display. Each form block will live inside a fieldset tag with the a title. |
593 |
</li> |
594 |
</ul> |
595 |
</div> |
596 |
<a name="methodform_content_buttons" id="form_content_buttons"><!-- --></a> |
597 |
<div class="evenrow"> |
598 |
|
599 |
<div class="method-header"> |
600 |
<span class="method-title">form_content_buttons</span> (line <span class="line-number">172</span>) |
601 |
</div> |
602 |
|
603 |
<!-- ========== Info from phpDoc block ========= --> |
604 |
<p class="short-description">This function is used to build the standard buttons for a form.</p> |
605 |
|
606 |
<div class="method-signature"> |
607 |
<span class="method-result"><a href="../../phpHtmlLib/ButtonPanel.html">ButtonPanel</a></span> |
608 |
<span class="method-name"> |
609 |
form_content_buttons |
610 |
</span> |
611 |
() |
612 |
</div> |
613 |
|
614 |
|
615 |
|
616 |
</div> |
617 |
<a name="methodset_form_title" id="set_form_title"><!-- --></a> |
618 |
<div class="oddrow"> |
619 |
|
620 |
<div class="method-header"> |
621 |
<span class="method-title">set_form_title</span> (line <span class="line-number">56</span>) |
622 |
</div> |
623 |
|
624 |
<!-- ========== Info from phpDoc block ========= --> |
625 |
<p class="short-description">this method sets the form title which is used to wrap the entire form</p> |
626 |
|
627 |
<div class="method-signature"> |
628 |
<span class="method-result">void</span> |
629 |
<span class="method-name"> |
630 |
set_form_title |
631 |
</span> |
632 |
(<span class="var-type">string</span> <span class="var-name">$title</span>) |
633 |
</div> |
634 |
|
635 |
<ul class="parameters"> |
636 |
<li> |
637 |
<span class="var-type">string</span> |
638 |
<span class="var-name">$title</span><span class="var-description">: - the form title</span> </li> |
639 |
</ul> |
640 |
|
641 |
|
642 |
</div> |
643 |
<a name="method_div_wrapper" id="_div_wrapper"><!-- --></a> |
644 |
<div class="evenrow"> |
645 |
|
646 |
<div class="method-header"> |
647 |
<span class="method-title">_div_wrapper</span> (line <span class="line-number">219</span>) |
648 |
</div> |
649 |
|
650 |
<!-- ========== Info from phpDoc block ========= --> |
651 |
|
652 |
<div class="method-signature"> |
653 |
<span class="method-result">void</span> |
654 |
<span class="method-name"> |
655 |
&_div_wrapper |
656 |
</span> |
657 |
() |
658 |
</div> |
659 |
|
660 |
|
661 |
|
662 |
</div> |
663 |
<a name="method_form_content_table" id="_form_content_table"><!-- --></a> |
664 |
<div class="oddrow"> |
665 |
|
666 |
<div class="method-header"> |
667 |
<span class="method-title">_form_content_table</span> (line <span class="line-number">225</span>) |
668 |
</div> |
669 |
|
670 |
<!-- ========== Info from phpDoc block ========= --> |
671 |
|
672 |
<div class="method-signature"> |
673 |
<span class="method-result">void</span> |
674 |
<span class="method-name"> |
675 |
_form_content_table |
676 |
</span> |
677 |
([<span class="var-type">mixed</span> <span class="var-name">$width</span> = <span class="var-default">"100%"</span>], <span class="var-type">mixed</span> <span class="var-name">$border</span>, <span class="var-type">mixed</span> <span class="var-name">$cellspacing</span>, [<span class="var-type">mixed</span> <span class="var-name">$cellpadding</span> = <span class="var-default">3</span>]) |
678 |
</div> |
679 |
|
680 |
|
681 |
|
682 |
</div> |
683 |
<h4>Inherited Methods</h4> |
684 |
<a name='inherited_methods'><!-- --></a> |
685 |
<!-- =========== Summary =========== --> |
686 |
<p>Inherited From <span class="classname"><a href="../../phpHtmlLib/FormProcessing/FormContent.html">FormContent</a></span></p> |
687 |
<blockquote> |
688 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodFormContent">FormContent::FormContent()</a></span><br> |
689 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_action">FormContent::add_action()</a></span><br> |
690 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_cancel">FormContent::add_cancel()</a></span><br> |
691 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_element">FormContent::add_element()</a></span><br> |
692 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_error">FormContent::add_error()</a></span><br> |
693 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_hidden_action">FormContent::add_hidden_action()</a></span><br> |
694 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_hidden_element">FormContent::add_hidden_element()</a></span><br> |
695 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_image_action">FormContent::add_image_action()</a></span><br> |
696 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodbuild_confirm_table">FormContent::build_confirm_table()</a></span><br> |
697 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodelement_form">FormContent::element_form()</a></span><br> |
698 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodelement_label">FormContent::element_label()</a></span><br> |
699 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform">FormContent::form()</a></span><br> |
700 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_action">FormContent::form_action()</a></span><br> |
701 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_backend_validation">FormContent::form_backend_validation()</a></span><br> |
702 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_confirm">FormContent::form_confirm()</a></span><br> |
703 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_errors">FormContent::form_errors()</a></span><br> |
704 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_init_data">FormContent::form_init_data()</a></span><br> |
705 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_init_elements">FormContent::form_init_elements()</a></span><br> |
706 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_success">FormContent::form_success()</a></span><br> |
707 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_action">FormContent::get_action()</a></span><br> |
708 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_default_css">FormContent::get_default_css()</a></span><br> |
709 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_element">FormContent::get_element()</a></span><br> |
710 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_element_value">FormContent::get_element_value()</a></span><br> |
711 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_error_array">FormContent::get_error_array()</a></span><br> |
712 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_form_errors_width">FormContent::get_form_errors_width()</a></span><br> |
713 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_form_tabindex">FormContent::get_form_tabindex()</a></span><br> |
714 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_hidden_element_value">FormContent::get_hidden_element_value()</a></span><br> |
715 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodhas_confirm">FormContent::has_confirm()</a></span><br> |
716 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodhidden_element_label">FormContent::hidden_element_label()</a></span><br> |
717 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodjavascript">FormContent::javascript()</a></span><br> |
718 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodpre_confirm">FormContent::pre_confirm()</a></span><br> |
719 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_action">FormContent::set_action()</a></span><br> |
720 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_action_message">FormContent::set_action_message()</a></span><br> |
721 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_cancel_action">FormContent::set_cancel_action()</a></span><br> |
722 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_confirm">FormContent::set_confirm()</a></span><br> |
723 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_default_css">FormContent::set_default_css()</a></span><br> |
724 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_element_value">FormContent::set_element_value()</a></span><br> |
725 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_error_css">FormContent::set_error_css()</a></span><br> |
726 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_errors_title">FormContent::set_form_errors_title()</a></span><br> |
727 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_errors_width">FormContent::set_form_errors_width()</a></span><br> |
728 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_name">FormContent::set_form_name()</a></span><br> |
729 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_tabindex">FormContent::set_form_tabindex()</a></span><br> |
730 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_width">FormContent::set_form_width()</a></span><br> |
731 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_hidden_element_value">FormContent::set_hidden_element_value()</a></span><br> |
732 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_required_marker">FormContent::set_required_marker()</a></span><br> |
733 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_required_text">FormContent::set_required_text()</a></span><br> |
734 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_stripslashes">FormContent::set_stripslashes()</a></span><br> |
735 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#method_pre_confirm">FormContent::_pre_confirm()</a></span><br> |
736 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#method_test_element">FormContent::_test_element()</a></span><br> |
737 |
</blockquote> |
738 |
|
739 |
</div> |
740 |
</div> |
741 |
|
742 |
|
743 |
<p class="notes" id="credit"> |
744 |
Documentation generated on Thu, 1 Apr 2004 09:39:14 -0800 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC2</a> |
745 |
</p> |
746 |
</div></body> |
747 |
</html> |