public function Xls::__construct in Excel Serialization 8
Constructs an XLS encoder.
Parameters
string $xls_format: The XLS format to use.
1 method overrides Xls::__construct()
- Xlsx::__construct in src/
Encoder/ Xlsx.php - Constructs an XLS encoder.
File
- src/
Encoder/ Xls.php, line 42
Class
- Xls
- Adds XLS encoder support for the Serialization API.
Namespace
Drupal\xls_serialization\EncoderCode
public function __construct($xls_format = 'Xlsx') {
// Temporary fix until it wold be fixed at views_data_export.
if ($xls_format == 'Excel2007') {
$xls_format = 'Xlsx';
}
$this->xlsFormat = $xls_format;
}