We can now modify the Question object return by getQuestion
This commit is contained in:
parent
f8b1fbbd82
commit
3b2ee617d7
3 changed files with 28 additions and 7 deletions
|
|
@ -8,6 +8,13 @@ $id = $_GET['id'];
|
|||
$file = new QuestionsFile("questions.xml");
|
||||
$question = $file->get_question($id);
|
||||
|
||||
var_dump($question);
|
||||
|
||||
$question->validated();
|
||||
$question->set_validator("other@pomail.fr");
|
||||
var_dump($question);
|
||||
$file->save();
|
||||
|
||||
?>
|
||||
|
||||
<html>
|
||||
|
|
|
|||
Reference in a new issue