Example #1
0
 public static function printCommentOpinions($op_id, $isFeedback)
 {
     require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/users.php";
     if ($isFeedback) {
         $opcomm = opinions::getCommentFeedbackById(array($op_id));
     } else {
         $opcomm = opinions::getCommentOpinionById(array($op_id));
     }
     $comment = $opcomm[$op_id];
     $user = new users();
     $user->GetUserByUID($comment['user_id']);
     $aUser = get_object_vars($user);
     ob_start();
     include $_SERVER['DOCUMENT_ROOT'] . "/user/opinions/comment.tpl.php";
     $html = ob_get_contents();
     ob_get_clean();
     return $html;
 }