public function ExportData::getPageData 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::getPageData()
Return a single page as an ExportData object
Parameters
mixed $page_id Optional, ommitted the current page will be used.:
Return value
Overrides ExportDataInterface::getPageData
File
- vendor/
aklump/ loft_data_grids/ src/ AKlump/ LoftDataGrids/ ExportData.php, line 310
Class
Namespace
AKlump\LoftDataGridsCode
public function getPageData($page_id = NULL) {
if (!isset($page_id)) {
$page_id = $this->current_page;
}
$clone = clone $this;
foreach ($clone
->getAllPageIds() as $id) {
if ($id != $page_id) {
$clone
->deletePage($id);
}
}
return $clone;
}