Beispiel #1
0
 /**
  * Application event methods
  */
 public function getUnreadMessageCount(OW_Event $event)
 {
     $params = $event->getParams();
     $userId = $params['userId'];
     $data = $this->service->getUnreadMessageCount($userId);
     $event->setData($data);
     return $data;
 }
Beispiel #2
0
 /**
  * Application event methods
  */
 public function getUnreadMessageCount(OW_Event $event)
 {
     $params = $event->getParams();
     $userId = $params['userId'];
     $ignoreList = !empty($params['ignoreList']) ? (array) $params['ignoreList'] : array();
     $time = !empty($params['time']) ? (int) $params['time'] : time();
     $data = $this->service->getUnreadMessageCount($userId, $ignoreList, $time);
     $event->setData($data);
     return $data;
 }