Пример #1
0
 public function parseFile()
 {
     $this->logEvent("Parsing file..");
     require_once 'CsvParser.php';
     $parser = new CsvParser($this->uploadedFile);
     $this->parsedFile = array_filter($parser->getParsedFile());
     $this->logEvent("File parsed!");
 }
 public function parseFile()
 {
     require_once 'CsvParser.php';
     $separator = $this->parserInstructions['separator'];
     $headlineDetection = $this->parserInstructions['headlineDetection'];
     $parser = new CsvParser($this->uploadedFile, $separator, $headlineDetection);
     $this->parsedFile = array_filter($parser->getParsedFile());
 }