Esempio n. 1
0
 private function import($args)
 {
     $sheet = new Sheet(file_get_contents($this->baseDir . trim($args, '\'" ')), $this->baseDir);
     return $sheet->parse();
 }
Esempio n. 2
0
 private function import($args, $indexStart)
 {
     if ($this->file !== null) {
         $fileName = $fileName = $this->filePath->getFilePath($args[0]);
     } else {
         $fileName = $args[0];
     }
     $this->import[] = $fileName;
     $sheet = new Sheet($fileName, $this->baseDir, $this->xPath, $this->valueParser, $this->cache, $this->filePath);
     return $sheet->parse($indexStart);
 }
Esempio n. 3
0
 private function import($args, $indexStart)
 {
     if ($this->file !== null) {
         $fileName = dirname(realpath($this->file)) . DIRECTORY_SEPARATOR . $args[0];
     } else {
         $fileName = $args[0];
     }
     $sheet = new Sheet(file_get_contents($fileName), $fileName, $this->xPath, $this->valueParser);
     return $sheet->parse($indexStart);
 }
Esempio n. 4
0
 private function import($args, $indexStart)
 {
     $sheet = new Sheet(file_get_contents($this->baseDir . trim($args, '\'" ')), $this->baseDir, $this->valueParser, $this->prefix);
     return $sheet->parse(0, [], $indexStart);
 }