public function loadRecentHistory($limitByCurrentUser = true, $options = array()) {
        //Resitrict by the user if requested
        if ($limitByCurrentUser) {
            $options['username'] = $this->securityContext->getToken()->getUsername();
        }

        //Call the repo class and the return the record entries
        return $this->getReportHistoryRepository()->filter($options);
    }
public function loadRecentHistory($limitByCurrentUser = true, $options = array()) {
        //Resitrict by the user if requested
        if ($limitByCurrentUser) {
            $options['username'] = $this->securityContext->getToken()->getUsername();
        }

        //Call the repo class and the return the record entries
        return $this->getReportHistoryRepository()->filter($options);
    }
public function loadRecentHistory ( $ limitByCurrentUser = true , $ options = array ( ) ) { //Resitrict by the user if requested if ( $ limitByCurrentUser ) { $ options [ 'username' ] = $ this -> securityContext -> getToken ( ) -> getUsername ( ) ; } //Call the repo class and the return the record entries return $ this -> getReportHistoryRepository ( ) -> filter ( $ options ) ; }
Load all the recently executed reports

@param  boolean $limitByCurrentUser Whether to limit by just the current user or to get all reports
@param  array   $options            Options to pass to the history repository's filter method

@return array
Load all the recently executed reports