function _phpexcel_set_properties in PHPExcel 8.3
Same name and namespace in other branches
- 6.2 phpexcel.api.inc \_phpexcel_set_properties()
- 6 phpexcel.api.inc \_phpexcel_set_properties()
- 7.3 phpexcel.inc \_phpexcel_set_properties()
- 7 phpexcel.api.inc \_phpexcel_set_properties()
- 7.2 phpexcel.inc \_phpexcel_set_properties()
Sets the Excel file properties, like creator, title, etc.
See also
1 call to _phpexcel_set_properties()
- phpexcel_export in ./
phpexcel.inc - Simple API function which will generate an XLS file and save it in $path.
File
- ./
phpexcel.inc, line 200 - Defines the phpexcel api functions that other modules can use.
Code
function _phpexcel_set_properties($properties, $options) {
if (isset($options['creator'])) {
$properties
->setCreator($options['creator']);
}
else {
$properties
->setCreator("PHPExcel");
}
if (isset($options['title'])) {
$properties
->setTitle($options['title']);
}
if (isset($options['subject'])) {
$properties
->setSubject($options['subject']);
}
if (isset($options['description'])) {
$properties
->setDescription($options['description']);
}
}