csv_record[$query]) ? $this->csv_record[$query] : ''; } protected function onRecordLoaded() { $this->csv_record = str_getcsv($this->record, $this->file->getDelimiter(), $this->file->getEnclosure()); } public function record() { return $this->csv_record; } public function query_matches($matches) { // make sure the selector is numeric {0} if (isset($matches[0]) && preg_match('/^\d+$/', $matches[1]) === 1) { return parent::query_matches($matches); } return $matches[0]; } }