Possibility to modify the question -> NOT WORKING

This commit is contained in:
Bertrand 2012-06-15 13:31:39 +02:00
commit 7d249967d6
4 changed files with 37 additions and 8 deletions

View file

@ -128,16 +128,41 @@ class Question
return $this->course;
}
public function setCourse($course)
{
$this->course = $course;
}
public function getQuestion()
{
return $this->question;
}
public setQuestion($question)
{
$this->question = $question;
}
public function getAnswer()
{
return $this->answers;
}
public function setAnswer($answers)
{
if (!empty($answers))
{
if (is_array($answers))
{
foreach ($answers as $ans)
$q->answers[] = $ans;
}
else
$q->answers[] = $answers;
}
}
function mail_utf8($to, $subject = '(No subject)',
$message = '', $header = '')
{