diff options
Diffstat (limited to 'includes/sys_page.php')
-rw-r--r-- | includes/sys_page.php | 35 |
1 files changed, 1 insertions, 34 deletions
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 @@ <?php +use Engelsystem\ValidationResult; /** * Provide page/request helper functions @@ -187,38 +188,4 @@ function check_email($email) { return (bool) filter_var($email, FILTER_VALIDATE_EMAIL); } -class ValidationResult { - - private $valid; - - private $value; - - /** - * Constructor. - * - * @param boolean $valid - * Is the value valid? - * @param * $value - * The validated value - */ - public function ValidationResult($valid, $value) { - $this->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; - } -} - ?> |