public function ExportData::gotoLocation in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/aklump/loft_data_grids/src/AKlump/LoftDataGrids/ExportData.php \AKlump\LoftDataGrids\ExportData::gotoLocation()
Goto to a stored location
Parameters
string $location_id A unique key or preset id to remember this: location by. If nothing has been stored using this id, nothing happens.
Return value
$this
Overrides ExportDataInterface::gotoLocation
File
- vendor/
aklump/ loft_data_grids/ src/ AKlump/ LoftDataGrids/ ExportData.php, line 67
Class
Namespace
AKlump\LoftDataGridsCode
public function gotoLocation($location_id) {
if (isset($this->locations[$location_id])) {
$this->current_page = $page = $this->locations[$location_id]['page'];
$this->current_pointers = $this->locations[$location_id]['pointers'];
}
return $this;
}