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

gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc

index 9c1781906c6c5c9b6464fe8451c0f0bc2efedb3d..b3f2f6123b93d34aad16d812662e9925a768830a 100644 (file)
@@ -56,6 +56,7 @@ class opsiGeneric extends plugin
     {
         /* Create opsi handle
          */
+        $this->initTime = microtime(TRUE);
         $this->opsi = new opsi($config); 
         $this->config = $config;
 
@@ -100,6 +101,11 @@ class opsiGeneric extends plugin
         $this->availableList->setColspecs(array('20px','*','*'));
         $this->availableList->setHeader(array("",_("Name"),_("Description")));
         $this->availableList->setDefaultSortColumn(1);
+
+        // 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));
+
     }