summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d1c7515)
raw | patch | inline | side by side (parent: d1c7515)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 7 Sep 2010 10:59:21 +0000 (10:59 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 7 Sep 2010 10:59:21 +0000 (10:59 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19545 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/groupware/personal/groupware/class_filterManager.inc | patch | blob | history | |
gosa-plugins/groupware/personal/groupware/class_groupware.inc | patch | blob | history |
diff --git a/gosa-plugins/groupware/personal/groupware/class_filterManager.inc b/gosa-plugins/groupware/personal/groupware/class_filterManager.inc
index afa3245e453d6465fd64b36ded6c52fedb65621d..b5101ac1c3897c5275ee5d09cf9ce51f9fb5c0a2 100644 (file)
class filterManager extends plugin{
var $filterListing = NULL;
- var $filterRules = array();
var $filterEditor = NULL;
function __construct($config,$parent,$rules)
$this->parent = &$parent;
- $this->filterRules = $rules;
+ $this->filter = $rules;
$this->filterListing= new sortableListing();
$this->filterListing->setDeleteable(true);
$this->filterListing->setEditable(true);
$this->filterListing->setWidth("100%");
$this->filterListing->setHeight("150px;");
$this->filterListing->setAcl($this->parent->getacl('mailFilter'));
-
-
- $this->filter = array();
}
function execute()
}
}
}
+
+
+ function save()
+ {
+ return($this->filter);
+ }
}
?>
diff --git a/gosa-plugins/groupware/personal/groupware/class_groupware.inc b/gosa-plugins/groupware/personal/groupware/class_groupware.inc
index 3a1d53808b2cf4d88b03c9c70ba11ae1bf36cc02..e816b0403a3edc30bd0fb42d103ac6518f3d1ec3 100644 (file)
****************/
if(isset($_POST['filterManager_cancel'])) $this->filterManager = NULL;
+ if(isset($_POST['filterManager_ok'])){
+ $this->filterManager->save_object();
+ $msgs = $this->filterManager->check();
+ if(count($msgs)){
+ msg_dialog::displayChecks($msgs);
+ }else{
+ $this->filterRules = $this->filterManager->save();
+ $this->filterManager = NULL;
+ }
+ }
if(isset($_POST['configureFilter'])){
$this->filterManager = new filterManager($this->config, $this,$this->filterRules);
$this->filterManager->acl_base = $this->acl_base;
*/
function check()
{
- $mssages = plugin::check();
- return($message);
+ $messages = plugin::check();
+ return($messages);
}