print id
This commit is contained in:
parent
48a77a0d10
commit
8162bb2961
@ -21,7 +21,7 @@ class Question
|
||||
$this->validator = $node->getAttribute("validator");
|
||||
$this->question = $node->getAttribute("question");
|
||||
$this->course = $node->getAttribute("course");
|
||||
|
||||
|
||||
$answers = $node->getElementByTagName("answer");
|
||||
for ($i = 0; $i < $answers->length; $i++)
|
||||
$this->answers[] = $answers->item($i)->getAttribute("answer");
|
||||
@ -54,7 +54,8 @@ class Question
|
||||
{
|
||||
echo 'Cours concerné : ' . $this->course . "<br>";
|
||||
echo 'La question est : ' . $this->question . "<br>";
|
||||
echo 'Les réponses sont : ' . print_r($this->answers, true);
|
||||
echo 'Les réponses sont : ' . print_r($this->answers, true) . <br/>;
|
||||
echo 'ID : ' . $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -30,11 +30,11 @@ if (isset ($_POST['send']))
|
||||
$quest->print_test();
|
||||
|
||||
// @TODO: Create/Load a QuestionFile and add the question (it must be unique)
|
||||
|
||||
|
||||
// @TODO: Find a validator (from the list of previous senders for example?)
|
||||
|
||||
|
||||
// @TODO: Update the question and save the file
|
||||
|
||||
|
||||
// @TODO: Send mail to the selected validator
|
||||
|
||||
/* This code works, perhaps should be placed in a method in Question class?
|
||||
|
Reference in New Issue
Block a user