public function loadHistoryForReport($reportUri, $limitByCurrentUser = true, $options = array()) {
        //Setup the options array
        $options['resource'] = $reportUri;

        //Restrict by the user if requested
        if ($limitByCurrentUser) {
            $options['username'] = $this->securityContext->getToken()->getUsername();
        }

        //Call the repository class and return the record entries
        return $this->getReportHistoryRepository()->filter($options);
    }
public function loadHistoryForReport($reportUri, $limitByCurrentUser = true, $options = array()) {
        //Setup the options array
        $options['resource'] = $reportUri;

        //Restrict by the user if requested
        if ($limitByCurrentUser) {
            $options['username'] = $this->securityContext->getToken()->getUsername();
        }

        //Call the repository class and return the record entries
        return $this->getReportHistoryRepository()->filter($options);
    }
public function loadHistoryForReport ( $ reportUri , $ limitByCurrentUser = true , $ options = array ( ) ) { //Setup the options array $ options [ 'resource' ] = $ reportUri ; //Restrict by the user if requested if ( $ limitByCurrentUser ) { $ options [ 'username' ] = $ this -> securityContext -> getToken ( ) -> getUsername ( ) ; } //Call the repository class and return the record entries return $ this -> getReportHistoryRepository ( ) -> filter ( $ options ) ; }
Gets history records for a particular report

@param  string  $reportUri          The uri of the report to get records for
@param  boolean $limitByCurrentUser Whether to limit the return by only records associated with the current user
@param  options $options            Additional options for the report history repository filter call

@return array                       The array of report history records
Gets history records for a particular report