ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
25inmemoryimage.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
 
Generate an image
 
 $gdImage = @imagecreatetruecolor(120, 20) or die('Cannot Initialize new GD image stream')
 
 $textColor = imagecolorallocate($gdImage, 255, 255, 255)
 
Add a drawing to the worksheet
 
 $objDrawing = new PHPExcel_Worksheet_MemoryDrawing()
 
Write to Excel2007 format
 
 $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007')
 
File written to
 
Peak memory usage
 
Peak memory memory_get_peak_usage(true)/1024/1024) MB
 
Done writing file
 

Variable Documentation

◆ $gdImage

$gdImage = @imagecreatetruecolor(120, 20) or die('Cannot Initialize new GD image stream')

Definition at line 57 of file 25inmemoryimage.php.

◆ $objDrawing

$objDrawing = new PHPExcel_Worksheet_MemoryDrawing()

Definition at line 63 of file 25inmemoryimage.php.

◆ $objPHPExcel

$objPHPExcel = new PHPExcel()

Definition at line 43 of file 25inmemoryimage.php.

◆ $objWriter

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

Definition at line 73 of file 25inmemoryimage.php.

◆ $textColor

$textColor = imagecolorallocate($gdImage, 255, 255, 255)

Definition at line 58 of file 25inmemoryimage.php.

◆ EOL

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

Definition at line 33 of file 25inmemoryimage.php.

◆ file

Done writing file

Definition at line 82 of file 25inmemoryimage.php.

◆ format

Write to Excel2007 format

Definition at line 72 of file 25inmemoryimage.php.

◆ image

◆ MB

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

Definition at line 79 of file 25inmemoryimage.php.

◆ object

Create new PHPExcel object

Definition at line 38 of file 25inmemoryimage.php.

◆ properties

Set document properties

Definition at line 46 of file 25inmemoryimage.php.

◆ to

File written to

Definition at line 75 of file 25inmemoryimage.php.

◆ usage

Peak memory usage

Definition at line 79 of file 25inmemoryimage.php.

◆ worksheet

Add a drawing to the worksheet

Definition at line 62 of file 25inmemoryimage.php.