public function onQuestionPost(iUmiEventPoint $event) { if ($event->getMode() == 'after') { $questionId = $event->getParam('element_id'); antiSpamHelper::checkForSpam($questionId, 'question'); } }
/** * */ public function onCommentAdded(iUmiEventPoint $event) { $commentId = $event->getParam('id'); antiSpamHelper::checkForSpam($commentId); }
public function onMessagePost(iUmiEventPoint $event) { $messageId = $event->getParam("message_id"); antiSpamHelper::checkForSpam($messageId); }