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:07:29 +0000 (10:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 2 Aug 2010 10:07:29 +0000 (10:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19311 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/ldapmanager/addons/ldapmanager/class_import.inc

index c8787ac522c8f8b8c4d9f94e79aa9c293da49d21..38f0a5aba15166c910a7d5e35da7b75c2eaf43fb 100644 (file)
@@ -16,9 +16,14 @@ class ldifimport extends plugin
     function ldifimport (&$config, $dn= NULL)
     {
         /* Include config object */
+        $this->initTime = microtime(TRUE);
         $this->config= &$config;
 
         $this->ui = get_userinfo();
+
+        stats::log('plugin', $class = get_class($this), $category = array($this->acl_category),  $action = 'open',
+                $amount = 1, $duration = (microtime(TRUE) - $this->initTime));
+
     }
 
     function execute()