summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d789792)
raw | patch | inline | side by side (parent: d789792)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 23 Jul 2010 09:34:34 +0000 (09:34 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 23 Jul 2010 09:34:34 +0000 (09:34 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19077 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/addons/goto/events/class_EventAddUserDialog.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/addons/goto/events/class_EventAddUserDialog.inc b/gosa-plugins/goto/addons/goto/events/class_EventAddUserDialog.inc
index 85aac618500b571e33389c1a0023e4759a3c71a9..7c941735528b7fc99014d26f868042499b4242f4 100644 (file)
class EventAddUserDialog extends management
{
- // Tab definition
- protected $skipFooter = TRUE;
- protected $skipHeader = TRUE;
+ // Tab definition
+ protected $skipFooter = TRUE;
+ protected $skipHeader = TRUE;
- 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("../../addons/goto/events/eventTargetUser-filter.xml", TRUE));
- $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("../../addons/goto/events/eventTargetUser-filter.xml", TRUE));
+ $filter->setObjectStorage($this->storagePoints);
+ }
+ $this->setFilter($filter);
- // Build headpage
- $headpage = new listing(get_template_path("../../addons/goto/events/eventTargetUser-list.xml", TRUE));
- $headpage->setFilter($filter);
- parent::__construct($config, $ui, "object", $headpage);
- }
+ // Build headpage
+ $headpage = new listing(get_template_path("../../addons/goto/events/eventTargetUser-list.xml", TRUE));
+ $headpage->setFilter($filter);
+ parent::__construct($config, $ui, "object", $headpage);
+ }
- function save_object() {}
+ function save_object() {}
- 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);
- }
- function get_selected_targets()
- {
- $entries = $this->save();
- $a_targets = array("USERS" => array(),"GROUPS" => array());
- foreach($entries as $entry){
- if(in_array("posixGroup",$entry['objectClass'])){
- $a_targets['GROUPS'][] = $entry['cn'][0];
- }
- if(in_array("gosaAccount",$entry['objectClass'])){
- $a_targets['USERS'][] = $entry['uid'][0];
- }
+ function get_selected_targets()
+ {
+ $entries = $this->save();
+ $a_targets = array("USERS" => array(),"GROUPS" => array());
+ foreach($entries as $entry){
+ if(in_array("posixGroup",$entry['objectClass'])){
+ $a_targets['GROUPS'][] = $entry['cn'][0];
+ }
+ if(in_array("gosaAccount",$entry['objectClass'])){
+ $a_targets['USERS'][] = $entry['uid'][0];
+ }
+ }
+ return($a_targets);
}
- return($a_targets);
- }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>