public function ExportData::setPointer 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::setPointer()
Advance the record pointer to a given index or all the way to the end
Parameters
int|NULL $index: (Optional) Defaults to NULL. When NULL the pointer will move to the end to begin a new row of data.
Return value
$this
Overrides ExportDataInterface::setPointer
File
- vendor/
aklump/ loft_data_grids/ src/ AKlump/ LoftDataGrids/ ExportData.php, line 190
Class
Namespace
AKlump\LoftDataGridsCode
public function setPointer($index = NULL) {
if ($index === NULL) {
$index = count($this->data[$this->current_page]);
}
$this->current_pointers[$this->current_page] = $index;
return $this;
}