Esempio n. 1
0
 function showNoticeAnswer($notice, $out)
 {
     $user = common_current_user();
     $answer = QnA_Answer::getByNotice($notice);
     $question = $answer->getQuestion();
     $nli = new NoticeListItem($notice, $out);
     $nli->showNotice();
     $out->elementStart('div', array('class' => 'entry-content answer-content'));
     if (!empty($answer)) {
         $form = new QnashowanswerForm($out, $answer);
         $form->show();
     } else {
         // TRANS: Error message displayed when answer data is not present.
         $out->text(_m('Answer data is missing.'));
     }
     $out->elementEnd('div');
     // @todo FIXME
     $out->elementStart('div', array('class' => 'entry-content'));
 }