Possibility to modify the question -> NOT WORKING
This commit is contained in:
parent
65670dd09d
commit
7d249967d6
4 changed files with 37 additions and 8 deletions
|
|
@ -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 = '')
|
||||
{
|
||||
|
|
|
|||
Reference in a new issue