";
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 = "