From 4c4d737f9a37e5389ad3a7558b3007fdcc5e1e51 Mon Sep 17 00:00:00 2001 From: Bertrand Date: Tue, 22 May 2012 16:05:46 +0200 Subject: [PATCH] Validation - Not complete --- Question.class.php | 10 ++++++++++ index.html | 2 +- questions.php | 50 +++++++++++++++++++++++++++++++++++----------- validation.php | 28 ++++++++++++++++++++++++++ 4 files changed, 77 insertions(+), 13 deletions(-) create mode 100644 validation.php diff --git a/Question.class.php b/Question.class.php index e81be18..691c92e 100644 --- a/Question.class.php +++ b/Question.class.php @@ -92,6 +92,16 @@ class Question return $qnode; } + + public function isValidated() + { + $this->validated = true; + } + + public function getId() + { + return $this->id; + } } ?> \ No newline at end of file diff --git a/index.html b/index.html index 04d5748..865e928 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Every Questions -