ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
02types.php File Reference

Go to the source code of this file.

Namespaces

 PHPExcel
 

Variables

const EOL (PHP_SAPI == 'cli') ? PHP_EOL : '<br />'
 
Create new PHPExcel object
 
 $objPHPExcel = new PHPExcel()
 
Set document properties
 
Set default font
 
Add some data
 
 $dateTimeNow = time()
 
 $objRichText = new PHPExcel_RichText()
 
 $objPayable = $objRichText->createTextRun('你 好 吗?')
 
 $objRichText2 = new PHPExcel_RichText()
 
 $objRed = $objRichText2->createTextRun("red text")
 
Rename worksheet
 
Write to Excel2007 format
 
 $callStartTime = microtime(true)
 
 $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007')
 
 $callEndTime = microtime(true)
 
 $callTime = $callEndTime - $callStartTime
 
File written to
 
sprintf('%.4f', $callTime) seconds
 
memory_get_usage(true)/1024/1024) MB
 
Reload workbook from saved file
 
Peak memory usage
 

Variable Documentation

◆ $callEndTime

$callEndTime = microtime(true)

Definition at line 154 of file 02types.php.

◆ $callStartTime

$callStartTime = microtime(true)

Definition at line 150 of file 02types.php.

◆ $callTime

$callTime = $callEndTime - $callStartTime

Definition at line 155 of file 02types.php.

◆ $dateTimeNow

$dateTimeNow = time()

Definition at line 93 of file 02types.php.

◆ $objPayable

$objPayable = $objRichText->createTextRun('你 好 吗?')

Definition at line 115 of file 02types.php.

◆ $objPHPExcel

$objPHPExcel = new PHPExcel()

Definition at line 42 of file 02types.php.

◆ $objRed

$objRed = $objRichText2->createTextRun("red text")

Definition at line 129 of file 02types.php.

◆ $objRichText

$objRichText = new PHPExcel_RichText()

Definition at line 112 of file 02types.php.

◆ $objRichText2

$objRichText2 = new PHPExcel_RichText()

Definition at line 126 of file 02types.php.

◆ $objWriter

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

Definition at line 152 of file 02types.php.

◆ data

Add some data

Definition at line 60 of file 02types.php.

◆ EOL

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

Definition at line 34 of file 02types.php.

◆ file

Done testing file

Definition at line 163 of file 02types.php.

◆ font

Set default font

Definition at line 55 of file 02types.php.

◆ format

Write to Excel2007 format

Definition at line 149 of file 02types.php.

◆ MB

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

Definition at line 160 of file 02types.php.

◆ object

Create new PHPExcel object

Definition at line 37 of file 02types.php.

◆ properties

Set document properties

Definition at line 45 of file 02types.php.

◆ seconds

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

Definition at line 158 of file 02types.php.

◆ to

File written to

Definition at line 157 of file 02types.php.

◆ usage

Peak memory usage

Definition at line 179 of file 02types.php.

◆ worksheet

Rename worksheet

Definition at line 140 of file 02types.php.