ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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) | |
$callEndTime = microtime(true) |
Definition at line 51 of file 31docproperties_write.php.
$callStartTime = microtime(true) |
Definition at line 46 of file 31docproperties_write.php.
$callTime = $callEndTime - $callStartTime |
Definition at line 52 of file 31docproperties_write.php.
$customProperties = $objPHPExcel->getProperties()->getCustomProperties() |
Definition at line 104 of file 31docproperties_write.php.
$inputFileName = 'templates/31docproperties.xlsx' |
Definition at line 42 of file 31docproperties_write.php.
$inputFileType = 'Excel2007' |
Include PHPExcel.
Definition at line 41 of file 31docproperties_write.php.
$objPHPExcel = $objPHPExcelReader->load($inputFileName) |
Definition at line 49 of file 31docproperties_write.php.
$objPHPExcelRead = PHPExcel_IOFactory::load(str_replace('.php', '.xlsx', __FILE__)) |
Definition at line 79 of file 31docproperties_write.php.
$objPHPExcelReader = PHPExcel_IOFactory::createReader($inputFileType) |
Definition at line 48 of file 31docproperties_write.php.
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007') |
Definition at line 67 of file 31docproperties_write.php.
date('d-M-Y', $objPHPExcel->getProperties() ->getModified()) |
Definition at line 86 of file 31docproperties_write.php.
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.
Reread Excel2007 file |
Definition at line 45 of file 31docproperties_write.php.
foreach($customProperties as $customProperty) |
Definition at line 105 of file 31docproperties_write.php.
Write to Excel2007 format |
Definition at line 66 of file 31docproperties_write.php.
memory_get_usage (true)/1024/1024) MB |
Definition at line 55 of file 31docproperties_write.php.
Get properties |
Definition at line 58 of file 31docproperties_write.php.
sprintf ('%.4f', $callTime) seconds |
Definition at line 53 of file 31docproperties_write.php.
File written to |
Definition at line 69 of file 31docproperties_write.php.
Peak memory usage |
Definition at line 73 of file 31docproperties_write.php.