Code

e892e454461ea859fbd234e3a116832b979574e6
[gosa.git] / gosa-plugins / groupware / personal / groupware / class_filterEditor.inc
1 <?php
3 class filterEditor extends plugin{
5     var $filterListing   = NULL;
6     var $filterRules = array();
8     function __construct($config, $rules)
9     {
10         plugin::plugin($config);
11         $this->filterRules = $rules;
13         $this->filterListing= new sortableListing();
14         $this->filterListing->setDeleteable(true);
15         $this->filterListing->setEditable(true);
16         $this->filterListing->setColspecs(array('*'));
17         $this->filterListing->setWidth("100%");
18         $this->filterListing->setHeight("200px;");
19     }
21     function execute()
22     {
23         $smarty = get_smarty();
25         $smarty->assign('list', $this->filterListing->render());
27         return($smarty->fetch(get_template_path('filterEditor.tpl',TRUE,dirname(__FILE__))));
28     }
30 }
32 ?>