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

gosa-core/include/class_userFilterEditor.inc

index 51ce8e95caae4ca7e6994d9b6be14483dba3460a..5cfc7c073d44f9eb3a823a433131d5bce4ee16a8 100644 (file)
@@ -29,6 +29,7 @@ class userFilterEditor extends plugin
      */
     function __construct($entry, $listing)
     {
+
         $this->listing = &$listing;
         if($entry){
             $this->entry = $entry;
@@ -45,6 +46,11 @@ class userFilterEditor extends plugin
             $this->enable = in_array("enable",$entry['flags']);
         }
         $this->orig_name = $this->name;
+
+        // Create statistic table entry
+        $this->initTime = microtime(TRUE);
+        stats::log('plugin', $class = get_class($this), $category = array($this->acl_category),  $action = 'open',
+                $amount = 1, $duration = (microtime(TRUE) - $this->initTime));
     }