From bd54bec595609f3502004163d41c555bfd79672d Mon Sep 17 00:00:00 2001 From: msquare Date: Fri, 18 Nov 2016 08:20:17 +0100 Subject: add ValidationResult to namespace --- includes/model/AngelType_model.php | 1 + includes/model/User_model.php | 1 + includes/model/ValidationResult.php | 42 +++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 includes/model/ValidationResult.php (limited to 'includes/model') diff --git a/includes/model/AngelType_model.php b/includes/model/AngelType_model.php index 86d64504..34da4db7 100644 --- a/includes/model/AngelType_model.php +++ b/includes/model/AngelType_model.php @@ -1,4 +1,5 @@ valid = $valid; + $this->value = $value; + } + + /** + * Is the value valid? + */ + public function isValid() { + return $this->valid; + } + + /** + * The parsed/validated value. + */ + public function getValue() { + return $this->value; + } +} +?> \ No newline at end of file -- cgit v1.2.3-70-g09d2