public function ExportData::getPage in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/aklump/loft_data_grids/src/AKlump/LoftDataGrids/ExportData.php \AKlump\LoftDataGrids\ExportData::getPage()
Return a single page of data
Parameters
mixed $page_id Optional, ommitted the current page will be used.:
Return value
array
Overrides ExportDataInterface::getPage
3 calls to ExportData::getPage()
- ExportData::find in vendor/
aklump/ loft_data_grids/ src/ AKlump/ LoftDataGrids/ ExportData.php - Find a value in the dataset of the current page
- ExportData::getCount in vendor/
aklump/ loft_data_grids/ src/ AKlump/ LoftDataGrids/ ExportData.php - Returns the row count of the current page.
- ExportData::getRows in vendor/
aklump/ loft_data_grids/ src/ AKlump/ LoftDataGrids/ ExportData.php - Returns all rows of the current page keyed by pointer.
File
- vendor/
aklump/ loft_data_grids/ src/ AKlump/ LoftDataGrids/ ExportData.php, line 301
Class
Namespace
AKlump\LoftDataGridsCode
public function getPage($page_id = NULL) {
if (!isset($page_id)) {
$page_id = $this->current_page;
}
$data = $this
->get();
return isset($data[$page_id]) ? $data[$page_id] : array();
}