Locker\Data\Analytics\Analytics::statements PHP Method

statements() public method

Gets statements.
public statements ( String $lrs_id, array $options, array $sections = null ) : [[String
$lrs_id String Id of the LRS.
$options array
$sections array
return [[String
    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);
    }