Code

Updated Copy & Paste for FAI object.s
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 18 Jul 2008 12:52:34 +0000 (12:52 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 18 Jul 2008 12:52:34 +0000 (12:52 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11717 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiHook.inc
gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc
gosa-plugins/fai/admin/fai/class_faiScript.inc
gosa-plugins/fai/admin/fai/class_faiTemplate.inc
gosa-plugins/fai/admin/fai/class_faiVariable.inc

index 589d67933e3c2dc0e07c6c8309b0c22be9d01415..9ae982c296160c1899921f16445f58ffd9faa6cc 100644 (file)
@@ -532,11 +532,11 @@ class faiHook extends plugin
 
     /* Read all leaf objects of this object (For FAIscript this would be FAIscriptEntry)
      */
-    $res = FAI::get_all_objects_for_given_base($this->dn,"(&(objectClass=FAIclass)(objectClass=".$this->subClass."))");
+    $res = FAI::get_all_objects_for_given_base($source['dn'],"(&(objectClass=FAIclass)(objectClass=".$this->subClass."))");
     foreach($res as $obj){
 
       /* Skip not relevant objects */
-      if(!preg_match("/".normalizePreg($this->dn)."$/i",$obj['dn'])) continue;
+      if(!preg_match("/".normalizePreg($source['dn'])."$/i",$obj['dn'])) continue;
 
       $objects = array();
       $objects['status']      = "edited";
index 5fd7530c0169105bd162b6443258c9d3abc5a0ab..d624dfca520ce6aabac33462bf76fdff13936cf1 100644 (file)
@@ -498,11 +498,11 @@ class faiPartitionTable extends plugin
 
     /* Read all leaf objects of this object (For FAIscript this would be FAIscriptEntry)
      */
-    $res = FAI::get_all_objects_for_given_base($this->dn,"(&(objectClass=FAIclass)(objectClass=FAIpartitionDisk))");
+    $res = FAI::get_all_objects_for_given_base($source['dn'],"(&(objectClass=FAIclass)(objectClass=FAIpartitionDisk))");
     foreach($res as $obj){
 
       /* Skip not relevant objects */
-      if(!preg_match("/".normalizePreg($this->dn)."$/i",$obj['dn'])) continue;
+      if(!preg_match("/".normalizePreg($source['dn'])."$/i",$obj['dn'])) continue;
 
       $objects = array();
       $objects['description']  = "";
index a88e5d47ba2ba51035178c2e830ab063b8e72edb..a76e749ebee431a1e283de37efece9d7b05770a2 100644 (file)
@@ -591,11 +591,11 @@ class faiScript extends plugin
 
     /* Read all leaf objects of this object (For FAIscript this would be FAIscriptEntry)
      */
-    $res = FAI::get_all_objects_for_given_base($this->dn,"(&(objectClass=FAIclass)(objectClass=".$this->subClass."))");
+    $res = FAI::get_all_objects_for_given_base($source['dn'],"(&(objectClass=FAIclass)(objectClass=".$this->subClass."))");
     foreach($res as $obj){
 
       /* Skip not relevant objects */
-      if(!preg_match("/".normalizePreg($this->dn)."$/i",$obj['dn'])) continue;
+      if(!preg_match("/".normalizePreg($source['dn'])."$/i",$obj['dn'])) continue;
 
       $objects = array();
       $objects['status']      = "edited";
index 136ed45c46696266b98e2fa1c5bc05ead7067a26..acff161996f4c5d2444a5821d994d949894e58e2 100644 (file)
@@ -512,11 +512,11 @@ class faiTemplate extends plugin
 
     /* Read all leaf objects of this object (For FAIscript this would be FAIscriptEntry)
      */
-    $res = FAI::get_all_objects_for_given_base($this->dn,"(&(objectClass=FAIclass)(objectClass=".$this->subClass."))");
+    $res = FAI::get_all_objects_for_given_base($source['dn'],"(&(objectClass=FAIclass)(objectClass=".$this->subClass."))");
     foreach($res as $obj){
 
       /* Skip not relevant objects */
-      if(!preg_match("/".normalizePreg($this->dn)."$/i",$obj['dn'])) continue;
+      if(!preg_match("/".normalizePreg($source['dn'])."$/i",$obj['dn'])) continue;
 
       $objects = array();
       $objects['status']      = "edited";
index 17688c3f6470c8a86f624d26f6ce24c2f81d0242..d9af54f9178dbc7b7ecbc615924e48a07d3109f3 100644 (file)
@@ -388,11 +388,11 @@ class faiVariable extends plugin
 
     /* Read all leaf objects of this object (For FAIscript this would be FAIscriptEntry)
      */
-    $res = FAI::get_all_objects_for_given_base($this->dn,"(&(objectClass=FAIclass)(objectClass=".$this->subClass."))");
+    $res = FAI::get_all_objects_for_given_base($source['dn'],"(&(objectClass=FAIclass)(objectClass=".$this->subClass."))");
     foreach($res as $obj){
 
       /* Skip not relevant objects */
-      if(!preg_match("/".normalizePreg($this->dn)."$/i",$obj['dn'])) continue;
+      if(!preg_match("/".normalizePreg($source['dn'])."$/i",$obj['dn'])) continue;
 
       $objects = array();
       $objects['status']      = "edited";