StringTable
extends WriterPart
in package
Table of Contents
Properties
- $parentWriter : Xlsx
- Parent Xlsx object.
Methods
- __construct() : mixed
- Set parent Xlsx object.
- createStringTable() : array<string|int, string>
- Create worksheet stringtable.
- flipStringTable() : array<string|int, mixed>
- Flip string table (for index searching).
- getParentWriter() : Xlsx
- Get parent Xlsx object.
- writeRichText() : void
- Write Rich Text.
- writeRichTextForCharts() : void
- Write Rich Text.
- writeStringTable() : string
- Write string table to XML format.
- writeChartTextColor() : void
Properties
$parentWriter
Parent Xlsx object.
private
Xlsx
$parentWriter
Methods
__construct()
Set parent Xlsx object.
public
__construct(Xlsx $writer) : mixed
Parameters
- $writer : Xlsx
createStringTable()
Create worksheet stringtable.
public
createStringTable(Worksheet $worksheet[, array<string|int, string> $existingTable = null ]) : array<string|int, string>
Parameters
- $worksheet : Worksheet
- $existingTable : array<string|int, string> = null
-
Existing table to eventually merge with
Return values
array<string|int, string> —String table for worksheet
flipStringTable()
Flip string table (for index searching).
public
flipStringTable(array<string|int, mixed> $stringTable) : array<string|int, mixed>
Parameters
- $stringTable : array<string|int, mixed>
-
Stringtable
Return values
array<string|int, mixed>getParentWriter()
Get parent Xlsx object.
public
getParentWriter() : Xlsx
Return values
XlsxwriteRichText()
Write Rich Text.
public
writeRichText(XMLWriter $objWriter, RichText $richText[, string|null $prefix = null ]) : void
Parameters
writeRichTextForCharts()
Write Rich Text.
public
writeRichTextForCharts(XMLWriter $objWriter[, RichText|string $richText = null ][, string $prefix = '' ]) : void
Parameters
writeStringTable()
Write string table to XML format.
public
writeStringTable(array<string|int, RichText|string> $stringTable) : string
Parameters
- $stringTable : array<string|int, RichText|string>
Return values
string —XML Output
writeChartTextColor()
private
writeChartTextColor(XMLWriter $objWriter, ChartColor|null $underlineColor, string $prefix[, string|null $openTag = '' ]) : void
Parameters
- $objWriter : XMLWriter
- $underlineColor : ChartColor|null
- $prefix : string
- $openTag : string|null = ''