public function getData($page)
    {
        $this->loadData();
        $start = ($page - 1) * $this->pageSize;

        return array_slice($this->filteredData, $start, $this->pageSize);
    }
public function getData($page)
    {
        $this->loadData();
        $start = ($page - 1) * $this->pageSize;

        return array_slice($this->filteredData, $start, $this->pageSize);
    }
public function getData ( $ page ) { $ this -> loadData ( ) ; $ start = ( $ page - 1 ) * $ this -> pageSize ; return array_slice ( $ this -> filteredData , $ start , $ this -> pageSize ) ; }
Get the data that needs to be added on a certain page.

@param int $page The page to get the data for. Pages starts a 1.

@return array
Get the data that needs to be added on a certain page .