"; var_dump($answer); echo "
"; var_dump($category); echo "

"; for($i = 0; $i < count($answer); $i++) { // (new GatewayResponse())->insertResponse($id[$i], $answer[$i], $category[$i]); } } public function getForm(): string { $form = (new GatewayForm())->getForm(); if(empty($form)) { return "PAS DE FORMULAIRE\n"; } $title = $form[0]['title']; $description = $form[0]['description']; $questionsTab = (new GatewayQuestion())->getAllQuestions($form[0]['id']); $questions = Factory::getBuiltObjects($questionsTab, "Question"); $html = "

$title

\n

$description

\n
\n
\n"; foreach ($questions as $question) { $html.= $question->printStrategy()."\n"; } if(count($questions) > 0) { $html.= "\t\t\t\n \t\t\t \t\t
\n \t
\n"; } else { $html.= "\t\t\n \t\n"; } return $html; } }