Entities/Administrators/View/AdministratorsView.php
public function indexViewObjects(Response $response, bool $resetFilter = false)
    {
        if ($resetFilter) {
            return $this->resetFilter($response, $this->indexRoute);
        }

        try {
            $administrators = $this->administratorsEntityMapper->getObjects($this->getFilterColumnsInfo(), null, $this->authentication, $this->authorization);
        } catch (QueryFailureException $e) {
            $administrators = [];
            // warning event is inserted when query fails
            SlimPostgres::setAdminNotice('Query Failed', 'failure');
        }
        
        return $this->indexView($response, $administrators);
    }
public function indexViewObjects(Response $response, bool $resetFilter = false)
    {
        if ($resetFilter) {
            return $this->resetFilter($response, $this->indexRoute);
        }

        try {
            $administrators = $this->administratorsEntityMapper->getObjects($this->getFilterColumnsInfo(), null, $this->authentication, $this->authorization);
        } catch (QueryFailureException $e) {
            $administrators = [];
            // warning event is inserted when query fails
            SlimPostgres::setAdminNotice('Query Failed', 'failure');
        }
        
        return $this->indexView($response, $administrators);
    }
public function indexViewObjects ( Response $ response , bool $ resetFilter = false ) { if ( $ resetFilter ) { return $ this -> resetFilter ( $ response , $ this -> indexRoute ) ; } try { $ administrators = $ this -> administratorsEntityMapper -> getObjects ( $ this -> getFilterColumnsInfo ( ) , null , $ this -> authentication , $ this -> authorization ) ; } catch ( QueryFailureException $ e ) { $ administrators = [ ] ; // warning event is inserted when query fails SlimPostgres :: setAdminNotice ( 'Query Failed' , 'failure' ) ; } return $ this -> indexView ( $ response , $ administrators ) ; }
get objects and send to parent indexView
get objects and send to parent indexView