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 MasterSlaveForm</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 MasterSlaveForm</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> Sumedh Thakar <<a href="mailto:sumedh_thakar@yahoo.com">sumedh_thakar@yahoo.com</a>></li> |
29 |
</ul> |
30 |
<p class="notes"> |
31 |
Located in <a class="field" href="_examples_form4_php.html">/examples/form4.php</a> (line <span class="field">149</span>) |
32 |
</p> |
33 |
|
34 |
|
35 |
<pre><a href="../../phpHtmlLib/FormProcessing/FormContent.html">FormContent</a> |
36 |
| |
37 |
--MasterSlaveForm</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_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 |
</div> |
82 |
</div> |
83 |
</div> |
84 |
|
85 |
<a name="sec-vars"></a> |
86 |
<div class="info-box"> |
87 |
<div class="info-box-title">Variables</div> |
88 |
<div class="nav-bar"> |
89 |
<a href="#sec-description">Description</a> | |
90 |
<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) |
91 |
|
92 |
|
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 |
|
99 |
<h4>Inherited Variables</h4> |
100 |
<A NAME='inherited_vars'><!-- --></A> |
101 |
<p>Inherited from <span class="classname"><a href="../../phpHtmlLib/FormProcessing/FormContent.html">FormContent</a></span></p> |
102 |
<blockquote> |
103 |
<span class="var-title"> |
104 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_action_counter">FormContent::$_action_counter</a></span><br> |
105 |
</span> |
106 |
<span class="var-title"> |
107 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_action_message">FormContent::$_action_message</a></span><br> |
108 |
</span> |
109 |
<span class="var-title"> |
110 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_cancel_action">FormContent::$_cancel_action</a></span><br> |
111 |
</span> |
112 |
<span class="var-title"> |
113 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_default_label_css">FormContent::$_default_label_css</a></span><br> |
114 |
</span> |
115 |
<span class="var-title"> |
116 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_elements">FormContent::$_elements</a></span><br> |
117 |
</span> |
118 |
<span class="var-title"> |
119 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_error_label_css">FormContent::$_error_label_css</a></span><br> |
120 |
</span> |
121 |
<span class="var-title"> |
122 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_file_elements">FormContent::$_file_elements</a></span><br> |
123 |
</span> |
124 |
<span class="var-title"> |
125 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_form_errors_title">FormContent::$_form_errors_title</a></span><br> |
126 |
</span> |
127 |
<span class="var-title"> |
128 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_form_errors_width">FormContent::$_form_errors_width</a></span><br> |
129 |
</span> |
130 |
<span class="var-title"> |
131 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_form_name">FormContent::$_form_name</a></span><br> |
132 |
</span> |
133 |
<span class="var-title"> |
134 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_form_on_submit">FormContent::$_form_on_submit</a></span><br> |
135 |
</span> |
136 |
<span class="var-title"> |
137 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_has_confirm">FormContent::$_has_confirm</a></span><br> |
138 |
</span> |
139 |
<span class="var-title"> |
140 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_has_file_element">FormContent::$_has_file_element</a></span><br> |
141 |
</span> |
142 |
<span class="var-title"> |
143 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_hidden_elements">FormContent::$_hidden_elements</a></span><br> |
144 |
</span> |
145 |
<span class="var-title"> |
146 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_required_field_marker">FormContent::$_required_field_marker</a></span><br> |
147 |
</span> |
148 |
<span class="var-title"> |
149 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_required_field_text">FormContent::$_required_field_text</a></span><br> |
150 |
</span> |
151 |
<span class="var-title"> |
152 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_stripslashes">FormContent::$_stripslashes</a></span><br> |
153 |
</span> |
154 |
<span class="var-title"> |
155 |
<span class="var-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#var$_width">FormContent::$_width</a></span><br> |
156 |
</span> |
157 |
</blockquote> |
158 |
|
159 |
</div> |
160 |
</div> |
161 |
|
162 |
<a name="sec-methods"></a> |
163 |
<div class="info-box"> |
164 |
<div class="info-box-title">Methods</div> |
165 |
<div class="nav-bar"> |
166 |
<a href="#sec-description">Description</a> | |
167 |
<a href="#sec-vars">Vars</a> |
168 |
<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) |
169 |
|
170 |
</div> |
171 |
<div class="info-box-body"> |
172 |
<A NAME='method_detail'></A> |
173 |
<a name="methodform" id="form"><!-- --></a> |
174 |
<div class="evenrow"> |
175 |
|
176 |
<div class="method-header"> |
177 |
<span class="method-title">form</span> (line <span class="line-number">217</span>) |
178 |
</div> |
179 |
|
180 |
<!-- ========== Info from phpDoc block ========= --> |
181 |
<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> |
182 |
|
183 |
<div class="method-signature"> |
184 |
<span class="method-result">void</span> |
185 |
<span class="method-name"> |
186 |
form |
187 |
</span> |
188 |
() |
189 |
</div> |
190 |
|
191 |
|
192 |
<hr class="separator" /> |
193 |
<div class="notes">Redefinition of:</div> |
194 |
<dl> |
195 |
<dt><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform">FormContent::form()</a></dt> |
196 |
<dd>This method builds the html form.</dd> |
197 |
</dl> |
198 |
|
199 |
</div> |
200 |
<a name="methodform_action" id="form_action"><!-- --></a> |
201 |
<div class="oddrow"> |
202 |
|
203 |
<div class="method-header"> |
204 |
<span class="method-title">form_action</span> (line <span class="line-number">246</span>) |
205 |
</div> |
206 |
|
207 |
<!-- ========== Info from phpDoc block ========= --> |
208 |
<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> |
209 |
|
210 |
<div class="method-signature"> |
211 |
<span class="method-result">void</span> |
212 |
<span class="method-name"> |
213 |
form_action |
214 |
</span> |
215 |
() |
216 |
</div> |
217 |
|
218 |
|
219 |
<hr class="separator" /> |
220 |
<div class="notes">Redefinition of:</div> |
221 |
<dl> |
222 |
<dt><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_action">FormContent::form_action()</a></dt> |
223 |
<dd>This method handles the</dd> |
224 |
</dl> |
225 |
|
226 |
</div> |
227 |
<a name="methodform_init_data" id="form_init_data"><!-- --></a> |
228 |
<div class="evenrow"> |
229 |
|
230 |
<div class="method-header"> |
231 |
<span class="method-title">form_init_data</span> (line <span class="line-number">195</span>) |
232 |
</div> |
233 |
|
234 |
<!-- ========== Info from phpDoc block ========= --> |
235 |
<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> |
236 |
|
237 |
<div class="method-signature"> |
238 |
<span class="method-result">void</span> |
239 |
<span class="method-name"> |
240 |
form_init_data |
241 |
</span> |
242 |
() |
243 |
</div> |
244 |
|
245 |
|
246 |
<hr class="separator" /> |
247 |
<div class="notes">Redefinition of:</div> |
248 |
<dl> |
249 |
<dt><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_init_data">FormContent::form_init_data()</a></dt> |
250 |
<dd>This method is called by the</dd> |
251 |
</dl> |
252 |
|
253 |
</div> |
254 |
<a name="methodform_init_elements" id="form_init_elements"><!-- --></a> |
255 |
<div class="oddrow"> |
256 |
|
257 |
<div class="method-header"> |
258 |
<span class="method-title">form_init_elements</span> (line <span class="line-number">157</span>) |
259 |
</div> |
260 |
|
261 |
<!-- ========== Info from phpDoc block ========= --> |
262 |
<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> |
263 |
|
264 |
<div class="method-signature"> |
265 |
<span class="method-result">void</span> |
266 |
<span class="method-name"> |
267 |
form_init_elements |
268 |
</span> |
269 |
() |
270 |
</div> |
271 |
|
272 |
|
273 |
<hr class="separator" /> |
274 |
<div class="notes">Redefinition of:</div> |
275 |
<dl> |
276 |
<dt><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_init_elements">FormContent::form_init_elements()</a></dt> |
277 |
<dd>This method is what is called to build the list of FormElements that will be used by this form.</dd> |
278 |
</dl> |
279 |
|
280 |
</div> |
281 |
<h4>Inherited Methods</h4> |
282 |
<a name='inherited_methods'><!-- --></a> |
283 |
<!-- =========== Summary =========== --> |
284 |
<p>Inherited From <span class="classname"><a href="../../phpHtmlLib/FormProcessing/FormContent.html">FormContent</a></span></p> |
285 |
<blockquote> |
286 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodFormContent">FormContent::FormContent()</a></span><br> |
287 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_action">FormContent::add_action()</a></span><br> |
288 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_cancel">FormContent::add_cancel()</a></span><br> |
289 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_element">FormContent::add_element()</a></span><br> |
290 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_error">FormContent::add_error()</a></span><br> |
291 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_hidden_action">FormContent::add_hidden_action()</a></span><br> |
292 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_hidden_element">FormContent::add_hidden_element()</a></span><br> |
293 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodadd_image_action">FormContent::add_image_action()</a></span><br> |
294 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodbuild_confirm_table">FormContent::build_confirm_table()</a></span><br> |
295 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodelement_form">FormContent::element_form()</a></span><br> |
296 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodelement_label">FormContent::element_label()</a></span><br> |
297 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform">FormContent::form()</a></span><br> |
298 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_action">FormContent::form_action()</a></span><br> |
299 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_backend_validation">FormContent::form_backend_validation()</a></span><br> |
300 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_confirm">FormContent::form_confirm()</a></span><br> |
301 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_errors">FormContent::form_errors()</a></span><br> |
302 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_init_data">FormContent::form_init_data()</a></span><br> |
303 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_init_elements">FormContent::form_init_elements()</a></span><br> |
304 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodform_success">FormContent::form_success()</a></span><br> |
305 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_action">FormContent::get_action()</a></span><br> |
306 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_default_css">FormContent::get_default_css()</a></span><br> |
307 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_element">FormContent::get_element()</a></span><br> |
308 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_element_value">FormContent::get_element_value()</a></span><br> |
309 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_error_array">FormContent::get_error_array()</a></span><br> |
310 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_form_errors_width">FormContent::get_form_errors_width()</a></span><br> |
311 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_form_tabindex">FormContent::get_form_tabindex()</a></span><br> |
312 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodget_hidden_element_value">FormContent::get_hidden_element_value()</a></span><br> |
313 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodhas_confirm">FormContent::has_confirm()</a></span><br> |
314 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodhidden_element_label">FormContent::hidden_element_label()</a></span><br> |
315 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodjavascript">FormContent::javascript()</a></span><br> |
316 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodpre_confirm">FormContent::pre_confirm()</a></span><br> |
317 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_action">FormContent::set_action()</a></span><br> |
318 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_action_message">FormContent::set_action_message()</a></span><br> |
319 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_cancel_action">FormContent::set_cancel_action()</a></span><br> |
320 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_confirm">FormContent::set_confirm()</a></span><br> |
321 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_default_css">FormContent::set_default_css()</a></span><br> |
322 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_element_value">FormContent::set_element_value()</a></span><br> |
323 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_error_css">FormContent::set_error_css()</a></span><br> |
324 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_errors_title">FormContent::set_form_errors_title()</a></span><br> |
325 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_errors_width">FormContent::set_form_errors_width()</a></span><br> |
326 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_name">FormContent::set_form_name()</a></span><br> |
327 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_tabindex">FormContent::set_form_tabindex()</a></span><br> |
328 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_form_width">FormContent::set_form_width()</a></span><br> |
329 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_hidden_element_value">FormContent::set_hidden_element_value()</a></span><br> |
330 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_required_marker">FormContent::set_required_marker()</a></span><br> |
331 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_required_text">FormContent::set_required_text()</a></span><br> |
332 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#methodset_stripslashes">FormContent::set_stripslashes()</a></span><br> |
333 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#method_pre_confirm">FormContent::_pre_confirm()</a></span><br> |
334 |
<span class="method-name"><a href="../../phpHtmlLib/FormProcessing/FormContent.html#method_test_element">FormContent::_test_element()</a></span><br> |
335 |
</blockquote> |
336 |
|
337 |
</div> |
338 |
</div> |
339 |
|
340 |
|
341 |
<p class="notes" id="credit"> |
342 |
Documentation generated on Thu, 1 Apr 2004 09:38:48 -0800 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC2</a> |
343 |
</p> |
344 |
</div></body> |
345 |
</html> |