summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9dff687)
raw | patch | inline | side by side (parent: 9dff687)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 26 Jul 2010 09:07:09 +0000 (09:07 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 26 Jul 2010 09:07:09 +0000 (09:07 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19101 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/systemSelect/class_systemSelect.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/systemSelect/class_systemSelect.inc b/gosa-plugins/systems/admin/systems/systemSelect/class_systemSelect.inc
index 875a555123057a1f0849e39bd3dabbb6fb89eca2..100e8f8be61eb29f7feae3976be7c4dbfd95b710 100644 (file)
class systemSelect extends management
{
- // Tab definition
- protected $skipFooter = TRUE;
- protected $skipHeader = TRUE;
+ // Tab definition
+ protected $skipFooter = TRUE;
+ protected $skipHeader = TRUE;
- public $plHeadline = "System selection";
+ public $plHeadline = "System selection";
- function __construct($config,$ui)
- {
- $this->config = $config;
- $this->ui = $ui;
- $this->storagePoints = array(get_ou("servgeneric", "serverRDN"), get_ou("workgeneric", "workstationRDN"), get_ou("termgeneric", "terminalRDN"));
+ function __construct($config,$ui)
+ {
+ $this->config = $config;
+ $this->ui = $ui;
+ $this->storagePoints = array(
+ get_ou("servgeneric", "serverRDN"),
+ get_ou("workgeneric", "workstationRDN"),
+ get_ou("termgeneric", "terminalRDN"));
- // 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("selectSystem-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("selectSystem-filter.xml", true, dirname(__FILE__)));
+ $filter->setObjectStorage($this->storagePoints);
+ }
+ $this->setFilter($filter);
- // Build headpage
- $headpage = new listing(get_template_path("selectSystem-list.xml", true, dirname(__FILE__)));
- $headpage->setFilter($filter);
- parent::__construct($config, $ui, "object", $headpage);
- }
+ // Build headpage
+ $headpage = new listing(get_template_path("selectSystem-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:
?>