XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
themeform.php
1<?php
14
15
16if (!defined('XOOPS_ROOT_PATH')) {
17 exit();
18}
19
23include_once XOOPS_ROOT_PATH . '/class/xoopsform/form.php';
24
25
26class XoopsThemeForm extends XoopsForm
27{
34 public function insertBreak($extra = '', $class= '')
35 {
36 $class = ('' !== $class) ? " class='$class'" : '';
37 $extra = ('' !== $extra) ? $extra : '&nbsp';
38 $this->addElement(new XoopsFormBreak($extra, $class)) ;
39 }
40
46 public function render()
47 {
48 $root =& XCube_Root::getSingleton();
49 $renderSystem =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM);
50 $renderTarget =& $renderSystem->createRenderTarget('main');
51
52 $renderTarget->setAttribute('legacy_module', 'legacy');
53 $renderTarget->setTemplateName('legacy_xoopsform_themeform.html');
54 $renderTarget->setAttribute('form', $this);
55
56 $renderSystem->render($renderTarget);
57
58 $ret = $renderTarget->getResult();
59 $ret .= $this->renderValidationJS(true);
60
61 return $ret;
62 }
63}
renderValidationJS($withtags=true)
Definition form.php:373
addElement(&$formElement, $required=false)
Definition form.php:133
insertBreak($extra='', $class='')
Definition themeform.php:34