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/engelsystem_provider.php | 1 + includes/model/AngelType_model.php | 1 + includes/model/User_model.php | 1 + includes/model/ValidationResult.php | 42 +++++++++++++++++++++++++++++++++++++ includes/sys_page.php | 35 +------------------------------ 5 files changed, 46 insertions(+), 34 deletions(-) create mode 100644 includes/model/ValidationResult.php diff --git a/includes/engelsystem_provider.php b/includes/engelsystem_provider.php index fb3c0f18..595af9f9 100644 --- a/includes/engelsystem_provider.php +++ b/includes/engelsystem_provider.php @@ -26,6 +26,7 @@ require_once realpath(__DIR__ . '/../includes/model/UserAngelTypes_model.php'); require_once realpath(__DIR__ . '/../includes/model/UserDriverLicenses_model.php'); require_once realpath(__DIR__ . '/../includes/model/UserGroups_model.php'); require_once realpath(__DIR__ . '/../includes/model/User_model.php'); +require_once realpath(__DIR__ . '/../includes/model/ValidationResult.php'); require_once realpath(__DIR__ . '/../includes/view/AngelTypes_view.php'); require_once realpath(__DIR__ . '/../includes/view/EventConfig_view.php'); 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 diff --git a/includes/sys_page.php b/includes/sys_page.php index ad4d15de..8eb32962 100644 --- a/includes/sys_page.php +++ b/includes/sys_page.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; - } -} - ?> -- cgit v1.2.3-70-g09d2