From: hickert Date: Mon, 25 Jan 2010 14:15:17 +0000 (+0000) Subject: ... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bdb7e04dc547e163288d57cc6e48d27b3bc6e13c;p=gosa.git ... ...-- Diese und die folgenden Zeilen werden ignoriert -- D class_repositoryMangement.inc A + class_repositoryManagement.inc git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15285 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/systems/services/repository/class_repositoryManagement.inc b/gosa-plugins/fai/admin/systems/services/repository/class_repositoryManagement.inc new file mode 100644 index 000000000..96cc1b6a5 --- /dev/null +++ b/gosa-plugins/fai/admin/systems/services/repository/class_repositoryManagement.inc @@ -0,0 +1,46 @@ +ui = get_userinfo(); + $this->parent = $parent; + + // Set storage points - We do not have any - We just create a fake list which lists all services + $this->storagePoints = array(); + + // 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("services/repository/repository-filter.xml", true)); + $filter->setObjectStorage($this->storagePoints); + # } + $this->setFilter($filter); + + // Build headpage + $headpage = new listing(get_template_path("services/repository/repository-list.xml", true)); + $headpage->setFilter($filter); + + parent::__construct($config, $this->ui, "repositories", $headpage); + $this->registerAction('edit', 'forwardToParent'); + $this->registerAction('remove', 'forwardToParent'); + $this->registerAction('new', 'forwardToParent'); + } + + function forwardToParent($action, $target, $all) + { + if(!empty($action)){ + $tmp = $action."Entry"; + $this->parent->$tmp($action,$target,$all); + } + } +} +// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: +?> diff --git a/gosa-plugins/fai/admin/systems/services/repository/class_repositoryMangement.inc b/gosa-plugins/fai/admin/systems/services/repository/class_repositoryMangement.inc deleted file mode 100644 index 96cc1b6a5..000000000 --- a/gosa-plugins/fai/admin/systems/services/repository/class_repositoryMangement.inc +++ /dev/null @@ -1,46 +0,0 @@ -ui = get_userinfo(); - $this->parent = $parent; - - // Set storage points - We do not have any - We just create a fake list which lists all services - $this->storagePoints = array(); - - // 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("services/repository/repository-filter.xml", true)); - $filter->setObjectStorage($this->storagePoints); - # } - $this->setFilter($filter); - - // Build headpage - $headpage = new listing(get_template_path("services/repository/repository-list.xml", true)); - $headpage->setFilter($filter); - - parent::__construct($config, $this->ui, "repositories", $headpage); - $this->registerAction('edit', 'forwardToParent'); - $this->registerAction('remove', 'forwardToParent'); - $this->registerAction('new', 'forwardToParent'); - } - - function forwardToParent($action, $target, $all) - { - if(!empty($action)){ - $tmp = $action."Entry"; - $this->parent->$tmp($action,$target,$all); - } - } -} -// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: -?>