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

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

index ec82412996271a5fcc064486bcb44e53a52f2a65..dfa7fe1f6aaae7b12a4352d04be4bf86c47b3617 100644 (file)
@@ -18,10 +18,15 @@ class opsiProperties extends plugin
      */
     public function __construct($config,$product,$cfg = array() ,$hostId = "")
     {
+        $this->initTime = microtime(TRUE);
         $this->config  = $config;
         $this->product = $product;
         $this->cfg     = $cfg;
         $this->hostId  = $hostId;
+
+        // 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));
     }