Documentation

ContentTypes extends WriterPart
in package

Table of Contents

Properties

$parentWriter  : Xlsx
Parent Xlsx object.
$three  : int

Methods

__construct()  : mixed
Set parent Xlsx object.
getParentWriter()  : Xlsx
Get parent Xlsx object.
writeContentTypes()  : string
Write content types to XML format.
getImageMimeType()  : string
Get image mime type.
writeDefaultContentType()  : void
Write Default content type.
writeOverrideContentType()  : void
Write Override content type.

Properties

Methods

__construct()

Set parent Xlsx object.

public __construct(Xlsx $writer) : mixed
Parameters
$writer : Xlsx

getParentWriter()

Get parent Xlsx object.

public getParentWriter() : Xlsx
Return values
Xlsx

writeContentTypes()

Write content types to XML format.

public writeContentTypes(Spreadsheet $spreadsheet[, bool $includeCharts = false ]) : string
Parameters
$spreadsheet : Spreadsheet
$includeCharts : bool = false

Flag indicating if we should include drawing details for charts

Return values
string

XML Output

getImageMimeType()

Get image mime type.

private getImageMimeType(string $filename) : string
Parameters
$filename : string

Filename

Return values
string

Mime Type

writeDefaultContentType()

Write Default content type.

private writeDefaultContentType(XMLWriter $objWriter, string $partName, string $contentType) : void
Parameters
$objWriter : XMLWriter
$partName : string

Part name

$contentType : string

Content type

writeOverrideContentType()

Write Override content type.

private writeOverrideContentType(XMLWriter $objWriter, string $partName, string $contentType) : void
Parameters
$objWriter : XMLWriter
$partName : string

Part name

$contentType : string

Content type


        
On this page

Search results