summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a53440c)
raw | patch | inline | side by side (parent: a53440c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 18 May 2011 14:00:56 +0000 (14:00 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 18 May 2011 14:00:56 +0000 (14:00 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20862 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc
index 5174850653f7df3ae1cfc636ba530822a4609a35..57a369c311eaeb800a945ca3d72219549d4b0e43 100644 (file)
$map['%INSTALLATION_METHODS'] = array('puppet' => 'puppet');
$map['%TEMPLATE_METHODS'] = array('preseed' => 'preseed');
$this->itemConfig = $this->__fillPlaceholder($this->itemConfig, $map);
-
return(TRUE);
}
+ /*! \brief Fill in replacements in the itemConfig
+ * Some values are dynamic and cannot be hardcoded, a placeholder is
+ * used in this case in the deinition file root.json.
+ */
function __fillPlaceholder($data, $placeholder)
{
foreach($data as $name => $sData){
$data[$name] = $this->__fillPlaceholder($data[$name], $placeholder);
}elseif(is_string($sData) && isset($placeholder[$sData])){
$data[$name] = &$placeholder[$sData];
- echo "Jep {$name}";
}
}
-
return($data);
}