public function statements($lrs_id, array $options, array $sections = null)
{
$sections = $sections ?: [];
$filters = $this->addDateFilters($options, $this->constructFilter($options));
// Gets the filtered data.
$data = $this->query->selectStatements($lrs, $filters, true, $sections);
// Attempts to return the filtered data.
if (isset($data['errmsg'])) {
throw new Exceptions\Exception($data['errmsg']);
}
return Helpers::replaceHtmlEntity($data);
}