Code

Added comment
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 18 May 2011 14:00:56 +0000 (14:00 +0000)
committerhickert <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

index 5174850653f7df3ae1cfc636ba530822a4609a35..57a369c311eaeb800a945ca3d72219549d4b0e43 100644 (file)
@@ -102,11 +102,14 @@ class newConfigManagement extends plugin
         $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){
@@ -114,10 +117,8 @@ class newConfigManagement extends plugin
                 $data[$name] = $this->__fillPlaceholder($data[$name], $placeholder);
             }elseif(is_string($sData) && isset($placeholder[$sData])){
                 $data[$name] = &$placeholder[$sData];
-                echo "Jep {$name}";
             }
         }
         return($data);
     }