Code

updated copy & paste users
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 Apr 2006 05:29:39 +0000 (05:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 Apr 2006 05:29:39 +0000 (05:29 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3037 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_plugin.inc
include/functions.inc
plugins/gofax/faxaccount/class_gofaxAccount.inc
plugins/personal/connectivity/class_connectivity.inc
plugins/personal/connectivity/class_opengwAccount.inc

index afaaf81002d6ba113b6453e3ceec91dd3b755ee1..81c8a1c6aff2aba86e8f75066e7c43080f88e959 100644 (file)
@@ -819,7 +819,7 @@ class plugin
     if(isset($this->CopyPasteVars)){
       $todo = array_merge($todo,$this->CopyPasteVars);
     }
-
+    $todo[] = "is_account";
     foreach($todo as $var){
       $this->$var = $source->$var;
     }
index ef7100de83677f38e65876a09d282fa970ac80bb..c47e31b20aec827a2c0415238df88c92e547e185 100644 (file)
@@ -790,6 +790,15 @@ function convert_department_dn($dn)
 
 function convert_department_dn2($dn)
 {
+
+/*
+  
+  I think this no longer used  ...
+  Check this, and remove this function 
+
+  
+*/
+
   $dep= "";
   /* Build a sub-directory style list of the tree level
      specified in $dn */
index feec09343a0fbd1d4a7326f0d538aa39743b4a3f..1f7080bb8e237b29ca28e9c782802651f46b49a1 100644 (file)
@@ -787,6 +787,22 @@ $ldap->modify ($this->attrs);
         $this->facsimileAlternateTelephoneNumber);
   }
 
+  function getCopyDialog()
+  {
+    $str    = "";
+    $smarty = get_smarty();
+    $smarty->assign("facsimileTelephoneNumber", $this->facsimileTelephoneNumber);
+    $str['string']   = $smarty->fetch(get_template_path("paste_generic.tpl",TRUE,dirname(__FILE__)));
+    $str['status'] ="";
+    return($str);
+  }
+
+  function SaveCopyDialog()
+  {
+    if(isset($_POST['facsimileTelephoneNumber'])){
+      $this->facsimileTelephoneNumber = $_POST['facsimileTelephoneNumber'];
+    }
+  }
 
 }
 
index 12be3de5937ad8e1578b2f8492fb311d5d6c73b8..c0690c1cde3cc3bc65be1f3c96ccdb5202141fd3 100644 (file)
@@ -152,6 +152,19 @@ class connectivity extends plugin
     }
   }
 
+  /* Prepare the connectivity obj 
+   */
+  function PrepareForCopyPaste($obj)
+  { 
+    $tmp = $this->plugin;
+    plugin::PrepareForCopyPaste($obj);
+    $this->plugin = $tmp;
+    foreach($obj->plugin as $key => $plug){
+      $this->plugin[$key]->PrepareForCopyPaste($plug);
+    }
+  }
+  
+
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
index b7ea6b6c31f4b7bf084eab02b2584e8e1beb9773..02b075d56e93147b24c9f892f09c76ade1f972dd 100644 (file)
@@ -326,6 +326,11 @@ class opengwAccount extends plugin
                }
        }
 
+  
+  function PrepareForCopyPaste($src){
+    // Nothing to do, because this object can't be copied ... yet
+  }
+
 }
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>