ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
26utf8.php File Reference

Go to the source code of this file.

Namespaces

 PHPExcel
 

Variables

const EOL (PHP_SAPI == 'cli') ? PHP_EOL : '<br />'
 
 $rendererName = PHPExcel_Settings::PDF_RENDERER_DOMPDF
 Include PHPExcel. More...
 
 $rendererLibrary = 'domPDF0.6.0beta3'
 
 $rendererLibraryPath = '/php/libraries/PDF/' . $rendererLibrary
 
Load Excel2007 template file
 
 $objReader = PHPExcel_IOFactory::createReader('Excel2007')
 
 $objPHPExcel = $objReader->load("templates/26template.xlsx")
 
Write to Excel5 format
 
 $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007')
 
File written to
 
 try
 
Removing first two heading rows for CSV export
 
 $objWorksheet = $objPHPExcel->getActiveSheet()
 
Peak memory usage
 
Peak memory memory_get_peak_usage(true)/1024/1024) MB
 
Done writing files
 

Variable Documentation

◆ $objPHPExcel

$objPHPExcel = $objReader->load("templates/26template.xlsx")

Definition at line 55 of file 26utf8.php.

◆ $objReader

$objReader = PHPExcel_IOFactory::createReader('Excel2007')

Definition at line 54 of file 26utf8.php.

◆ $objWorksheet

$objWorksheet = $objPHPExcel->getActiveSheet()

Definition at line 101 of file 26utf8.php.

◆ $objWriter

$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007')

Definition at line 61 of file 26utf8.php.

◆ $rendererLibrary

$rendererLibrary = 'domPDF0.6.0beta3'

Definition at line 48 of file 26utf8.php.

◆ $rendererLibraryPath

$rendererLibraryPath = '/php/libraries/PDF/' . $rendererLibrary

Definition at line 49 of file 26utf8.php.

◆ $rendererName

Include PHPExcel.

Definition at line 45 of file 26utf8.php.

◆ EOL

getcwd () EOL (PHP_SAPI == 'cli') ? PHP_EOL : '<br />'

Definition at line 33 of file 26utf8.php.

◆ export

◆ file

Load Excel2007 template file

Definition at line 53 of file 26utf8.php.

◆ files

Done writing files

Definition at line 121 of file 26utf8.php.

◆ format

Write to CSV format

Definition at line 60 of file 26utf8.php.

◆ MB

Peak memory memory_get_peak_usage (true)/1024/1024) MB

Definition at line 118 of file 26utf8.php.

◆ to

File written to

Definition at line 63 of file 26utf8.php.

◆ try

try
Initial value:
{
)) {
echo (
'NOTICE: Please set the $rendererName and $rendererLibraryPath values' .
EOL .
'at the top of this script as appropriate for your directory structure' .
);
} else {
$objWriter->save(str_replace('.php', '.pdf', __FILE__));
echo date('H:i:s') , " File written to " , str_replace('.php', '.pdf', pathinfo(__FILE__, PATHINFO_BASENAME)) , EOL;
}
} catch (Exception $e) {
echo date('H:i:s') , ' EXCEPTION: ', $e->getMessage() , EOL;
}
echo date('H:i:s')
static setPdfRenderer($libraryName, $libraryBaseDir)
Set details of the external library that PHPExcel should use for rendering PDF files.
Definition: Settings.php:287
$rendererLibraryPath
Definition: 26utf8.php:49
static createWriter(PHPExcel $phpExcel, $writerType='')
Create PHPExcel_Writer_IWriter.
Definition: IOFactory.php:132
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
$rendererName
Include PHPExcel.
Definition: 26utf8.php:45
$objWriter
Definition: 26utf8.php:61
$objPHPExcel
Definition: 26utf8.php:55
const EOL
Definition: 26utf8.php:33

Definition at line 79 of file 26utf8.php.

◆ usage

Peak memory usage

Definition at line 118 of file 26utf8.php.