public function XLSXExporter::setProperties in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/aklump/loft_data_grids/src/AKlump/LoftDataGrids/XLSXExporter.php \AKlump\LoftDataGrids\XLSXExporter::setProperties()
Set properties
Parameters
array $properties:
- Title
- Creator
- LastModifiedBy
- Description
- Keywords
- Category
Return value
$this
1 call to XLSXExporter::setProperties()
- XLSXExporter::__construct in vendor/
aklump/ loft_data_grids/ src/ AKlump/ LoftDataGrids/ XLSXExporter.php - Constructor
File
- vendor/
aklump/ loft_data_grids/ src/ AKlump/ LoftDataGrids/ XLSXExporter.php, line 66
Class
- XLSXExporter
- Class XLSXExporter
Namespace
AKlump\LoftDataGridsCode
public function setProperties($properties) {
$obj = $this->excel
->getProperties();
foreach ($properties as $property_name => $value) {
$method = "set{$property_name}";
if (method_exists($obj, $method)) {
$obj
->{$method}($value);
}
}
return $this;
}