You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3.01-QCM_MuscuMaths/Website/models/ModelAnswer.php

29 lines
542 B

<?php
class ModelAnswer
{
private $gwAnswer;
public function __construct()
{
$this->gwAnswer = new GatewayAnswer();
}
function addAnswer($answer)
{
$answersId = $this->gwAnswer->addAnswer($answer);
return $answersId;
}
function getAnswersByIDQuestions($id)
{
$answers = $this->gwAnswer->getAnswersByIDQuestions($id);
return $answers;
}
function updateAnswer($answersId,$answer)
{
$this->gwAnswer->updateAnswer($answersId,$answer);
}
}