static public function render($formObj)
    {
        $tplEngine = $formObj->templateEngine;
        $tplAttributes = FormRenderer::buildTemplateAttributes($formObj);
        if (isset($formObj->jsClass)) {
            $subForms = ($formObj->subForms) ? implode(";", $formObj->subForms) : "";

            if ($formObj->staticOutput != true) {
                $formScript = "\n<script>Openbizx.newFormObject('$formObj->objectName','$formObj->jsClass','$subForms'); </script>\n";
            }
            if ($formObj->autoRefresh > 0) {
                $formScript .= "\n<script>setTimeout(\"Openbizx.CallFunction('$formObj->objectName.UpdateForm()');\",\"" . ($formObj->autoRefresh * 1000) . "\") </script>\n";
            }
        }

        if ($tplEngine == "Smarty" || $tplEngine == null) {
            return FormRenderer::renderSmarty($formObj, $tplAttributes) . $formScript;
        } else
            return FormRenderer::renderPHP($formObj, $tplAttributes) . $formScript;
    }
static public function render($formObj)
    {
        $tplEngine = $formObj->templateEngine;
        $tplAttributes = FormRenderer::buildTemplateAttributes($formObj);
        if (isset($formObj->jsClass)) {
            $subForms = ($formObj->subForms) ? implode(";", $formObj->subForms) : "";

            if ($formObj->staticOutput != true) {
                $formScript = "\n<script>Openbizx.newFormObject('$formObj->objectName','$formObj->jsClass','$subForms'); </script>\n";
            }
            if ($formObj->autoRefresh > 0) {
                $formScript .= "\n<script>setTimeout(\"Openbizx.CallFunction('$formObj->objectName.UpdateForm()');\",\"" . ($formObj->autoRefresh * 1000) . "\") </script>\n";
            }
        }

        if ($tplEngine == "Smarty" || $tplEngine == null) {
            return FormRenderer::renderSmarty($formObj, $tplAttributes) . $formScript;
        } else
            return FormRenderer::renderPHP($formObj, $tplAttributes) . $formScript;
    }
static public function render ( $ formObj ) { $ tplEngine = $ formObj -> templateEngine ; $ tplAttributes = FormRenderer :: buildTemplateAttributes ( $ formObj ) ; if ( isset ( $ formObj -> jsClass ) ) { $ subForms = ( $ formObj -> subForms ) ? implode ( ";" , $ formObj -> subForms ) : "" ; if ( $ formObj -> staticOutput != true ) { $ formScript = "\n<script>Openbizx.newFormObject('$formObj->objectName','$formObj->jsClass','$subForms'); </script>\n" ; } if ( $ formObj -> autoRefresh > 0 ) { $ formScript .= "\n<script>setTimeout(\"Openbizx.CallFunction('$formObj->objectName.UpdateForm()');\",\"" . ( $ formObj -> autoRefresh * 1000 ) . "\") </script>\n" ; } } if ( $ tplEngine == "Smarty" || $ tplEngine == null ) { return FormRenderer :: renderSmarty ( $ formObj , $ tplAttributes ) . $ formScript ; } else return FormRenderer :: renderPHP ( $ formObj , $ tplAttributes ) . $ formScript ; }
Render form object

@param EasyForm $formObj
@return string result of rendering process
Render form object