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

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

index 94df02cfd5af24c1ecec07958ac7b0903926e7c2..b184c99b280b09910183ecab13e711481007cc50 100644 (file)
@@ -19,15 +19,18 @@ class xlsexport extends plugin
     function xlsexport (&$config, $dn= NULL)
     {
         /* Include config object */
+        $this->initTime = microtime(TRUE);
         $this->config= &$config;
 
         $this->ui = get_userinfo();
-        
+
         $this->base = $this->config->current['BASE'];
         $this->baseSelector= new baseSelector($this->config->idepartments, $this->base);
         $this->baseSelector->setSubmitButton(false);
         $this->baseSelector->setHeight(300);
         $this->baseSelector->update(true);
+        stats::log('plugin', $class = get_class($this), $category = array($this->acl_category),  $action = 'open',
+                $amount = 1, $duration = (microtime(TRUE) - $this->initTime));
 
     }