class ContentTypes extends WriterPart (View source)

Methods

getParentWriter()

Get parent Xlsx object.

__construct(Xlsx $pWriter)

Set parent Xlsx object.

string
writeContentTypes(Spreadsheet $spreadsheet, bool $includeCharts = false)

Write content types to XML format.

Details

Xlsx getParentWriter()

Get parent Xlsx object.

Return Value

Xlsx

__construct(Xlsx $pWriter)

Set parent Xlsx object.

Parameters

Xlsx $pWriter

string writeContentTypes(Spreadsheet $spreadsheet, bool $includeCharts = false)

Write content types to XML format.

Parameters

Spreadsheet $spreadsheet
bool $includeCharts Flag indicating if we should include drawing details for charts

Return Value

string XML Output

Exceptions

Exception