summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5eee3c1)
raw | patch | inline | side by side (parent: 5eee3c1)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 28 Sep 2010 11:55:58 +0000 (11:55 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 28 Sep 2010 11:55:58 +0000 (11:55 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19830 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc b/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc
index 75cba72cfae1003cd4ca1598bc27c197454a0d94..11b27f747ab72dae05035b3b614dbf4d0aee79b8 100644 (file)
// CREATE Dummy entry
+ $str = file_get_contents('/home/hickert/json.txt');
+ print_a(json_decode($str, TRUE));
+
$str = '{
"PuppetModule": {
"options": {
}
+ /*! \brief Build up a list of items useable for the itemSelector.
+ */
function getContainerList($array = NULL, $base = "")
{
$array = ($array == NULL)?$this->currentItemValues['root']: $array;
}
return($ret);
}
-
+
+ /*! \brief Update the management class and tell her which
+ * items are available for the itemSelector (baseSelector).
+ */
function rebuildListing()
{
// Collect item container list to be able to render the fake-base selector
// Load service xml file and fill in placeholders
$contents =file_get_contents(get_template_path("goto/Config/DeviceConfig-list.xml", true));
-# $template = "
-# <action>
-# <name>instantNew_%s</name>
-# <type>entry</type>
-# <label>%s</label>
-# </action>";
-# $serviceList = "";
-#
-# // Sort entries by alphabet
-# $list = array();
-# $services = $this->getAllUnusedServices();
-# foreach($services as $name => $desc){
-# $list[_($desc).$name] = $name;
-# }
-# ksort($list);
-#
-# // Create menu entries -> create -> services[]
-# foreach($list as $name){
-# $desc = $services[$name];
-# $serviceList.= sprintf($template, $name,_($desc));
-# }
-#
-# if(!empty($serviceList)){
-# $serviceList = "
-# <action>
-# <type>sub</type>
-# <image>images/lists/element.png[new]</image>
-# <label>Create</label>
-# {$serviceList}
-# </action>
-# ";
-#
-# }
-#
-# $contents = preg_replace("/%SERVICES%/",$serviceList, $contents);
$headpage = new listing($contents,TRUE);
$headpage->setBase($this->base);
$headpage->setFilter($filter);
$this->base = $this->itemContainerSelector->getBase();
}
- /*! \brief Forward plugin acls
+ /*! \brief Forward plugin acls
*/
function set_acl_base($base)
{