\PhpOffice\PhpSpreadsheet\Writer\XlsxContentTypes

Summary

Methods
Properties
Constants
getParentWriter()
__construct()
writeContentTypes()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
getImageMimeType()
writeDefaultContentType()
writeOverrideContentType()
$parentWriter
N/A

Properties

Methods

writeContentTypes()

writeContentTypes(\PhpOffice\PhpSpreadsheet\Spreadsheet  $spreadsheet, boolean  $includeCharts = false) : string

Write content types to XML format.

Parameters

\PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet
boolean $includeCharts

Flag indicating if we should include drawing details for charts

Throws

\PhpOffice\PhpSpreadsheet\Writer\Exception

Returns

string —

XML Output

getImageMimeType()

getImageMimeType(string  $pFile) : string

Get image mime type.

Parameters

string $pFile

Filename

Throws

\PhpOffice\PhpSpreadsheet\Writer\Exception

Returns

string —

Mime Type

writeDefaultContentType()

writeDefaultContentType(\PhpOffice\PhpSpreadsheet\Shared\XMLWriter  $objWriter, string  $pPartname, string  $pContentType) 

Write Default content type.

Parameters

\PhpOffice\PhpSpreadsheet\Shared\XMLWriter $objWriter

XML Writer

string $pPartname

Part name

string $pContentType

Content type

Throws

\PhpOffice\PhpSpreadsheet\Writer\Exception

writeOverrideContentType()

writeOverrideContentType(\PhpOffice\PhpSpreadsheet\Shared\XMLWriter  $objWriter, string  $pPartname, string  $pContentType) 

Write Override content type.

Parameters

\PhpOffice\PhpSpreadsheet\Shared\XMLWriter $objWriter

XML Writer

string $pPartname

Part name

string $pContentType

Content type

Throws

\PhpOffice\PhpSpreadsheet\Writer\Exception