function getDataFromCsvFile($options)
 {
     $filename = $this->getFilename($options);
     $path = $this->getCsvPath($filename);
     $csv = new CSVReader();
     $csv->useHeaderAsIndex();
     $this->setRow($csv, $options);
     return $csv->getData($path);
 }
Exemple #2
0
 function readCsvFile($path)
 {
     $csv = new CSVReader();
     $csv->useHeaderAsIndex();
     return $csv->data($path);
 }