private function buildResultsHtml($json)
 {
     $html = '';
     if ($json->success) {
         $html .= '<div class="container marginTop">';
         foreach ($json->items as $item) {
             $postObj = new \wbb\data\post\Post($item->postid);
             $threadObj = $postObj->getThread();
             $boardObj = new \wbb\data\board\Board($threadObj->boardID);
             $userObj = new \wcf\data\user\User($postObj->getUserID());
             $userProfileObj = new \wcf\data\user\UserProfile($userObj);
             $nomineeUserObj = new \wcf\data\user\User($item->userid);
             #$html .= "<pre>";
             #$html .= print_r($boardObj, true);
             #$html .= "</pre>";
             $html .= '<ul class="containerList messageSearchResultList">';
             $html .= '<li>';
             $html .= '<div class="box48">';
             $html .= $userProfileObj->getUserProfile($postObj->getUserID())->getAvatar()->getImageTag(48);
             $html .= '<div>';
             $html .= '<div class="containerHeadline">';
             $html .= '<h3><a href="' . $postObj->getLink() . '">' . $postObj->getTitle() . '</a></h3>';
             $html .= '<p>';
             $html .= 'Erstellt von ' . $userObj->getTitle();
             $html .= ' in <a href="' . $boardObj->getLink() . '">' . $boardObj->getTitle() . '</a>';
             $html .= '</p> ';
             $html .= '<small class="containerContentType">Beitrag wurde <strong>' . $item->count . 'mal</strong> nominiert</small>';
             $html .= '</div>';
             $html .= '<p>' . $postObj->getSimplifiedFormattedMessage() . '</p>';
             $html .= '</div>';
             $html .= '</div>';
             $html .= '</li>';
             $html .= '</ul>';
         }
         $html .= '</div>';
         #$html .= "<pre>";
         #$html .= print_r($json, true);
         #$html .= "</pre>";
     } else {
         $html .= '<p class="info">Keine Nominierungen für den angegebenen Zeitraum gefunden.</p>';
     }
     return $html;
 }
 /**
  * prepage data of thread for notification
  *
  * @param wbb\data\thread\Thread $oThread
  * @param wbb\data\board\Board $oForum
  */
 protected function prepareThreadPushData($oThread, $oForum)
 {
     $pushData = array('id' => $oThread->threadID, 'subfid' => $oForum->getObjectID(), 'sub_forum_name' => $oForum->getTitle(), 'title' => $oThread->getTitle(), 'dateline' => $oThread->getTime());
     return $pushData;
 }