Skip to content

Commit

Permalink
Excel export type tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
benkeen committed Nov 25, 2019
1 parent cc426fa commit b3a8c36
Show file tree
Hide file tree
Showing 562 changed files with 7 additions and 171,983 deletions.
11 changes: 6 additions & 5 deletions plugins/exportTypes/Excel/Excel.class.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?php
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;

require_once("vendor/autoload.php");

use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
use PhpOffice\PhpSpreadsheet\Spreadsheet;


/**
* @package ExportTypes
*/
Expand All @@ -18,9 +22,6 @@ class Excel extends ExportTypePlugin {


function generate($generator) {
require("vendor/autoload.php");
require_once("PhpOffice/PhpSpreadsheet/Spreadsheet.php");

$data = $generator->generateExportData();
$this->chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
$this->charArray = str_split($this->chars, 1);
Expand All @@ -46,7 +47,7 @@ function generate($generator) {
$objPHPExcel->getActiveSheet()->setCellValue($col, $data["rowData"][$i][$j]);
}
}

// we'll need to check if the compression option is turned on. And then execute this code - unullmass

//$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'xlsx');
Expand Down
2 changes: 1 addition & 1 deletion plugins/exportTypes/Excel/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Excel Export Type

This Export Type generates the random data in Excel format. It uses the `PHPExcel` library to handle the
This Export Type generates the random data in Excel format. It uses the `PHPOffice/PHPSpreadsheet` library to handle the
actual file generation.

It's super-simple, and doesn't offer any additional settings to control any aspects of the generated Excel file.
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions plugins/exportTypes/Excel/phpoffice/phpspreadsheet/.gitignore

This file was deleted.

183 changes: 0 additions & 183 deletions plugins/exportTypes/Excel/phpoffice/phpspreadsheet/.php_cs.dist

This file was deleted.

24 changes: 0 additions & 24 deletions plugins/exportTypes/Excel/phpoffice/phpspreadsheet/.sami.php

This file was deleted.

This file was deleted.

Loading

0 comments on commit b3a8c36

Please sign in to comment.