class Xlsx in Excel Serialization 8
Adds XLSX encoder support for the Serialization API.
Hierarchy
Expanded class hierarchy of Xlsx
3 string references to 'Xlsx'
- Xls::setSettings in src/
Encoder/ Xls.php - Set XLS settings from the Views settings array.
- Xls::__construct in src/
Encoder/ Xls.php - Constructs an XLS encoder.
- xls_serialization.services.yml in ./
xls_serialization.services.yml - xls_serialization.services.yml
1 service uses Xlsx
File
- src/
Encoder/ Xlsx.php, line 8
Namespace
Drupal\xls_serialization\EncoderView source
class Xlsx extends Xls {
/**
* The format that this encoder supports.
*
* @var string
*/
protected static $format = 'xlsx';
/**
* Format to write XLS files as.
*
* @var string
*/
protected $xlsFormat = 'Xlsx';
/**
* Constructs an XLS encoder.
*
* @param string $xls_format
* The XLS format to use.
*/
public function __construct($xls_format = 'Xlsx') {
$this->xlsFormat = $xls_format;
}
/**
* {@inheritdoc}
*/
protected function setSettings(array $settings) {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Xls:: |
public | function | Encodes data into the given format. | |
Xls:: |
protected | function | Extract the headers from the data array. | |
Xls:: |
protected | function | Formats a single value for a given XLS cell. | |
Xls:: |
protected | function | Get the column letter for a field name from the headers. | |
Xls:: |
protected | function | Returns the operator for conditional formatting from the HTML-select index. | |
Xls:: |
protected | function | Get the label in the view for a field name (if available) | |
Xls:: |
protected | function | Set width of all columns with data in them in sheet to AutoSize. | |
Xls:: |
protected | function | Gets conditional formatting for whole row if the comparison is TRUE. | |
Xls:: |
protected | function | Sets conditional formats on worksheet. | |
Xls:: |
protected | function | Set sheet data. | |
Xls:: |
protected | function | Set background color of the header (first) row. | |
Xls:: |
protected | function | Set font of the header (first) row to bold. | |
Xls:: |
protected | function | Set font of the header (first) row to italic. | |
Xls:: |
protected | function | Set sheet headers. | |
Xls:: |
protected | function | Set any available metadata. | |
Xls:: |
public | function | Checks whether the serializer can encode to given format. | |
Xls:: |
protected | function | Validates the title of the Worksheet to ensure it's valid. | |
Xlsx:: |
protected static | property |
The format that this encoder supports. Overrides Xls:: |
|
Xlsx:: |
protected | property |
Format to write XLS files as. Overrides Xls:: |
|
Xlsx:: |
protected | function |
Set XLS settings from the Views settings array. Overrides Xls:: |
|
Xlsx:: |
public | function |
Constructs an XLS encoder. Overrides Xls:: |