Beispiel #1
0
 /**
  * @param \Symfony\Component\DependencyInjection\Container $container
  * @param string|null $exportFilePath Excel report template full path
  * @throws \Exception
  */
 public function __construct($container, $exportFilePath = null)
 {
     if (!is_null($exportFilePath)) {
         if (file_exists($exportFilePath)) {
             $this->_objExcel = \PHPExcel_IOFactory::load($exportFilePath);
         } else {
             throw new \Exception('File not found ' . $exportFilePath);
         }
     } else {
         $this->_objExcel = new \PHPExcel();
     }
     parent::__construct($container);
 }
Beispiel #2
0
 public function __construct(Container $container)
 {
     parent::__construct($container);
     $this->_xml = new \DOMDocument('1.0', 'utf-8');
 }