function renderForm($param = null) { $checking = $this->paramChecking($param); $this->extraCSS = array("survey/form.css", "jquery-ui.css"); $this->content = "survey/form.php"; $this->header = "surveyHeader.php"; $this->extraJS = array("jquery-2.1.3.js", "jquery-ui.js", "form-logic.js"); $data = new FormData($param['u'], $param['uid']); if ($data->isNewForm()) { $data->renderNewForm($param['u']); } $formDetail = $data->getFormData(); if ($param['r'] === 'app') { $data->updateData('is_recently_changed_by_self', FALSE); } if (isset($_SESSION['isInstructionShown']) || $param['r'] == 'review') { $param['shouldShowInstuction'] = False; } else { $param['shouldShowInstuction'] = True; $_SESSION['isInstructionShown'] = True; } $param["data"] = $formDetail; $this->view($param); }