You are here

public function ExportData::gotoLocation in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.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 59

Class

ExportData

Namespace

AKlump\LoftDataGrids

Code

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;
}