Index: trunk/extensions/SemanticForms/includes/forminputs/SF_FormInput.php |
— | — | @@ -268,48 +268,4 @@ |
269 | 269 | return array(); |
270 | 270 | } |
271 | 271 | |
272 | | - |
273 | | -// /** |
274 | | -// * SFFormPrinter depends on a statically callable function. |
275 | | -// * |
276 | | -// * @deprecated |
277 | | -// * @param <type> $cur_value |
278 | | -// * @param <type> $input_name |
279 | | -// * @param <type> $is_mandatory |
280 | | -// * @param <type> $is_disabled |
281 | | -// * @param <type> $other_args |
282 | | -// */ |
283 | | -// public static function getHTML( $cur_value, $input_name, $is_mandatory, $is_disabled, $other_args ) { |
284 | | -// global $sfgFieldNum; |
285 | | -// |
286 | | -// $input = new self( $sfgFieldNum, $cur_value, $input_name, $is_mandatory, $is_disabled, $other_args ); |
287 | | -// |
288 | | -// $initFunctionData = $input->getJsInitFunctionData(); |
289 | | -// |
290 | | -// if ( $initFunctionData ) { |
291 | | -// $jstext = <<<JAVASCRIPT |
292 | | -// jQuery(function(){ jQuery('#input_{$sfgFieldNum}').SemanticForms_registerInputInit( {$initFunctionData['name']}, {$initFunctionData['param']} ); }); |
293 | | -// JAVASCRIPT; |
294 | | -// |
295 | | -// // insert the code of the JS init function into the pages code |
296 | | -// $wgOut->addScript( '<script type="text/javascript">' . $jstext . '</script>' ); |
297 | | -// } |
298 | | -// |
299 | | -// $validationFunctionData = $input->getJsValidationFunctionData(); |
300 | | -// |
301 | | -// if ( $validationFunctionData ) { |
302 | | -// $validationFunctionName = $validationFunctionData['name']; |
303 | | -// $validationFunctionParam = $validationFunctionData['param']; |
304 | | -// |
305 | | -// $jstext = <<<JAVASCRIPT |
306 | | -// jQuery(function(){ jQuery('#input_{$sfgFieldNum}').SemanticForms_registerInputValidation( {$validationFunctionData['name']}, {$validationFunctionData['param']} ); }); |
307 | | -// JAVASCRIPT; |
308 | | -// |
309 | | -// // insert the code of the JS init function into the pages code |
310 | | -// $wgOut->addScript( '<script type="text/javascript">' . $jstext . '</script>' ); |
311 | | -// } |
312 | | -// |
313 | | -// return $input->getHtmlText(); |
314 | | -// } |
315 | | - |
316 | 272 | } |