@@ -34,14 +34,14 @@ discard block |
||
34 | 34 | { |
35 | 35 | // {{{ constructor |
36 | 36 | |
37 | - /** |
|
38 | - * Class constructor |
|
39 | - * |
|
40 | - * @param string $elementName Header name |
|
41 | - * @param string $text Header text |
|
42 | - * @access public |
|
43 | - * @return void |
|
44 | - */ |
|
37 | + /** |
|
38 | + * Class constructor |
|
39 | + * |
|
40 | + * @param string $elementName Header name |
|
41 | + * @param string $text Header text |
|
42 | + * @access public |
|
43 | + * @return void |
|
44 | + */ |
|
45 | 45 | function HTML_QuickForm_header($elementName = null, $text = null) |
46 | 46 | { |
47 | 47 | if (!empty($elementName)) { |
@@ -54,13 +54,13 @@ discard block |
||
54 | 54 | // }}} |
55 | 55 | // {{{ accept() |
56 | 56 | |
57 | - /** |
|
58 | - * Accepts a renderer |
|
59 | - * |
|
60 | - * @param HTML_QuickForm_Renderer renderer object |
|
61 | - * @access public |
|
62 | - * @return void |
|
63 | - */ |
|
57 | + /** |
|
58 | + * Accepts a renderer |
|
59 | + * |
|
60 | + * @param HTML_QuickForm_Renderer renderer object |
|
61 | + * @access public |
|
62 | + * @return void |
|
63 | + */ |
|
64 | 64 | function accept(&$renderer, $required=false, $error=null) |
65 | 65 | { |
66 | 66 | $renderer->renderHeader($this); |
@@ -6,12 +6,12 @@ discard block |
||
6 | 6 | class HTML_QuickForm_advanced_settings extends HTML_QuickForm_static |
7 | 7 | { |
8 | 8 | /** |
9 | - * Class constructor |
|
10 | - * |
|
11 | - * @param string $text raw HTML to add |
|
12 | - * @access public |
|
13 | - * @return void |
|
14 | - */ |
|
9 | + * Class constructor |
|
10 | + * |
|
11 | + * @param string $text raw HTML to add |
|
12 | + * @access public |
|
13 | + * @return void |
|
14 | + */ |
|
15 | 15 | public function __construct($name = '', $label = '') |
16 | 16 | { |
17 | 17 | if (empty($label)) { |
@@ -26,13 +26,13 @@ discard block |
||
26 | 26 | $this->_type = 'html'; |
27 | 27 | } |
28 | 28 | |
29 | - /** |
|
30 | - * Accepts a renderer |
|
31 | - * |
|
32 | - * @param HTML_QuickForm_Renderer renderer object (only works with Default renderer!) |
|
33 | - * @access public |
|
34 | - * @return void |
|
35 | - */ |
|
29 | + /** |
|
30 | + * Accepts a renderer |
|
31 | + * |
|
32 | + * @param HTML_QuickForm_Renderer renderer object (only works with Default renderer!) |
|
33 | + * @access public |
|
34 | + * @return void |
|
35 | + */ |
|
36 | 36 | function accept(&$renderer, $required = false, $error = null) |
37 | 37 | { |
38 | 38 | $renderer->renderHtml($this); |
@@ -156,12 +156,12 @@ discard block |
||
156 | 156 | // }}} |
157 | 157 | // {{{ setValue() |
158 | 158 | |
159 | - /** |
|
160 | - * Sets the element's value |
|
161 | - * |
|
162 | - * @param mixed Element's value |
|
163 | - * @access public |
|
164 | - */ |
|
159 | + /** |
|
160 | + * Sets the element's value |
|
161 | + * |
|
162 | + * @param mixed Element's value |
|
163 | + * @access public |
|
164 | + */ |
|
165 | 165 | function setValue($value) |
166 | 166 | { |
167 | 167 | $this->setChecked(isset($this->_values[1]) && $value == $this->_values[1]); |
@@ -171,12 +171,12 @@ discard block |
||
171 | 171 | // }}} |
172 | 172 | // {{{ getValue() |
173 | 173 | |
174 | - /** |
|
175 | - * Returns the element's value |
|
176 | - * |
|
177 | - * @access public |
|
178 | - * @return mixed |
|
179 | - */ |
|
174 | + /** |
|
175 | + * Returns the element's value |
|
176 | + * |
|
177 | + * @access public |
|
178 | + * @return mixed |
|
179 | + */ |
|
180 | 180 | function getValue() |
181 | 181 | { |
182 | 182 | if (is_array($this->_values)) { |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | 'type' => 'hidden', |
206 | 206 | 'name' => $this->getName(), |
207 | 207 | 'value' => $this->_values[0] |
208 | - )) . ' />' . parent::toHtml(); |
|
208 | + )) . ' />' . parent::toHtml(); |
|
209 | 209 | |
210 | 210 | } |
211 | 211 | } //end func toHtml |
@@ -213,14 +213,14 @@ discard block |
||
213 | 213 | // }}} |
214 | 214 | // {{{ getFrozenHtml() |
215 | 215 | |
216 | - /** |
|
217 | - * Unlike checkbox, this has to append a hidden input in both |
|
218 | - * checked and non-checked states |
|
219 | - */ |
|
216 | + /** |
|
217 | + * Unlike checkbox, this has to append a hidden input in both |
|
218 | + * checked and non-checked states |
|
219 | + */ |
|
220 | 220 | function getFrozenHtml() |
221 | 221 | { |
222 | 222 | return ($this->getChecked()? '<tt>[x]</tt>': '<tt>[ ]</tt>') . |
223 | - $this->_getPersistantData(); |
|
223 | + $this->_getPersistantData(); |
|
224 | 224 | } |
225 | 225 | |
226 | 226 | // }}} |
@@ -262,10 +262,10 @@ discard block |
||
262 | 262 | // }}} |
263 | 263 | // {{{ exportValue() |
264 | 264 | |
265 | - /** |
|
266 | - * This element has a value even if it is not checked, thus we override |
|
267 | - * checkbox's behaviour here |
|
268 | - */ |
|
265 | + /** |
|
266 | + * This element has a value even if it is not checked, thus we override |
|
267 | + * checkbox's behaviour here |
|
268 | + */ |
|
269 | 269 | function exportValue(&$submitValues, $assoc) |
270 | 270 | { |
271 | 271 | $value = $this->_findValue($submitValues); |
@@ -37,26 +37,26 @@ |
||
37 | 37 | class HTML_QuickForm_html extends HTML_QuickForm_static |
38 | 38 | { |
39 | 39 | |
40 | - /** |
|
41 | - * Class constructor |
|
42 | - * |
|
43 | - * @param string $text raw HTML to add |
|
44 | - * @access public |
|
45 | - * @return void |
|
46 | - */ |
|
40 | + /** |
|
41 | + * Class constructor |
|
42 | + * |
|
43 | + * @param string $text raw HTML to add |
|
44 | + * @access public |
|
45 | + * @return void |
|
46 | + */ |
|
47 | 47 | public function __construct($text = null) |
48 | 48 | { |
49 | 49 | parent::__construct(null, null, $text); |
50 | 50 | $this->_type = 'html'; |
51 | 51 | } |
52 | 52 | |
53 | - /** |
|
54 | - * Accepts a renderer |
|
55 | - * |
|
56 | - * @param HTML_QuickForm_Renderer renderer object (only works with Default renderer!) |
|
57 | - * @access public |
|
58 | - * @return void |
|
59 | - */ |
|
53 | + /** |
|
54 | + * Accepts a renderer |
|
55 | + * |
|
56 | + * @param HTML_QuickForm_Renderer renderer object (only works with Default renderer!) |
|
57 | + * @access public |
|
58 | + * @return void |
|
59 | + */ |
|
60 | 60 | public function accept(&$renderer, $required = false, $error = null) |
61 | 61 | { |
62 | 62 | $renderer->renderHtml($this); |
@@ -91,6 +91,6 @@ |
||
91 | 91 | { |
92 | 92 | $value = $this->getValue(); |
93 | 93 | return ('' != $value? '**********': ' ') . |
94 | - $this->_getPersistantData(); |
|
94 | + $this->_getPersistantData(); |
|
95 | 95 | } |
96 | 96 | } |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | { |
151 | 151 | if ($this->getChecked()) { |
152 | 152 | return '<code>(x)</code>' . |
153 | - $this->_getPersistantData(); |
|
153 | + $this->_getPersistantData(); |
|
154 | 154 | } else { |
155 | 155 | return '<code>( )</code>'; |
156 | 156 | } |
@@ -224,9 +224,9 @@ discard block |
||
224 | 224 | return true; |
225 | 225 | } |
226 | 226 | |
227 | - /** |
|
228 | - * Returns the value attribute if the radio is checked, null if it is not |
|
229 | - */ |
|
227 | + /** |
|
228 | + * Returns the value attribute if the radio is checked, null if it is not |
|
229 | + */ |
|
230 | 230 | public function exportValue(&$submitValues, $assoc = false) |
231 | 231 | { |
232 | 232 | $value = $this->_findValue($submitValues); |
@@ -100,9 +100,9 @@ |
||
100 | 100 | // }}} |
101 | 101 | // {{{ accept() |
102 | 102 | |
103 | - /** |
|
104 | - * This is essentially a hidden element and should be rendered as one |
|
105 | - */ |
|
103 | + /** |
|
104 | + * This is essentially a hidden element and should be rendered as one |
|
105 | + */ |
|
106 | 106 | function accept(&$renderer) |
107 | 107 | { |
108 | 108 | $renderer->renderHidden($this); |
@@ -40,48 +40,48 @@ discard block |
||
40 | 40 | */ |
41 | 41 | class HTML_QuickForm_Controller |
42 | 42 | { |
43 | - /** |
|
44 | - * Contains the pages (HTML_QuickForm_Page objects) of the miultipage form |
|
45 | - * @var array |
|
46 | - */ |
|
43 | + /** |
|
44 | + * Contains the pages (HTML_QuickForm_Page objects) of the miultipage form |
|
45 | + * @var array |
|
46 | + */ |
|
47 | 47 | var $_pages = array(); |
48 | 48 | |
49 | - /** |
|
50 | - * Contains the mapping of actions to corresponding HTML_QuickForm_Action objects |
|
51 | - * @var array |
|
52 | - */ |
|
49 | + /** |
|
50 | + * Contains the mapping of actions to corresponding HTML_QuickForm_Action objects |
|
51 | + * @var array |
|
52 | + */ |
|
53 | 53 | var $_actions = array(); |
54 | 54 | |
55 | - /** |
|
56 | - * Name of the form, used to store the values in session |
|
57 | - * @var string |
|
58 | - */ |
|
55 | + /** |
|
56 | + * Name of the form, used to store the values in session |
|
57 | + * @var string |
|
58 | + */ |
|
59 | 59 | var $_name; |
60 | 60 | |
61 | - /** |
|
62 | - * Whether the form is modal |
|
63 | - * @var bool |
|
64 | - */ |
|
61 | + /** |
|
62 | + * Whether the form is modal |
|
63 | + * @var bool |
|
64 | + */ |
|
65 | 65 | var $_modal = true; |
66 | 66 | |
67 | - /** |
|
68 | - * The action extracted from HTTP request: array('page', 'action') |
|
69 | - * @var array |
|
70 | - */ |
|
67 | + /** |
|
68 | + * The action extracted from HTTP request: array('page', 'action') |
|
69 | + * @var array |
|
70 | + */ |
|
71 | 71 | var $_actionName = null; |
72 | 72 | |
73 | - /** |
|
74 | - * Class constructor. |
|
75 | - * |
|
76 | - * Sets the form name and modal/non-modal behaviuor. Different multipage |
|
77 | - * forms should have different names, as they are used to store form |
|
78 | - * values in session. Modal forms allow passing to the next page only when |
|
79 | - * all of the previous pages are valid. |
|
80 | - * |
|
81 | - * @access public |
|
82 | - * @param string form name |
|
83 | - * @param bool whether the form is modal |
|
84 | - */ |
|
73 | + /** |
|
74 | + * Class constructor. |
|
75 | + * |
|
76 | + * Sets the form name and modal/non-modal behaviuor. Different multipage |
|
77 | + * forms should have different names, as they are used to store form |
|
78 | + * values in session. Modal forms allow passing to the next page only when |
|
79 | + * all of the previous pages are valid. |
|
80 | + * |
|
81 | + * @access public |
|
82 | + * @param string form name |
|
83 | + * @param bool whether the form is modal |
|
84 | + */ |
|
85 | 85 | function HTML_QuickForm_Controller($name, $modal = true) |
86 | 86 | { |
87 | 87 | $this->_name = $name; |
@@ -89,17 +89,17 @@ discard block |
||
89 | 89 | } |
90 | 90 | |
91 | 91 | |
92 | - /** |
|
93 | - * Returns a reference to a session variable containing the form-page |
|
94 | - * values and pages' validation status. |
|
95 | - * |
|
96 | - * This is a "low-level" method, use exportValues() if you want just to |
|
97 | - * get the form's values. |
|
98 | - * |
|
99 | - * @access public |
|
100 | - * @param bool If true, then reset the container: clear all default, constant and submitted values |
|
101 | - * @return array |
|
102 | - */ |
|
92 | + /** |
|
93 | + * Returns a reference to a session variable containing the form-page |
|
94 | + * values and pages' validation status. |
|
95 | + * |
|
96 | + * This is a "low-level" method, use exportValues() if you want just to |
|
97 | + * get the form's values. |
|
98 | + * |
|
99 | + * @access public |
|
100 | + * @param bool If true, then reset the container: clear all default, constant and submitted values |
|
101 | + * @return array |
|
102 | + */ |
|
103 | 103 | function &container($reset = false) |
104 | 104 | { |
105 | 105 | $name = '_' . $this->_name . '_container'; |
@@ -121,15 +121,15 @@ discard block |
||
121 | 121 | } |
122 | 122 | |
123 | 123 | |
124 | - /** |
|
125 | - * Processes the request. |
|
126 | - * |
|
127 | - * This finds the current page, the current action and passes the action |
|
128 | - * to the page's handle() method. |
|
129 | - * |
|
130 | - * @access public |
|
131 | - * @throws PEAR_Error |
|
132 | - */ |
|
124 | + /** |
|
125 | + * Processes the request. |
|
126 | + * |
|
127 | + * This finds the current page, the current action and passes the action |
|
128 | + * to the page's handle() method. |
|
129 | + * |
|
130 | + * @access public |
|
131 | + * @throws PEAR_Error |
|
132 | + */ |
|
133 | 133 | function run() |
134 | 134 | { |
135 | 135 | // the names of the action and page should be saved |
@@ -138,25 +138,25 @@ discard block |
||
138 | 138 | } |
139 | 139 | |
140 | 140 | |
141 | - /** |
|
142 | - * Registers a handler for a specific action. |
|
143 | - * |
|
144 | - * @access public |
|
145 | - * @param string name of the action |
|
146 | - * @param HTML_QuickForm_Action the handler for the action |
|
147 | - */ |
|
141 | + /** |
|
142 | + * Registers a handler for a specific action. |
|
143 | + * |
|
144 | + * @access public |
|
145 | + * @param string name of the action |
|
146 | + * @param HTML_QuickForm_Action the handler for the action |
|
147 | + */ |
|
148 | 148 | function addAction($actionName, &$action) |
149 | 149 | { |
150 | 150 | $this->_actions[$actionName] =& $action; |
151 | 151 | } |
152 | 152 | |
153 | 153 | |
154 | - /** |
|
155 | - * Adds a new page to the form |
|
156 | - * |
|
157 | - * @access public |
|
158 | - * @param HTML_QuickForm_Page |
|
159 | - */ |
|
154 | + /** |
|
155 | + * Adds a new page to the form |
|
156 | + * |
|
157 | + * @access public |
|
158 | + * @param HTML_QuickForm_Page |
|
159 | + */ |
|
160 | 160 | function addPage(&$page) |
161 | 161 | { |
162 | 162 | $page->controller =& $this; |
@@ -164,14 +164,14 @@ discard block |
||
164 | 164 | } |
165 | 165 | |
166 | 166 | |
167 | - /** |
|
168 | - * Returns a page |
|
169 | - * |
|
170 | - * @access public |
|
171 | - * @param string Name of a page |
|
172 | - * @return HTML_QuickForm_Page A reference to the page |
|
173 | - * @throws PEAR_Error |
|
174 | - */ |
|
167 | + /** |
|
168 | + * Returns a page |
|
169 | + * |
|
170 | + * @access public |
|
171 | + * @param string Name of a page |
|
172 | + * @return HTML_QuickForm_Page A reference to the page |
|
173 | + * @throws PEAR_Error |
|
174 | + */ |
|
175 | 175 | function &getPage($pageName) |
176 | 176 | { |
177 | 177 | if (!isset($this->_pages[$pageName])) { |
@@ -181,18 +181,18 @@ discard block |
||
181 | 181 | } |
182 | 182 | |
183 | 183 | |
184 | - /** |
|
185 | - * Handles an action. |
|
186 | - * |
|
187 | - * This will be called if the page itself does not have a handler |
|
188 | - * to a specific action. The method also loads and uses default handlers |
|
189 | - * for common actions, if specific ones were not added. |
|
190 | - * |
|
191 | - * @access public |
|
192 | - * @param HTML_QuickForm_Page The page that failed to handle the action |
|
193 | - * @param string Name of the action |
|
194 | - * @throws PEAR_Error |
|
195 | - */ |
|
184 | + /** |
|
185 | + * Handles an action. |
|
186 | + * |
|
187 | + * This will be called if the page itself does not have a handler |
|
188 | + * to a specific action. The method also loads and uses default handlers |
|
189 | + * for common actions, if specific ones were not added. |
|
190 | + * |
|
191 | + * @access public |
|
192 | + * @param HTML_QuickForm_Page The page that failed to handle the action |
|
193 | + * @param string Name of the action |
|
194 | + * @throws PEAR_Error |
|
195 | + */ |
|
196 | 196 | function handle(&$page, $actionName) |
197 | 197 | { |
198 | 198 | if (isset($this->_actions[$actionName])) { |
@@ -215,26 +215,26 @@ discard block |
||
215 | 215 | } |
216 | 216 | |
217 | 217 | |
218 | - /** |
|
219 | - * Checks whether the form is modal. |
|
220 | - * |
|
221 | - * @access public |
|
222 | - * @return bool |
|
223 | - */ |
|
218 | + /** |
|
219 | + * Checks whether the form is modal. |
|
220 | + * |
|
221 | + * @access public |
|
222 | + * @return bool |
|
223 | + */ |
|
224 | 224 | function isModal() |
225 | 225 | { |
226 | 226 | return $this->_modal; |
227 | 227 | } |
228 | 228 | |
229 | 229 | |
230 | - /** |
|
231 | - * Checks whether the pages of the controller are valid |
|
232 | - * |
|
233 | - * @access public |
|
234 | - * @param string If set, check only the pages before (not including) that page |
|
235 | - * @return bool |
|
236 | - * @throws PEAR_Error |
|
237 | - */ |
|
230 | + /** |
|
231 | + * Checks whether the pages of the controller are valid |
|
232 | + * |
|
233 | + * @access public |
|
234 | + * @param string If set, check only the pages before (not including) that page |
|
235 | + * @return bool |
|
236 | + * @throws PEAR_Error |
|
237 | + */ |
|
238 | 238 | function isValid($pageName = null) |
239 | 239 | { |
240 | 240 | $data =& $this->container(); |
@@ -273,13 +273,13 @@ discard block |
||
273 | 273 | } |
274 | 274 | |
275 | 275 | |
276 | - /** |
|
277 | - * Returns the name of the page before the given. |
|
278 | - * |
|
279 | - * @access public |
|
280 | - * @param string |
|
281 | - * @return string |
|
282 | - */ |
|
276 | + /** |
|
277 | + * Returns the name of the page before the given. |
|
278 | + * |
|
279 | + * @access public |
|
280 | + * @param string |
|
281 | + * @return string |
|
282 | + */ |
|
283 | 283 | function getPrevName($pageName) |
284 | 284 | { |
285 | 285 | $prev = null; |
@@ -292,13 +292,13 @@ discard block |
||
292 | 292 | } |
293 | 293 | |
294 | 294 | |
295 | - /** |
|
296 | - * Returns the name of the page after the given. |
|
297 | - * |
|
298 | - * @access public |
|
299 | - * @param string |
|
300 | - * @return string |
|
301 | - */ |
|
295 | + /** |
|
296 | + * Returns the name of the page after the given. |
|
297 | + * |
|
298 | + * @access public |
|
299 | + * @param string |
|
300 | + * @return string |
|
301 | + */ |
|
302 | 302 | function getNextName($pageName) |
303 | 303 | { |
304 | 304 | $prev = null; |
@@ -312,12 +312,12 @@ discard block |
||
312 | 312 | } |
313 | 313 | |
314 | 314 | |
315 | - /** |
|
316 | - * Finds the (first) invalid page |
|
317 | - * |
|
318 | - * @access public |
|
319 | - * @return string Name of an invalid page |
|
320 | - */ |
|
315 | + /** |
|
316 | + * Finds the (first) invalid page |
|
317 | + * |
|
318 | + * @access public |
|
319 | + * @return string Name of an invalid page |
|
320 | + */ |
|
321 | 321 | function findInvalid() |
322 | 322 | { |
323 | 323 | $data =& $this->container(); |
@@ -330,13 +330,13 @@ discard block |
||
330 | 330 | } |
331 | 331 | |
332 | 332 | |
333 | - /** |
|
334 | - * Extracts the names of the current page and the current action from |
|
335 | - * HTTP request data. |
|
336 | - * |
|
337 | - * @access public |
|
338 | - * @return array first element is page name, second is action name |
|
339 | - */ |
|
333 | + /** |
|
334 | + * Extracts the names of the current page and the current action from |
|
335 | + * HTTP request data. |
|
336 | + * |
|
337 | + * @access public |
|
338 | + * @return array first element is page name, second is action name |
|
339 | + */ |
|
340 | 340 | function getActionName() |
341 | 341 | { |
342 | 342 | if (is_array($this->_actionName)) { |
@@ -360,14 +360,14 @@ discard block |
||
360 | 360 | } |
361 | 361 | |
362 | 362 | |
363 | - /** |
|
364 | - * Initializes default form values. |
|
365 | - * |
|
366 | - * @access public |
|
367 | - * @param array default values |
|
368 | - * @param mixed filter(s) to apply to default values |
|
369 | - * @throws PEAR_Error |
|
370 | - */ |
|
363 | + /** |
|
364 | + * Initializes default form values. |
|
365 | + * |
|
366 | + * @access public |
|
367 | + * @param array default values |
|
368 | + * @param mixed filter(s) to apply to default values |
|
369 | + * @throws PEAR_Error |
|
370 | + */ |
|
371 | 371 | function setDefaults($defaultValues = null, $filter = null) |
372 | 372 | { |
373 | 373 | if (is_array($defaultValues)) { |
@@ -377,15 +377,15 @@ discard block |
||
377 | 377 | } |
378 | 378 | |
379 | 379 | |
380 | - /** |
|
381 | - * Initializes constant form values. |
|
382 | - * These values won't get overridden by POST or GET vars |
|
383 | - * |
|
384 | - * @access public |
|
385 | - * @param array constant values |
|
386 | - * @param mixed filter(s) to apply to constant values |
|
387 | - * @throws PEAR_Error |
|
388 | - */ |
|
380 | + /** |
|
381 | + * Initializes constant form values. |
|
382 | + * These values won't get overridden by POST or GET vars |
|
383 | + * |
|
384 | + * @access public |
|
385 | + * @param array constant values |
|
386 | + * @param mixed filter(s) to apply to constant values |
|
387 | + * @throws PEAR_Error |
|
388 | + */ |
|
389 | 389 | function setConstants($constantValues = null, $filter = null) |
390 | 390 | { |
391 | 391 | if (is_array($constantValues)) { |
@@ -395,15 +395,15 @@ discard block |
||
395 | 395 | } |
396 | 396 | |
397 | 397 | |
398 | - /** |
|
399 | - * Adds new values to defaults or constants array |
|
400 | - * |
|
401 | - * @access private |
|
402 | - * @param array array to add values to (either defaults or constants) |
|
403 | - * @param array values to add |
|
404 | - * @param mixed filters to apply to new values |
|
405 | - * @throws PEAR_Error |
|
406 | - */ |
|
398 | + /** |
|
399 | + * Adds new values to defaults or constants array |
|
400 | + * |
|
401 | + * @access private |
|
402 | + * @param array array to add values to (either defaults or constants) |
|
403 | + * @param array values to add |
|
404 | + * @param mixed filters to apply to new values |
|
405 | + * @throws PEAR_Error |
|
406 | + */ |
|
407 | 407 | function _setDefaultsOrConstants(&$values, $newValues, $filter = null) |
408 | 408 | { |
409 | 409 | if (isset($filter)) { |
@@ -425,14 +425,14 @@ discard block |
||
425 | 425 | } |
426 | 426 | |
427 | 427 | |
428 | - /** |
|
429 | - * Recursively applies the callback function to the value |
|
430 | - * |
|
431 | - * @param mixed Callback function |
|
432 | - * @param mixed Value to process |
|
433 | - * @access private |
|
434 | - * @return mixed Processed values |
|
435 | - */ |
|
428 | + /** |
|
429 | + * Recursively applies the callback function to the value |
|
430 | + * |
|
431 | + * @param mixed Callback function |
|
432 | + * @param mixed Value to process |
|
433 | + * @access private |
|
434 | + * @return mixed Processed values |
|
435 | + */ |
|
436 | 436 | function _arrayMapRecursive($callback, $value) |
437 | 437 | { |
438 | 438 | if (!is_array($value)) { |
@@ -447,12 +447,12 @@ discard block |
||
447 | 447 | } |
448 | 448 | |
449 | 449 | |
450 | - /** |
|
451 | - * Sets the default values for the given page |
|
452 | - * |
|
453 | - * @access public |
|
454 | - * @param string Name of a page |
|
455 | - */ |
|
450 | + /** |
|
451 | + * Sets the default values for the given page |
|
452 | + * |
|
453 | + * @access public |
|
454 | + * @param string Name of a page |
|
455 | + */ |
|
456 | 456 | function applyDefaults($pageName) |
457 | 457 | { |
458 | 458 | $data =& $this->container(); |
@@ -465,13 +465,13 @@ discard block |
||
465 | 465 | } |
466 | 466 | |
467 | 467 | |
468 | - /** |
|
469 | - * Returns the form's values |
|
470 | - * |
|
471 | - * @access public |
|
472 | - * @param string name of the page, if not set then returns values for all pages |
|
473 | - * @return array |
|
474 | - */ |
|
468 | + /** |
|
469 | + * Returns the form's values |
|
470 | + * |
|
471 | + * @access public |
|
472 | + * @param string name of the page, if not set then returns values for all pages |
|
473 | + * @return array |
|
474 | + */ |
|
475 | 475 | function exportValues($pageName = null) |
476 | 476 | { |
477 | 477 | $data =& $this->container(); |
@@ -497,14 +497,14 @@ discard block |
||
497 | 497 | } |
498 | 498 | |
499 | 499 | |
500 | - /** |
|
501 | - * Returns the element's value |
|
502 | - * |
|
503 | - * @access public |
|
504 | - * @param string name of the page |
|
505 | - * @param string name of the element in the page |
|
506 | - * @return mixed value for the element |
|
507 | - */ |
|
500 | + /** |
|
501 | + * Returns the element's value |
|
502 | + * |
|
503 | + * @access public |
|
504 | + * @param string name of the page |
|
505 | + * @param string name of the element in the page |
|
506 | + * @return mixed value for the element |
|
507 | + */ |
|
508 | 508 | function exportValue($pageName, $elementName) |
509 | 509 | { |
510 | 510 | $data =& $this->container(); |
@@ -183,9 +183,9 @@ |
||
183 | 183 | return true; |
184 | 184 | } |
185 | 185 | |
186 | - /** |
|
187 | - * We don't need values from button-type elements (except submit) and files |
|
188 | - */ |
|
186 | + /** |
|
187 | + * We don't need values from button-type elements (except submit) and files |
|
188 | + */ |
|
189 | 189 | function exportValue(&$submitValues, $assoc = false) |
190 | 190 | { |
191 | 191 | $type = $this->getType(); |