index 0c74ff20f981bb7b44dabd4ef58ddb3f855cb9ab..e4b9c9ac500e193cba50ab45f3ca0b6622eba106 100644 (file)
$this->config = $config;
$this->initTime = microtime(TRUE);
- stats::log('management', $class = get_class($this), $action = __FUNCTION__, $amount = 1,
- $duration = (microtime(TRUE) - $this->initTime));
+ // Create statistic table entry
+ stats::log('management', $class = get_class($this), $this->getAclCategories(), $action = 'open',
+ $amount = 1, $duration = (microtime(TRUE) - $this->initTime));
if($this->cpHandler) $this->headpage->setCopyPasteHandler($this->cpHandler);
if($this->snapHandler) $this->headpage->setSnapshotHandler($this->snapHandler);
#session::global_un_set(get_class($this)."_filter");
}
+
+ /*! \brief Returns an array with all ACL-Categories we are responsible for.
+ */
+ function getAclCategories()
+ {
+ $ret= $this->aclCategory;
+ if(!is_array($ret)) $ret = array($ret);
+ return($ret);
+ }
+
+
/*! \brief Execute this plugin
* Handle actions/events, locking, snapshots, dialogs, tabs,...
*/
$this->snapHandler->setSnapshotBases($bases);
}
-
+
+ // Create statistic table entry
+ stats::log('management', $class = get_class($this), $this->getAclCategories(), $action = 'view',
+ $amount = 1, $duration = (microtime(TRUE) - $this->initTime));
+
// Display list
return($this->renderList());
}
if(isset($this->actions[$action['action']])){
$func = $this->actions[$action['action']];
if(!isset($action['targets']))$action['targets']= array();
- stats::log('management', $class = get_class($this), $action['action'], $amount = count($action['targets']),
- $duration = (microtime(TRUE) - $this->initTime));
+
+ // Create statistic table entry
+ stats::log('management', $class = get_class($this), $this->getAclCategories(), $action['action'],
+ $amount = count($action['targets']), $duration = (microtime(TRUE) - $this->initTime));
return($this->$func($action['action'],$action['targets'],$action));
}