From 14228ad78d032d065e41057e467aeddf8a3c77df Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 12 Apr 2006 05:29:39 +0000 Subject: [PATCH] updated copy & paste users git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3037 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_plugin.inc | 2 +- include/functions.inc | 9 +++++++++ plugins/gofax/faxaccount/class_gofaxAccount.inc | 16 ++++++++++++++++ .../personal/connectivity/class_connectivity.inc | 13 +++++++++++++ .../connectivity/class_opengwAccount.inc | 5 +++++ 5 files changed, 44 insertions(+), 1 deletion(-) diff --git a/include/class_plugin.inc b/include/class_plugin.inc index afaaf8100..81c8a1c6a 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -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; } diff --git a/include/functions.inc b/include/functions.inc index ef7100de8..c47e31b20 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -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 */ diff --git a/plugins/gofax/faxaccount/class_gofaxAccount.inc b/plugins/gofax/faxaccount/class_gofaxAccount.inc index feec09343..1f7080bb8 100644 --- a/plugins/gofax/faxaccount/class_gofaxAccount.inc +++ b/plugins/gofax/faxaccount/class_gofaxAccount.inc @@ -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']; + } + } } diff --git a/plugins/personal/connectivity/class_connectivity.inc b/plugins/personal/connectivity/class_connectivity.inc index 12be3de59..c0690c1cd 100644 --- a/plugins/personal/connectivity/class_connectivity.inc +++ b/plugins/personal/connectivity/class_connectivity.inc @@ -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: diff --git a/plugins/personal/connectivity/class_opengwAccount.inc b/plugins/personal/connectivity/class_opengwAccount.inc index b7ea6b6c3..02b075d56 100644 --- a/plugins/personal/connectivity/class_opengwAccount.inc +++ b/plugins/personal/connectivity/class_opengwAccount.inc @@ -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: ?> -- 2.30.2