ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
16csv.php File Reference

Go to the source code of this file.

Namespaces

 PHPExcel
 

Variables

const EOL (PHP_SAPI == 'cli') ? PHP_EOL : '<br />'
 
Write to CSV format
 
 $callStartTime = microtime(true)
 
 $objWriter
 
 $callEndTime = microtime(true)
 
 $callTime = $callEndTime - $callStartTime
 
File written to
 
sprintf('%.4f', $callTime) seconds
 
memory_get_usage(true)/1024/1024) MB
 
 $objReader
 
 $objPHPExcelFromCSV = $objReader->load(str_replace('.php', '.csv', __FILE__))
 
 $objWriter2007 = PHPExcel_IOFactory::createWriter($objPHPExcelFromCSV, 'Excel2007')
 
 $objWriterCSV = PHPExcel_IOFactory::createWriter($objPHPExcelFromCSV, 'CSV')
 
Peak memory usage
 
Done writing files
 

Variable Documentation

◆ $callEndTime

$callEndTime = microtime(true)

Definition at line 52 of file 16csv.php.

◆ $callStartTime

$callStartTime = microtime(true)

Definition at line 45 of file 16csv.php.

◆ $callTime

$callTime = $callEndTime - $callStartTime

Definition at line 53 of file 16csv.php.

◆ $objPHPExcelFromCSV

$objPHPExcelFromCSV = $objReader->load(str_replace('.php', '.csv', __FILE__))

Definition at line 66 of file 16csv.php.

◆ $objReader

$objReader
Initial value:
= PHPExcel_IOFactory::createReader('CSV')->setDelimiter(',')
->setEnclosure('"')
->setLineEnding("\r\n")
->setSheetIndex(0)
static createReader($readerType='')
Create PHPExcel_Reader_IReader.
Definition: IOFactory.php:161

Definition at line 62 of file 16csv.php.

◆ $objWriter

$objWriter
Initial value:
= PHPExcel_IOFactory::createWriter($objPHPExcel, 'CSV')->setDelimiter(',')
->setEnclosure('"')
->setLineEnding("\r\n")
->setSheetIndex(0)
->save(str_replace('.php', '.csv', __FILE__))
$objPHPExcel
static createWriter(PHPExcel $phpExcel, $writerType='')
Create PHPExcel_Writer_IWriter.
Definition: IOFactory.php:132

Definition at line 47 of file 16csv.php.

◆ $objWriter2007

$objWriter2007 = PHPExcel_IOFactory::createWriter($objPHPExcelFromCSV, 'Excel2007')

Definition at line 78 of file 16csv.php.

◆ $objWriterCSV

$objWriterCSV = PHPExcel_IOFactory::createWriter($objPHPExcelFromCSV, 'CSV')

Definition at line 91 of file 16csv.php.

◆ EOL

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

Definition at line 34 of file 16csv.php.

◆ files

Done writing files

Definition at line 106 of file 16csv.php.

◆ format

Write to CSV format

Definition at line 38 of file 16csv.php.

◆ MB

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

Definition at line 57 of file 16csv.php.

◆ seconds

sprintf ('%.4f', $callTime) seconds

Definition at line 55 of file 16csv.php.

◆ to

File written to

Definition at line 54 of file 16csv.php.

◆ usage

Peak memory usage

Definition at line 103 of file 16csv.php.