From: janw Date: Tue, 31 May 2005 09:44:04 +0000 (+0000) Subject: Added function check() X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=95c57cc6665198e4aa42df5f1acfdc86a066e958;p=gosa.git Added function check() git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@527 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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()