X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fpersonal%2Fconnectivity%2Fclass_connectivity.inc;h=c0690c1cde3cc3bc65be1f3c96ccdb5202141fd3;hb=26dbc488fc745965586ec6ce8854c29fa69a38d3;hp=dec3825cd08de032dd198fb5b9b726b97c4441d4;hpb=3082209baacc737659b444a6de4ed6ef5588faaf;p=gosa.git diff --git a/plugins/personal/connectivity/class_connectivity.inc b/plugins/personal/connectivity/class_connectivity.inc index dec3825cd..c0690c1cd 100644 --- a/plugins/personal/connectivity/class_connectivity.inc +++ b/plugins/personal/connectivity/class_connectivity.inc @@ -22,6 +22,8 @@ class connectivity extends plugin var $ignore_account= TRUE; var $plugin= array(); var $plugin_name= array(); + var $CopyPasteVars = array("plugin","plugin_name"); + function connectivity ($config, $dn= NULL) { @@ -43,6 +45,7 @@ class connectivity extends plugin { /* Call parent execute */ plugin::execute(); + $display= ""; /* Prepare templating */ @@ -50,7 +53,7 @@ class connectivity extends plugin /* Do we represent a valid account? */ if ($this->parent == NULL){ - $enabled= false; + $enabled= true; foreach ($this->plugin_name as $name){ if ($this->plugin[$name]->is_account){ $enabled= true; @@ -75,7 +78,6 @@ class connectivity extends plugin /* Execude objects */ $is_first= true; foreach ($this->plugin_name as $name){ - if (!$this->plugin[$name]->is_account && $this->parent == NULL) continue; if (!$is_first){ $display.= '
'; } else { @@ -103,7 +105,7 @@ class connectivity extends plugin function check() { - $message= array(); + $message= plugin::check(); foreach ($this->plugin_name as $name){ $tmp= $this->plugin[$name]->check(); @@ -150,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: