From: hickert Date: Thu, 29 Jul 2010 10:15:55 +0000 (+0000) Subject: Updated post handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1b33c09b34b3e51022e27509b48b4bc6918273be;p=gosa.git Updated post handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19213 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/groups/userGroupSelect/class_userGroupSelect.inc b/gosa-core/plugins/admin/groups/userGroupSelect/class_userGroupSelect.inc index cedf4f71b..8d4d854e0 100644 --- a/gosa-core/plugins/admin/groups/userGroupSelect/class_userGroupSelect.inc +++ b/gosa-core/plugins/admin/groups/userGroupSelect/class_userGroupSelect.inc @@ -22,44 +22,44 @@ class userGroupSelect extends management { - // Tab definition - protected $skipFooter = TRUE; - protected $skipHeader = TRUE; + // Tab definition + protected $skipFooter = TRUE; + protected $skipHeader = TRUE; - public $plHeadline = "User and group selection"; + public $plHeadline = "User and group selection"; - function __construct($config,$ui) - { - $this->config = $config; - $this->ui = $ui; - $this->storagePoints = array(get_ou("core", "userRDN"), get_ou("core", "groupRDN")); + function __construct($config,$ui) + { + $this->config = $config; + $this->ui = $ui; + $this->storagePoints = array(get_ou("core", "userRDN"), get_ou("core", "groupRDN")); - // Build filter - if (session::global_is_set(get_class($this)."_filter")){ - $filter= session::global_get(get_class($this)."_filter"); - } else { - $filter = new filter(get_template_path("selectUserGroup-filter.xml", true, dirname(__FILE__))); - $filter->setObjectStorage($this->storagePoints); - } - $this->setFilter($filter); + // Build filter + if (session::global_is_set(get_class($this)."_filter")){ + $filter= session::global_get(get_class($this)."_filter"); + } else { + $filter = new filter(get_template_path("selectUserGroup-filter.xml", true, dirname(__FILE__))); + $filter->setObjectStorage($this->storagePoints); + } + $this->setFilter($filter); - // Build headpage - $headpage = new listing(get_template_path("selectUserGroup-list.xml", true, dirname(__FILE__))); - $headpage->setFilter($filter); - parent::__construct($config, $ui, "object", $headpage); - } + // Build headpage + $headpage = new listing(get_template_path("selectUserGroup-list.xml", true, dirname(__FILE__))); + $headpage->setFilter($filter); + parent::__construct($config, $ui, "object", $headpage); + } - function save() - { - $act = $this->detectPostActions(); - $headpage = $this->getHeadpage(); - if(!isset($act['targets'])) return(array()); - $ret = array(); - foreach($act['targets'] as $dn){ - $ret[] = $headpage->getEntry($dn); + function save() + { + $act = $this->detectPostActions(); + $headpage = $this->getHeadpage(); + if(!isset($act['targets'])) return(array()); + $ret = array(); + foreach($act['targets'] as $dn){ + $ret[] = $headpage->getEntry($dn); + } + return($ret); } - return($ret); - } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>