\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

$parentWriter

$parentWriter : \PhpOffice\PhpSpreadsheet\Writer\Xlsx

Parent Xlsx object.

Type

Xlsx

Methods

getParentWriter()

getParentWriter() : \PhpOffice\PhpSpreadsheet\Writer\Xlsx

Get parent Xlsx object.

Returns

\PhpOffice\PhpSpreadsheet\Writer\Xlsx —

__construct()

__construct(\PhpOffice\PhpSpreadsheet\Writer\Xlsx  $pWriter) : mixed

Set parent Xlsx object.

Parameters

\PhpOffice\PhpSpreadsheet\Writer\Xlsx $pWriter

Returns

mixed —

writeContentTypes()

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

Write content types to XML format.

Parameters

\PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet
bool $includeCharts

Flag indicating if we should include drawing details for charts

Returns

string —

XML Output

getImageMimeType()

getImageMimeType(string  $pFile) : string

Get image mime type.

Parameters

string $pFile

Filename

Returns

string —

Mime Type

writeDefaultContentType()

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

Write Default content type.

Parameters

\PhpOffice\PhpSpreadsheet\Shared\XMLWriter $objWriter

XML Writer

string $pPartname

Part name

string $pContentType

Content type

writeOverrideContentType()

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

Write Override content type.

Parameters

\PhpOffice\PhpSpreadsheet\Shared\XMLWriter $objWriter

XML Writer

string $pPartname

Part name

string $pContentType

Content type