✏️ 正在编辑: PanStrategyAbstract.php
路径:
/srv/systems_dir/yuppiecred/application/services/Importacao/Strategy/PanStrategyAbstract.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php use Zend_File_Transfer_Adapter_Http as Upload; use Service_Importacao_Strategy_StrategyAbstract as StrategyAbstract; class Service_Importacao_Strategy_PanStrategyAbstract extends StrategyAbstract { /** * @param Upload $upload * @param int $layout * @throws PHPExcel_Reader_Exception */ public function doImport(Upload $upload, int $layout): array { /** @var Service_Upload $uploadService */ $uploadService = service('upload'); $uploadService->receive($upload, $this->getDiretorioDestino()); $filename = $upload->getFileName(); $extensao = $uploadService->getExtensao($upload); $objReader = $this->getReaderResolve($extensao, $filename); @$objPHPExcel = $objReader->load($upload->getFileName()); $this->isPhpExcelValid($objPHPExcel); $sheetData = $objPHPExcel->getActiveSheet()->toArray(null, true, true, true); $result = $this->import($upload, $sheetData, $layout, $extensao); $objPHPExcel->disconnectWorksheets(); unset($objPHPExcel); unset($objReader); return $result; } }
💾 保存文件
← 返回文件管理器