function formatToArrayDataTables($route = null,array $parameters = array()) {
        $results = $this->getCurrentPageResults()->getArrayCopy();
        $data = array(
            'draw' => $this->draw,
            'recordsTotal' => $this->getNbResults(),
            'recordsFiltered' => $this->getNbResults(),
            'data' => $results,
            '_links' => $this->getLinks($route,$parameters),
        );
        return $data;
    }
function formatToArrayDataTables($route = null,array $parameters = array()) {
        $results = $this->getCurrentPageResults()->getArrayCopy();
        $data = array(
            'draw' => $this->draw,
            'recordsTotal' => $this->getNbResults(),
            'recordsFiltered' => $this->getNbResults(),
            'data' => $results,
            '_links' => $this->getLinks($route,$parameters),
        );
        return $data;
    }
function formatToArrayDataTables ( $ route = null , array $ parameters = array ( ) ) { $ results = $ this -> getCurrentPageResults ( ) -> getArrayCopy ( ) ; $ data = array ( 'draw' => $ this -> draw , 'recordsTotal' => $ this -> getNbResults ( ) , 'recordsFiltered' => $ this -> getNbResults ( ) , 'data' => $ results , '_links' => $ this -> getLinks ( $ route , $ parameters ) , ) ; return $ data ; }
Formato de paginacion de datatables
@param type $route
@param array $parameters
@return type
Formato de paginacion de datatables