Exemplo n.º 1
0
 /**
  * @param          $title
  * @param Closure  $callback
  * @param PHPExcel $driver
  */
 public function __construct($title, Closure $callback = null, PHPExcel $driver = null)
 {
     // Set PHPExcel instance
     $this->driver = $driver ?: new PHPExcel();
     $this->driver->disconnectWorksheets();
     parent::__construct($title, $callback);
 }
Exemplo n.º 2
0
 /**
  * @param              $title
  * @param Closure      $callback
  * @param LeagueWriter $driver
  */
 public function __construct($title, Closure $callback = null, LeagueWriter $driver = null)
 {
     // Set driver instance
     $this->driver = $driver ?: LeagueWriter::createFromFileObject(new SplTempFileObject());
     parent::__construct($title, $callback);
 }