You are here

public function XLSXExporter::getProperty in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/aklump/loft_data_grids/src/AKlump/LoftDataGrids/XLSXExporter.php \AKlump\LoftDataGrids\XLSXExporter::getProperty()

Return the value of a single property or NULL

Parameters

string $property_name e.g. Creator:

Return value

mixed

File

vendor/aklump/loft_data_grids/src/AKlump/LoftDataGrids/XLSXExporter.php, line 85

Class

XLSXExporter
Class XLSXExporter

Namespace

AKlump\LoftDataGrids

Code

public function getProperty($property_name) {
  $obj = $this->excel
    ->getProperties();
  $method = "get{$property_name}";
  return method_exists($obj, $method) ? $obj
    ->{$method}() : NULL;
}