예제 #1
0
파일: Workbook.php 프로젝트: ymnl007/Clerk
 /**
  * @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);
 }
예제 #2
0
파일: Workbook.php 프로젝트: ymnl007/Clerk
 /**
  * @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);
 }