Code

Ensure we either call the plugins constructor or manually set the initTime variable...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 2 Aug 2010 10:08:25 +0000 (10:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 2 Aug 2010 10:08:25 +0000 (10:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19333 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/connectivity/personal/connectivity/class_connectivity.inc

index e5d2250cc899c131b561369c18e0985b6be66c13..2641c4f599398bdb9f695bb4d41d1291e3d74c72 100644 (file)
@@ -30,6 +30,7 @@ class connectivity extends plugin
   function connectivity (&$config, $dn= NULL,$parent =NULL)
   {
     /* Preseed permissions */
+    $this->initTime = microtime(TRUE);
     $this->dn= $dn;
     $ui= get_userinfo();
 
@@ -51,6 +52,11 @@ class connectivity extends plugin
       $this->plugin[$name]-> set_acl_category("users");
       $this->plugin[$name]-> set_acl_base($this->dn);
     }
+
+    // Create statistic table entry
+    stats::log('plugin', $class = get_class($this), $category = array($this->acl_category),  $action = 'open',
+            $amount = 1, $duration = (microtime(TRUE) - $this->initTime));
+
   }
 
   function execute()