private function getNotifications() { $this->view->notification['friendRequestCount'] = application_frontend_friend_model::getRequestCount($this->user['myuid']); $this->view->notification['eventInvitationCount'] = application_frontend_event_model::getInvitationCount($this->user['myuid']); $this->view->notification['eventCommentCount'] = application_frontend_event_model::getUnreadEventCommentCount($this->user['myuid']); $this->view->notification['privatemgsAllCount'] = application_frontend_privatemsg_model::getUnreadPrivatemsgCount($this->user['myuid']); $this->view->notification['requestEventInvitation'] = application_frontend_event_model::getRequestEventInvitationCount($this->user['myuid']); if ($this->view->notification['friendRequestCount'] > 0 || $this->view->notification['eventInvitationCount'] > 0 || $this->view->notification['privatemgsAllCount'] > 0 || $this->view->notification['eventCommentCount'] > 0 || $this->view->notification['requestEventInvitation'] > 0) { $this->view->notificationExist = true; } }