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 AccountForm</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 AccountForm</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-vars">Vars</a> |
21 |
| <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
22 |
|
23 |
</div> |
24 |
<div class="info-box-body"> |
25 |
<!-- ========== Info from phpDoc block ========= --> |
26 |
<p class="short-description">This is the Class that handles the building of the Form itself. It creates the Form Elements inside the form_init_elements() method.</p> |
27 |
<ul class="tags"> |
28 |
<li><span class="field">author:</span> Walter A. Boring IV <<a href="mailto:waboring@buildabetterweb.com">waboring@buildabetterweb.com</a>></li> |
29 |
</ul> |
30 |
<p class="notes"> |
31 |
Located in <a class="field" href="_examples_form1_php.html">/examples/form1.php</a> (line <span class="field">62</span>) |
32 |
</p> |
33 |
|
34 |
|
35 |
<pre><a href="../../phpHtmlLib/FormProcessing/FormContent.html">FormContent</a> |
36 |
| |
37 |
--AccountForm</pre> |
38 |
|
39 |
</div> |
40 |
</div> |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
<a name="sec-method-summary"></a> |
46 |
<div class="info-box"> |
47 |
<div class="info-box-title">Method Summary</span></div> |
48 |
<div class="nav-bar"> |
49 |
<a href="#sec-description">Description</a> | |
50 |
<a href="#sec-vars">Vars</a> |
51 |
|
52 |
| |
53 |
<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) |
54 |
</div> |
55 |
<div class="info-box-body"> |
56 |
<div class="method-summary"> |
57 |
|
58 |
<div class="method-definition"> |
59 |
<span class="method-result">void</span> |
60 |
<a href="#form" title="details" class="method-name">form</a> |
61 |
() |
62 |
</div> |
63 |
|
64 |
<div class="method-definition"> |
65 |
<span class="method-result">void</span> |
66 |
<a href="#form_action" title="details" class="method-name">form_action</a> |
67 |
() |
68 |
</div> |
69 |
|
70 |
<div class="method-definition"> |
71 |
<span class="method-result">void</span> |
72 |
<a href="#form_backend_validation" title="details" class="method-name">form_backend_validation</a> |
73 |
() |
74 |
</div> |
75 |
|
76 |
<div class="method-definition"> |
77 |
<span class="method-result">void</span> |
78 |
<a href="#form_init_data" title="details" class="method-name">form_init_data</a> |
79 |
() |
80 |
</div> |
81 |
|
82 |
<div class="method-definition"> |
83 |
<span class="method-result">void</span> |
84 |
<a href="#form_init_elements" title="details" class="method-name">form_init_elements</a> |
85 |
() |
86 |
</div> |
87 |
</div> |
88 |
</div> |
89 |
</div> |
90 |
|
91 |
<a name="sec-vars"></a> |
92 |
<div class="info-box"> |
93 |
<div class="info-box-title">Variables</div> |
94 |
<div class="nav-bar"> |
95 |
<a href="#sec-description">Description</a> | |
96 |
<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) |
97 |
|
98 |
|
99 |
| |
100 |
<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) |
101 |
|
102 |
</div> |
103 |
<div class="info-box-body"> |
104 |
|
105 |
<h4>Inherited Variables</h4> |
106 |
<A NAME='inherited_vars'><!-- --></A> |
107 |
<p>Inherited from <span class="classname"><a href="../../phpHtmlLib/FormProcessing/FormContent.html">FormContent</a></span></p> |
108 |
<blockquote> |
109 |
<span class="var-title"> |
110 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_action_counter">FormContent::$_action_counter</a></span><br> |
111 |
</span> |
112 |
<span class="var-title"> |
113 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_action_message">FormContent::$_action_message</a></span><br> |
114 |
</span> |
115 |
<span class="var-title"> |
116 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_cancel_action">FormContent::$_cancel_action</a></span><br> |
117 |
</span> |
118 |
<span class="var-title"> |
119 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_default_label_css">FormContent::$_default_label_css</a></span><br> |
120 |
</span> |
121 |
<span class="var-title"> |
122 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_elements">FormContent::$_elements</a></span><br> |
123 |
</span> |
124 |
<span class="var-title"> |
125 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_error_label_css">FormContent::$_error_label_css</a></span><br> |
126 |
</span> |
127 |
<span class="var-title"> |
128 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_file_elements">FormContent::$_file_elements</a></span><br> |
129 |
</span> |
130 |
<span class="var-title"> |
131 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_form_errors_title">FormContent::$_form_errors_title</a></span><br> |
132 |
</span> |
133 |
<span class="var-title"> |
134 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_form_errors_width">FormContent::$_form_errors_width</a></span><br> |
135 |
</span> |
136 |
<span class="var-title"> |
137 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_form_name">FormContent::$_form_name</a></span><br> |
138 |
</span> |
139 |
<span class="var-title"> |
140 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_form_on_submit">FormContent::$_form_on_submit</a></span><br> |
141 |
</span> |
142 |
<span class="var-title"> |
143 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_has_confirm">FormContent::$_has_confirm</a></span><br> |
144 |
</span> |
145 |
<span class="var-title"> |
146 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_has_file_element">FormContent::$_has_file_element</a></span><br> |
147 |
</span> |
148 |
<span class="var-title"> |
149 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_hidden_elements">FormContent::$_hidden_elements</a></span><br> |
150 |
</span> |
151 |
<span class="var-title"> |
152 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_required_field_marker">FormContent::$_required_field_marker</a></span><br> |
153 |
</span> |
154 |
<span class="var-title"> |
155 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_required_field_text">FormContent::$_required_field_text</a></span><br> |
156 |
</span> |
157 |
<span class="var-title"> |
158 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_stripslashes">FormContent::$_stripslashes</a></span><br> |
159 |
</span> |
160 |
<span class="var-title"> |
161 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_width">FormContent::$_width</a></span><br> |
162 |
</span> |
163 |
</blockquote> |
164 |
|
165 |
</div> |
166 |
</div> |
167 |
|
168 |
<a name="sec-methods"></a> |
169 |
<div class="info-box"> |
170 |
<div class="info-box-title">Methods</div> |
171 |
<div class="nav-bar"> |
172 |
<a href="#sec-description">Description</a> | |
173 |
<a href="#sec-vars">Vars</a> |
174 |
<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) |
175 |
|
176 |
</div> |
177 |
<div class="info-box-body"> |
178 |
<A NAME='method_detail'></A> |
179 |
<a name="methodform" id="form"><!-- --></a> |
180 |
<div class="oddrow"> |
181 |
|
182 |
<div class="method-header"> |
183 |
<span class="method-title">form</span> (line <span class="line-number">130</span>) |
184 |
</div> |
185 |
|
186 |
<!-- ========== Info from phpDoc block ========= --> |
187 |
<p class="short-description">This is the method that builds the layout of where the FormElements will live. You can lay it out any way you like.</p> |
188 |
|
189 |
<div class="method-signature"> |
190 |
<span class="method-result">void</span> |
191 |
<span class="method-name"> |
192 |
form |
193 |
</span> |
194 |
() |
195 |
</div> |
196 |
|
197 |
|
198 |
<hr class="separator" /> |
199 |
<div class="notes">Redefinition of:</div> |
200 |
<dl> |
201 |
<dt><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform">FormContent::form()</a></dt> |
202 |
<dd>This method builds the html form.</dd> |
203 |
</dl> |
204 |
|
205 |
</div> |
206 |
<a name="methodform_action" id="form_action"><!-- --></a> |
207 |
<div class="evenrow"> |
208 |
|
209 |
<div class="method-header"> |
210 |
<span class="method-title">form_action</span> (line <span class="line-number">169</span>) |
211 |
</div> |
212 |
|
213 |
<!-- ========== Info from phpDoc block ========= --> |
214 |
<p class="short-description">This method is called ONLY after ALL validation has passed. This is the method that allows you to do something with the data, say insert/update records in the DB.</p> |
215 |
|
216 |
<div class="method-signature"> |
217 |
<span class="method-result">void</span> |
218 |
<span class="method-name"> |
219 |
form_action |
220 |
</span> |
221 |
() |
222 |
</div> |
223 |
|
224 |
|
225 |
<hr class="separator" /> |
226 |
<div class="notes">Redefinition of:</div> |
227 |
<dl> |
228 |
<dt><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_action">FormContent::form_action()</a></dt> |
229 |
<dd>This method handles the</dd> |
230 |
</dl> |
231 |
|
232 |
</div> |
233 |
<a name="methodform_backend_validation" id="form_backend_validation"><!-- --></a> |
234 |
<div class="oddrow"> |
235 |
|
236 |
<div class="method-header"> |
237 |
<span class="method-title">form_backend_validation</span> (line <span class="line-number">157</span>) |
238 |
</div> |
239 |
|
240 |
<!-- ========== Info from phpDoc block ========= --> |
241 |
<p class="short-description">This method gets called after the FormElement data has passed the validation. This enables you to validate the data against some backend mechanism, say a DB.</p> |
242 |
|
243 |
<div class="method-signature"> |
244 |
<span class="method-result">void</span> |
245 |
<span class="method-name"> |
246 |
form_backend_validation |
247 |
</span> |
248 |
() |
249 |
</div> |
250 |
|
251 |
|
252 |
<hr class="separator" /> |
253 |
<div class="notes">Redefinition of:</div> |
254 |
<dl> |
255 |
<dt><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_backend_validation">FormContent::form_backend_validation()</a></dt> |
256 |
<dd>This method is called after the FormElements</dd> |
257 |
</dl> |
258 |
|
259 |
</div> |
260 |
<a name="methodform_init_data" id="form_init_data"><!-- --></a> |
261 |
<div class="evenrow"> |
262 |
|
263 |
<div class="method-header"> |
264 |
<span class="method-title">form_init_data</span> (line <span class="line-number">111</span>) |
265 |
</div> |
266 |
|
267 |
<!-- ========== Info from phpDoc block ========= --> |
268 |
<p class="short-description">This method is called only the first time the form page is hit. This enables u to query a DB and pre populate the FormElement objects with data.</p> |
269 |
|
270 |
<div class="method-signature"> |
271 |
<span class="method-result">void</span> |
272 |
<span class="method-name"> |
273 |
form_init_data |
274 |
</span> |
275 |
() |
276 |
</div> |
277 |
|
278 |
|
279 |
<hr class="separator" /> |
280 |
<div class="notes">Redefinition of:</div> |
281 |
<dl> |
282 |
<dt><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_init_data">FormContent::form_init_data()</a></dt> |
283 |
<dd>This method is called by the</dd> |
284 |
</dl> |
285 |
|
286 |
</div> |
287 |
<a name="methodform_init_elements" id="form_init_elements"><!-- --></a> |
288 |
<div class="oddrow"> |
289 |
|
290 |
<div class="method-header"> |
291 |
<span class="method-title">form_init_elements</span> (line <span class="line-number">70</span>) |
292 |
</div> |
293 |
|
294 |
<!-- ========== Info from phpDoc block ========= --> |
295 |
<p class="short-description">This method gets called EVERY time the object is created. It is used to build all of the FormElement objects used in this Form.</p> |
296 |
|
297 |
<div class="method-signature"> |
298 |
<span class="method-result">void</span> |
299 |
<span class="method-name"> |
300 |
form_init_elements |
301 |
</span> |
302 |
() |
303 |
</div> |
304 |
|
305 |
|
306 |
<hr class="separator" /> |
307 |
<div class="notes">Redefinition of:</div> |
308 |
<dl> |
309 |
<dt><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_init_elements">FormContent::form_init_elements()</a></dt> |
310 |
<dd>This method is what is called to build the list of FormElements that will be used by this form.</dd> |
311 |
</dl> |
312 |
|
313 |
</div> |
314 |
<h4>Inherited Methods</h4> |
315 |
<a name='inherited_methods'><!-- --></a> |
316 |
<!-- =========== Summary =========== --> |
317 |
<p>Inherited From <span class="classname"><a href="../../phpHtmlLib/FormProcessing/FormContent.html">FormContent</a></span></p> |
318 |
<blockquote> |
319 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodFormContent">FormContent::FormContent()</a></span><br> |
320 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_action">FormContent::add_action()</a></span><br> |
321 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_cancel">FormContent::add_cancel()</a></span><br> |
322 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_element">FormContent::add_element()</a></span><br> |
323 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_error">FormContent::add_error()</a></span><br> |
324 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_hidden_action">FormContent::add_hidden_action()</a></span><br> |
325 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_hidden_element">FormContent::add_hidden_element()</a></span><br> |
326 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_image_action">FormContent::add_image_action()</a></span><br> |
327 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodbuild_confirm_table">FormContent::build_confirm_table()</a></span><br> |
328 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodelement_form">FormContent::element_form()</a></span><br> |
329 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodelement_label">FormContent::element_label()</a></span><br> |
330 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform">FormContent::form()</a></span><br> |
331 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_action">FormContent::form_action()</a></span><br> |
332 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_backend_validation">FormContent::form_backend_validation()</a></span><br> |
333 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_confirm">FormContent::form_confirm()</a></span><br> |
334 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_errors">FormContent::form_errors()</a></span><br> |
335 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_init_data">FormContent::form_init_data()</a></span><br> |
336 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_init_elements">FormContent::form_init_elements()</a></span><br> |
337 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_success">FormContent::form_success()</a></span><br> |
338 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_action">FormContent::get_action()</a></span><br> |
339 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_default_css">FormContent::get_default_css()</a></span><br> |
340 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_element">FormContent::get_element()</a></span><br> |
341 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_element_value">FormContent::get_element_value()</a></span><br> |
342 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_error_array">FormContent::get_error_array()</a></span><br> |
343 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_form_errors_width">FormContent::get_form_errors_width()</a></span><br> |
344 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_form_tabindex">FormContent::get_form_tabindex()</a></span><br> |
345 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_hidden_element_value">FormContent::get_hidden_element_value()</a></span><br> |
346 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodhas_confirm">FormContent::has_confirm()</a></span><br> |
347 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodhidden_element_label">FormContent::hidden_element_label()</a></span><br> |
348 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodjavascript">FormContent::javascript()</a></span><br> |
349 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodpre_confirm">FormContent::pre_confirm()</a></span><br> |
350 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_action">FormContent::set_action()</a></span><br> |
351 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_action_message">FormContent::set_action_message()</a></span><br> |
352 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_cancel_action">FormContent::set_cancel_action()</a></span><br> |
353 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_confirm">FormContent::set_confirm()</a></span><br> |
354 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_default_css">FormContent::set_default_css()</a></span><br> |
355 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_element_value">FormContent::set_element_value()</a></span><br> |
356 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_error_css">FormContent::set_error_css()</a></span><br> |
357 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_errors_title">FormContent::set_form_errors_title()</a></span><br> |
358 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_errors_width">FormContent::set_form_errors_width()</a></span><br> |
359 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_name">FormContent::set_form_name()</a></span><br> |
360 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_tabindex">FormContent::set_form_tabindex()</a></span><br> |
361 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_width">FormContent::set_form_width()</a></span><br> |
362 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_hidden_element_value">FormContent::set_hidden_element_value()</a></span><br> |
363 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_required_marker">FormContent::set_required_marker()</a></span><br> |
364 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_required_text">FormContent::set_required_text()</a></span><br> |
365 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_stripslashes">FormContent::set_stripslashes()</a></span><br> |
366 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#method_pre_confirm">FormContent::_pre_confirm()</a></span><br> |
367 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#method_test_element">FormContent::_test_element()</a></span><br> |
368 |
</blockquote> |
369 |
|
370 |
</div> |
371 |
</div> |
372 |
|
373 |
|
374 |
<p class="notes" id="credit"> |
375 |
Documentation generated on Thu, 1 Apr 2004 09:38:44 -0800 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC2</a> |
376 |
</p> |
377 |
</div></body> |
378 |
</html> |