예제 #1
0
 private function import($args)
 {
     $sheet = new Sheet(file_get_contents($this->baseDir . trim($args, '\'" ')), $this->baseDir);
     return $sheet->parse();
 }
예제 #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);
 }
예제 #3
0
파일: Sheet.php 프로젝트: solleer/framework
 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);
 }
예제 #4
0
파일: Sheet.php 프로젝트: cxj/Transphporm
 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);
 }