\PHPExcel_Writer_Excel2007_ContentTypes

PHPExcel_Writer_Excel2007_ContentTypes

Summary

Methods
Properties
Constants
setParentWriter()
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

setParentWriter()

setParentWriter(\PHPExcel_Writer_IWriter  $pWriter = null) 

Set parent IWriter object

Parameters

\PHPExcel_Writer_IWriter $pWriter

Throws

\PHPExcel_Writer_Exception

getParentWriter()

getParentWriter() : \PHPExcel_Writer_IWriter

Get parent IWriter object

Throws

\PHPExcel_Writer_Exception

Returns

\PHPExcel_Writer_IWriter

__construct()

__construct(\PHPExcel_Writer_IWriter  $pWriter = null) 

Set parent IWriter object

Parameters

\PHPExcel_Writer_IWriter $pWriter

Throws

\PHPExcel_Writer_Exception

writeContentTypes()

writeContentTypes(\PHPExcel  $pPHPExcel = null, boolean  $includeCharts = FALSE) : string

Write content types to XML format

Parameters

\PHPExcel $pPHPExcel
boolean $includeCharts

Flag indicating if we should include drawing details for charts

Throws

\PHPExcel_Writer_Exception

Returns

string —

XML Output

_getImageMimeType()

_getImageMimeType(string  $pFile = '') : string

Get image mime type

Parameters

string $pFile

Filename

Throws

\PHPExcel_Writer_Exception

Returns

string —

Mime Type

_writeDefaultContentType()

_writeDefaultContentType(\PHPExcel_Shared_XMLWriter  $objWriter = null, string  $pPartname = '', string  $pContentType = '') 

Write Default content type

Parameters

\PHPExcel_Shared_XMLWriter $objWriter

XML Writer

string $pPartname

Part name

string $pContentType

Content type

Throws

\PHPExcel_Writer_Exception

_writeOverrideContentType()

_writeOverrideContentType(\PHPExcel_Shared_XMLWriter  $objWriter = null, string  $pPartname = '', string  $pContentType = '') 

Write Override content type

Parameters

\PHPExcel_Shared_XMLWriter $objWriter

XML Writer

string $pPartname

Part name

string $pContentType

Content type

Throws

\PHPExcel_Writer_Exception