/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/doc/phpHtmlLib/form-examples/Step2.html
ViewVC logotype

Contents of /nfo/php/libs/com.newsblob.phphtmllib/doc/phpHtmlLib/form-examples/Step2.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Thu May 6 16:27:07 2004 UTC (20 years, 4 months ago) by jonen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +395 -382 lines
File MIME type: text/html
 updated all to v2.4.1 - Apr 01, 2004

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 Step2</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 Step2</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 a child of the FormContent class to provide a 'standard' look and feel for forms.</p>
27 <p class="description"><p>It also enables a confirmation 'page' by default.</p></p>
28 <p class="notes">
29 Located in <a class="field" href="_examples__steps_inc.html">/examples/_steps.inc</a> (line <span class="field">106</span>)
30 </p>
31
32
33 <pre><a href="../../phpHtmlLib/FormProcessing/FormContent.html">FormContent</a>
34 |
35 --<a href="../../phpHtmlLib/FormProcessing/StandardFormContent.html">StandardFormContent</a>
36 |
37 --Step2</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="#confirm_action" title="details" class="method-name">confirm_action</a>
61 ()
62 </div>
63
64 <div class="method-definition">
65 <span class="method-result">void</span>
66 <a href="#form_content" title="details" class="method-name">form_content</a>
67 ()
68 </div>
69
70 <div class="method-definition">
71 <span class="method-result">void</span>
72 <a href="#form_init_data" title="details" class="method-name">form_init_data</a>
73 ()
74 </div>
75
76 <div class="method-definition">
77 <span class="method-result">void</span>
78 <a href="#form_init_elements" title="details" class="method-name">form_init_elements</a>
79 ()
80 </div>
81
82 <div class="method-definition">
83 <span class="method-result">void</span>
84 <a href="#_optional_info" title="details" class="method-name">&amp;_optional_info</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/StandardFormContent.html">StandardFormContent</a></span></p>
108 <blockquote>
109 <span class="var-title">
110 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/StandardFormContent.html#var$_form_title">StandardFormContent::$_form_title</a></span><br>
111 </span>
112 <span class="var-title">
113 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/StandardFormContent.html#var$_infotable">StandardFormContent::$_infotable</a></span><br>
114 </span>
115 </blockquote>
116 <p>Inherited from <span class="classname"><a href="../../phpHtmlLib/FormProcessing/FormContent.html">FormContent</a></span></p>
117 <blockquote>
118 <span class="var-title">
119 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_action_counter">FormContent::$_action_counter</a></span><br>
120 </span>
121 <span class="var-title">
122 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_action_message">FormContent::$_action_message</a></span><br>
123 </span>
124 <span class="var-title">
125 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_cancel_action">FormContent::$_cancel_action</a></span><br>
126 </span>
127 <span class="var-title">
128 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_default_label_css">FormContent::$_default_label_css</a></span><br>
129 </span>
130 <span class="var-title">
131 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_elements">FormContent::$_elements</a></span><br>
132 </span>
133 <span class="var-title">
134 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_error_label_css">FormContent::$_error_label_css</a></span><br>
135 </span>
136 <span class="var-title">
137 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_file_elements">FormContent::$_file_elements</a></span><br>
138 </span>
139 <span class="var-title">
140 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_form_errors_title">FormContent::$_form_errors_title</a></span><br>
141 </span>
142 <span class="var-title">
143 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_form_errors_width">FormContent::$_form_errors_width</a></span><br>
144 </span>
145 <span class="var-title">
146 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_form_name">FormContent::$_form_name</a></span><br>
147 </span>
148 <span class="var-title">
149 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_form_on_submit">FormContent::$_form_on_submit</a></span><br>
150 </span>
151 <span class="var-title">
152 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_has_confirm">FormContent::$_has_confirm</a></span><br>
153 </span>
154 <span class="var-title">
155 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_has_file_element">FormContent::$_has_file_element</a></span><br>
156 </span>
157 <span class="var-title">
158 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_hidden_elements">FormContent::$_hidden_elements</a></span><br>
159 </span>
160 <span class="var-title">
161 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_required_field_marker">FormContent::$_required_field_marker</a></span><br>
162 </span>
163 <span class="var-title">
164 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_required_field_text">FormContent::$_required_field_text</a></span><br>
165 </span>
166 <span class="var-title">
167 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_stripslashes">FormContent::$_stripslashes</a></span><br>
168 </span>
169 <span class="var-title">
170 <span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_width">FormContent::$_width</a></span><br>
171 </span>
172 </blockquote>
173
174 </div>
175 </div>
176
177 <a name="sec-methods"></a>
178 <div class="info-box">
179 <div class="info-box-title">Methods</div>
180 <div class="nav-bar">
181 <a href="#sec-description">Description</a> |
182 <a href="#sec-vars">Vars</a>
183 <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
184
185 </div>
186 <div class="info-box-body">
187 <A NAME='method_detail'></A>
188 <a name="methodconfirm_action" id="confirm_action"><!-- --></a>
189 <div class="oddrow">
190
191 <div class="method-header">
192 <span class="method-title">confirm_action</span> (line <span class="line-number">199</span>)
193 </div>
194
195 <!-- ========== Info from phpDoc block ========= -->
196 <p class="short-description">This method will get called after all validation has passed, and the confirmation has been accepted.</p>
197 <p class="description"><p>This is where u save the info to the DB.</p></p>
198
199 <div class="method-signature">
200 <span class="method-result">void</span>
201 <span class="method-name">
202 confirm_action
203 </span>
204 ()
205 </div>
206
207
208 <hr class="separator" />
209 <div class="notes">Redefinition of:</div>
210 <dl>
211 <dt><a href="../../phpHtmlLib/FormProcessing/StandardFormContent.html#methodconfirm_action">StandardFormContent::confirm_action()</a></dt>
212 <dd>This method is responsible for handling the confirmation page's Confirm action.</dd>
213 </dl>
214
215 </div>
216 <a name="methodform_content" id="form_content"><!-- --></a>
217 <div class="evenrow">
218
219 <div class="method-header">
220 <span class="method-title">form_content</span> (line <span class="line-number">161</span>)
221 </div>
222
223 <!-- ========== Info from phpDoc block ========= -->
224 <p class="short-description">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.</p>
225 <p class="description"><p>In this example we have 2 form 'blocks'.</p></p>
226
227 <div class="method-signature">
228 <span class="method-result">void</span>
229 <span class="method-name">
230 form_content
231 </span>
232 ()
233 </div>
234
235
236 <hr class="separator" />
237 <div class="notes">Redefinition of:</div>
238 <dl>
239 <dt><a href="../../phpHtmlLib/FormProcessing/StandardFormContent.html#methodform_content">StandardFormContent::form_content()</a></dt>
240 <dd>Child class MUST override this to provide the form fields</dd>
241 </dl>
242
243 </div>
244 <a name="methodform_init_data" id="form_init_data"><!-- --></a>
245 <div class="oddrow">
246
247 <div class="method-header">
248 <span class="method-title">form_init_data</span> (line <span class="line-number">141</span>)
249 </div>
250
251 <!-- ========== Info from phpDoc block ========= -->
252 <p class="short-description">This method is called only the first time the form page is hit.</p>
253
254 <div class="method-signature">
255 <span class="method-result">void</span>
256 <span class="method-name">
257 form_init_data
258 </span>
259 ()
260 </div>
261
262
263 <hr class="separator" />
264 <div class="notes">Redefinition of:</div>
265 <dl>
266 <dt><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_init_data">FormContent::form_init_data()</a></dt>
267 <dd>This method is called by the</dd>
268 </dl>
269
270 </div>
271 <a name="methodform_init_elements" id="form_init_elements"><!-- --></a>
272 <div class="evenrow">
273
274 <div class="method-header">
275 <span class="method-title">form_init_elements</span> (line <span class="line-number">112</span>)
276 </div>
277
278 <!-- ========== Info from phpDoc block ========= -->
279 <p class="short-description">This method gets called EVERY time the object is</p>
280 <p class="description"><p>created</p></p>
281
282 <div class="method-signature">
283 <span class="method-result">void</span>
284 <span class="method-name">
285 form_init_elements
286 </span>
287 ()
288 </div>
289
290
291 <hr class="separator" />
292 <div class="notes">Redefinition of:</div>
293 <dl>
294 <dt><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_init_elements">FormContent::form_init_elements()</a></dt>
295 <dd>This method is what is called to build the list of FormElements that will be used by this form.</dd>
296 </dl>
297
298 </div>
299 <a name="method_optional_info" id="_optional_info"><!-- --></a>
300 <div class="oddrow">
301
302 <div class="method-header">
303 <span class="method-title">_optional_info</span> (line <span class="line-number">171</span>)
304 </div>
305
306 <!-- ========== Info from phpDoc block ========= -->
307 <p class="short-description">This private method builds the table that holds</p>
308 <p class="description"><p>the 'optional' form fields'</p></p>
309
310 <div class="method-signature">
311 <span class="method-result">void</span>
312 <span class="method-name">
313 &amp;_optional_info
314 </span>
315 ()
316 </div>
317
318
319
320 </div>
321 <h4>Inherited Methods</h4>
322 <a name='inherited_methods'><!-- --></a>
323 <!-- =========== Summary =========== -->
324 <p>Inherited From <span class="classname"><a href="../../phpHtmlLib/FormProcessing/StandardFormContent.html">StandardFormContent</a></span></p>
325 <blockquote>
326 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/StandardFormContent.html#methodStandardFormContent">StandardFormContent::StandardFormContent()</a></span><br>
327 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/StandardFormContent.html#methodadd_form_block">StandardFormContent::add_form_block()</a></span><br>
328 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/StandardFormContent.html#methodbuild_form_block">StandardFormContent::build_form_block()</a></span><br>
329 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/StandardFormContent.html#methodconfirm_action">StandardFormContent::confirm_action()</a></span><br>
330 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/StandardFormContent.html#methodform">StandardFormContent::form()</a></span><br>
331 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/StandardFormContent.html#methodform_action">StandardFormContent::form_action()</a></span><br>
332 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/StandardFormContent.html#methodform_confirm">StandardFormContent::form_confirm()</a></span><br>
333 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/StandardFormContent.html#methodform_content">StandardFormContent::form_content()</a></span><br>
334 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/StandardFormContent.html#methodform_content_buttons">StandardFormContent::form_content_buttons()</a></span><br>
335 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/StandardFormContent.html#methodset_form_title">StandardFormContent::set_form_title()</a></span><br>
336 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/StandardFormContent.html#method_div_wrapper">StandardFormContent::_div_wrapper()</a></span><br>
337 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/StandardFormContent.html#method_form_content_table">StandardFormContent::_form_content_table()</a></span><br>
338 </blockquote>
339 <!-- =========== Summary =========== -->
340 <p>Inherited From <span class="classname"><a href="../../phpHtmlLib/FormProcessing/FormContent.html">FormContent</a></span></p>
341 <blockquote>
342 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodFormContent">FormContent::FormContent()</a></span><br>
343 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_action">FormContent::add_action()</a></span><br>
344 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_cancel">FormContent::add_cancel()</a></span><br>
345 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_element">FormContent::add_element()</a></span><br>
346 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_error">FormContent::add_error()</a></span><br>
347 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_hidden_action">FormContent::add_hidden_action()</a></span><br>
348 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_hidden_element">FormContent::add_hidden_element()</a></span><br>
349 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_image_action">FormContent::add_image_action()</a></span><br>
350 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodbuild_confirm_table">FormContent::build_confirm_table()</a></span><br>
351 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodelement_form">FormContent::element_form()</a></span><br>
352 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodelement_label">FormContent::element_label()</a></span><br>
353 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform">FormContent::form()</a></span><br>
354 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_action">FormContent::form_action()</a></span><br>
355 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_backend_validation">FormContent::form_backend_validation()</a></span><br>
356 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_confirm">FormContent::form_confirm()</a></span><br>
357 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_errors">FormContent::form_errors()</a></span><br>
358 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_init_data">FormContent::form_init_data()</a></span><br>
359 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_init_elements">FormContent::form_init_elements()</a></span><br>
360 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_success">FormContent::form_success()</a></span><br>
361 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_action">FormContent::get_action()</a></span><br>
362 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_default_css">FormContent::get_default_css()</a></span><br>
363 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_element">FormContent::get_element()</a></span><br>
364 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_element_value">FormContent::get_element_value()</a></span><br>
365 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_error_array">FormContent::get_error_array()</a></span><br>
366 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_form_errors_width">FormContent::get_form_errors_width()</a></span><br>
367 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_form_tabindex">FormContent::get_form_tabindex()</a></span><br>
368 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_hidden_element_value">FormContent::get_hidden_element_value()</a></span><br>
369 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodhas_confirm">FormContent::has_confirm()</a></span><br>
370 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodhidden_element_label">FormContent::hidden_element_label()</a></span><br>
371 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodjavascript">FormContent::javascript()</a></span><br>
372 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodpre_confirm">FormContent::pre_confirm()</a></span><br>
373 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_action">FormContent::set_action()</a></span><br>
374 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_action_message">FormContent::set_action_message()</a></span><br>
375 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_cancel_action">FormContent::set_cancel_action()</a></span><br>
376 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_confirm">FormContent::set_confirm()</a></span><br>
377 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_default_css">FormContent::set_default_css()</a></span><br>
378 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_element_value">FormContent::set_element_value()</a></span><br>
379 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_error_css">FormContent::set_error_css()</a></span><br>
380 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_errors_title">FormContent::set_form_errors_title()</a></span><br>
381 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_errors_width">FormContent::set_form_errors_width()</a></span><br>
382 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_name">FormContent::set_form_name()</a></span><br>
383 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_tabindex">FormContent::set_form_tabindex()</a></span><br>
384 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_width">FormContent::set_form_width()</a></span><br>
385 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_hidden_element_value">FormContent::set_hidden_element_value()</a></span><br>
386 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_required_marker">FormContent::set_required_marker()</a></span><br>
387 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_required_text">FormContent::set_required_text()</a></span><br>
388 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_stripslashes">FormContent::set_stripslashes()</a></span><br>
389 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#method_pre_confirm">FormContent::_pre_confirm()</a></span><br>
390 <span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#method_test_element">FormContent::_test_element()</a></span><br>
391 </blockquote>
392
393 </div>
394 </div>
395
396
397 <p class="notes" id="credit">
398 Documentation generated on Thu, 1 Apr 2004 09:40:28 -0800 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC2</a>
399 </p>
400 </div></body>
401 </html>

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed