private function makeStatementsResult(array $statements, $count, array $opts)
{
// Defaults to empty array of statements.
$statements = $statements ?: [];
// Replaces '&46;' in keys with '.' in statements.
// http://docs.learninglocker.net/docs/installation#quirks
$statements = Helpers::replaceHtmlEntity($statements);
// Creates the statement result.
$statement_result = (object) ['more' => $this->getMoreLink($count, $opts['limit'], $opts['offset']), 'statements' => $statements];
$this->emit(json_encode($statement_result));
}