public function sendToQueue(AJXP_Notification $notification) { if (!$this->useQueue) { $this->logDebug("SHOULD DISPATCH NOTIFICATION ON " . $notification->getNode()->getUrl() . " ACTION " . $notification->getAction()); AJXP_Controller::applyHook("msg.notification", array(&$notification)); } else { if ($this->msgExchanger) { $this->msgExchanger->publishWorkerMessage("user_notifications", $notification); } } }