public function onAfterKarma($target, $actor, $delta) { $params = array('actor' => $actor, 'target' => $target, 'delta' => $delta); KunenaIntegrationComprofiler::trigger('onAfterKarma', $params); }
protected function loadGroups() { if ($this->groups === false) { $this->groups = array(); $params = array('groups' => &$this->groups, 'categories' => $this->categories); KunenaIntegrationComprofiler::trigger('loadGroups', $params); if ($this->categories !== false) { $this->tree->add($this->groups); } } }
public static function trigger($event, &$params) { KunenaIntegrationComprofiler::trigger($event, $params); }
/** * Authorise list of userids to topic or category. * * @param mixed Category or topic. * @param array list(allow, deny). */ public function authoriseUsers(KunenaDatabaseObject $topic, array &$userids) { if (empty($userids)) { return; } $category = $topic->getCategory(); $allow = $deny = array(); if ($category->accesstype == 'communitybuilder') { $params = array('category' => $category, 'topic' => $topic, 'userids' => $userids, 'allow' => &$allow, 'deny' => &$deny); KunenaIntegrationComprofiler::trigger('authoriseUsers', $params); } return array($allow, $deny); }