class StringTable extends WriterPart (View source)

Methods

getParentWriter()

Get parent Xlsx object.

__construct(Xlsx $pWriter)

Set parent Xlsx object.

string[]
createStringTable(Worksheet $pSheet, string[] $pExistingTable = null)

Create worksheet stringtable.

string
writeStringTable(array $pStringTable)

Write string table to XML format.

writeRichText(XMLWriter $objWriter, RichText $pRichText, string $prefix = null)

Write Rich Text.

writeRichTextForCharts(XMLWriter $objWriter, RichText|string $pRichText = null, string $prefix = null)

Write Rich Text.

array
flipStringTable(array $stringTable)

Flip string table (for index searching).

Details

Xlsx getParentWriter()

Get parent Xlsx object.

Return Value

Xlsx

__construct(Xlsx $pWriter)

Set parent Xlsx object.

Parameters

Xlsx $pWriter

string[] createStringTable(Worksheet $pSheet, string[] $pExistingTable = null)

Create worksheet stringtable.

Parameters

Worksheet $pSheet Worksheet
string[] $pExistingTable Existing table to eventually merge with

Return Value

string[] String table for worksheet

string writeStringTable(array $pStringTable)

Write string table to XML format.

Parameters

array $pStringTable

Return Value

string XML Output

Exceptions

Exception

writeRichText(XMLWriter $objWriter, RichText $pRichText, string $prefix = null)

Write Rich Text.

Parameters

XMLWriter $objWriter XML Writer
RichText $pRichText Rich text
string $prefix Optional Namespace prefix

writeRichTextForCharts(XMLWriter $objWriter, RichText|string $pRichText = null, string $prefix = null)

Write Rich Text.

Parameters

XMLWriter $objWriter XML Writer
RichText|string $pRichText text string or Rich text
string $prefix Optional Namespace prefix

array flipStringTable(array $stringTable)

Flip string table (for index searching).

Parameters

array $stringTable Stringtable

Return Value

array