/** * Get list of comments for a record as HTML. * * @return void * @access public */ public function getRecordCommentsAsHTML() { global $interface; include_once 'services/Record/UserComments.php'; $interface->assign('id', $_GET['id']); UserComments::assignComments(); $html = $interface->fetch('Record/view-comments.tpl'); return $this->output($html, JSON::STATUS_OK); }