Ejemplo n.º 1
0
 public function ping(BASE_CLASS_ConsoleDataEvent $event)
 {
     $userId = OW::getUser()->getId();
     $data = $event->getItemData(self::CONSOLE_ITEM_KEY);
     $newInvitationCount = $this->service->getNewConsoleConversationCount($userId);
     $viewInvitationCount = $this->service->getVievedConversationCountForConsole($userId);
     $data['counter'] = array('all' => $newInvitationCount + $viewInvitationCount, 'new' => $newInvitationCount);
     $event->setItemData('mailbox', $data);
 }