Example #1
0
 /**
  * get unread private conversations number
  *
  * @return  Integer
  */
 public function getUnreadPcNum()
 {
     if (MbqMain::hasLogin()) {
         //ref __userPanelConversationDropdown.tpl,wcf\system\WCF
         return WCF::getConversationHandler()->getUnreadConversationCount();
     } else {
         MbqError::alert('', __METHOD__ . ',line:' . __LINE__ . '.' . 'Need login!');
     }
 }