ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
31docproperties_write.php File Reference

Go to the source code of this file.

Namespaces

 PHPExcel
 

Variables

const EOL (PHP_SAPI == 'cli') ? PHP_EOL : '<br />'
 
 $inputFileType = 'Excel2007'
 Include PHPExcel. More...
 
 $inputFileName = 'templates/31docproperties.xlsx'
 
Load Tests from $inputFileType file
 
 $callStartTime = microtime(true)
 
 $objPHPExcelReader = PHPExcel_IOFactory::createReader($inputFileType)
 
 $objPHPExcel = $objPHPExcelReader->load($inputFileName)
 
 $callEndTime = microtime(true)
 
 $callTime = $callEndTime - $callStartTime
 
sprintf('%.4f', $callTime) seconds
 
memory_get_usage(true)/1024/1024) MB
 
Adjust properties
 
Write to Excel2007 format
 
 $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007')
 
File written to
 
Peak memory usage
 
 $objPHPExcelRead = PHPExcel_IOFactory::load(str_replace('.php', '.xlsx', __FILE__))
 
 date ( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
 
 $customProperties = $objPHPExcel->getProperties()->getCustomProperties()
 
 foreach ( $customProperties as $customProperty)
 

Variable Documentation

◆ $callEndTime

$callEndTime = microtime(true)

Definition at line 51 of file 31docproperties_write.php.

◆ $callStartTime

$callStartTime = microtime(true)

Definition at line 46 of file 31docproperties_write.php.

◆ $callTime

$callTime = $callEndTime - $callStartTime

Definition at line 52 of file 31docproperties_write.php.

◆ $customProperties

$customProperties = $objPHPExcel->getProperties()->getCustomProperties()

Definition at line 104 of file 31docproperties_write.php.

◆ $inputFileName

$inputFileName = 'templates/31docproperties.xlsx'

Definition at line 42 of file 31docproperties_write.php.

◆ $inputFileType

$inputFileType = 'Excel2007'

Include PHPExcel.

Definition at line 41 of file 31docproperties_write.php.

◆ $objPHPExcel

$objPHPExcel = $objPHPExcelReader->load($inputFileName)

Definition at line 49 of file 31docproperties_write.php.

◆ $objPHPExcelRead

$objPHPExcelRead = PHPExcel_IOFactory::load(str_replace('.php', '.xlsx', __FILE__))

Definition at line 79 of file 31docproperties_write.php.

◆ $objPHPExcelReader

$objPHPExcelReader = PHPExcel_IOFactory::createReader($inputFileType)

Definition at line 48 of file 31docproperties_write.php.

◆ $objWriter

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

Definition at line 67 of file 31docproperties_write.php.

◆ date

date('d-M-Y', $objPHPExcel->getProperties() ->getModified())

Definition at line 86 of file 31docproperties_write.php.

◆ EOL

Peak memory memory_get_peak_usage (true)/1024/1024) . " MB" EOL (PHP_SAPI == 'cli') ? PHP_EOL : '<br />'

Definition at line 33 of file 31docproperties_write.php.

◆ file

Reread Excel2007 file

Definition at line 45 of file 31docproperties_write.php.

◆ foreach

foreach($customProperties as $customProperty)

Definition at line 105 of file 31docproperties_write.php.

◆ format

Write to Excel2007 format

Definition at line 66 of file 31docproperties_write.php.

◆ MB

memory_get_usage (true)/1024/1024) MB

Definition at line 55 of file 31docproperties_write.php.

◆ properties

Get properties

Definition at line 58 of file 31docproperties_write.php.

◆ seconds

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

Definition at line 53 of file 31docproperties_write.php.

◆ to

File written to

Definition at line 69 of file 31docproperties_write.php.

◆ usage

Peak memory usage

Definition at line 73 of file 31docproperties_write.php.