From 95c57cc6665198e4aa42df5f1acfdc86a066e958 Mon Sep 17 00:00:00 2001 From: janw Date: Tue, 31 May 2005 09:44:04 +0000 Subject: [PATCH] Added function check() git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@527 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../connectivity/class_proxyAccount.inc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/plugins/personal/connectivity/class_proxyAccount.inc b/plugins/personal/connectivity/class_proxyAccount.inc index 727082d23..5e97daa8d 100644 --- a/plugins/personal/connectivity/class_proxyAccount.inc +++ b/plugins/personal/connectivity/class_proxyAccount.inc @@ -109,6 +109,25 @@ class proxyAccount extends plugin $this->handle_post_events("remove"); } + /* Check values */ + function check() + { + $message= array(); + + /* We've got only one value to check for positive integer or emtpy field */ + if ($this->is_account){ + if (isset($_POST["quota_size"])){ + if ($_POST["quota_size"] == ""){ + $message[]= _("Numerical value for Quota Setting is empty."); + } + else if ($_POST["quota_size"] <= 0){ + $message[]= _("Numerical value for Quota Setting is not valid."); + } + } + } + + return $message; + } /* Save data to object */ function save_object() -- 2.30.2