, containing several . * * @author Amand Tihon */ public function export() { $js = ''; $html = ''; $identifier = 'question_'.$this->questionJSId.'_tf'; $identifier_true = $identifier.'_true'; $identifier_false = $identifier.'_false'; $html .= ''; $html .= '
'; $js .= 'questions_answers['.$this->questionJSId.'] = new Array(\'true\',\'false\');'."\n"; $js .= 'questions_types['.$this->questionJSId.'] = \'tf\';'."\n"; if ($this->response === 'TRUE') { $js .= 'questions_answers_correct['.$this->questionJSId.'] = new Array(\'true\');'."\n"; } else { $js .= 'questions_answers_correct['.$this->questionJSId.'] = new Array(\'false\');'."\n"; } $jstmpw = 'questions_answers_ponderation['.$this->questionJSId.'] = new Array();'."\n"; $jstmpw .= 'questions_answers_ponderation['.$this->questionJSId.'][0] = 0;'."\n"; $jstmpw .= 'questions_answers_ponderation['.$this->questionJSId.'][1] = '.$this->weighting[1].";\n"; $js .= $jstmpw; return [$js, $html]; } }