\PhpOffice\PhpSpreadsheet\Writer\OdsContent

Summary

Methods
Properties
Constants
getParentWriter()
__construct()
write()
No public properties found
NUMBER_COLS_REPEATED_MAX
NUMBER_ROWS_REPEATED_MAX
No protected methods found
No protected properties found
N/A
writeSheets()
writeRows()
writeCells()
writeCellSpan()
writeXfStyles()
writeCellMerge()
$parentWriter
$formulaConvertor
N/A

Constants

NUMBER_COLS_REPEATED_MAX

NUMBER_COLS_REPEATED_MAX = 1024

NUMBER_ROWS_REPEATED_MAX

NUMBER_ROWS_REPEATED_MAX = 1048576

Properties

$parentWriter

$parentWriter : \PhpOffice\PhpSpreadsheet\Writer\Ods

Parent Ods object.

Type

Ods

$formulaConvertor

$formulaConvertor

Methods

getParentWriter()

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

Get Ods writer.

Returns

\PhpOffice\PhpSpreadsheet\Writer\Ods —

__construct()

__construct(\PhpOffice\PhpSpreadsheet\Writer\Ods  $writer) : mixed

Set parent Ods writer.

Parameters

\PhpOffice\PhpSpreadsheet\Writer\Ods $writer

Returns

mixed —

write()

write() : string

Write content.xml to XML format.

Returns

string —

XML Output

writeSheets()

writeSheets(\PhpOffice\PhpSpreadsheet\Shared\XMLWriter  $objWriter) : void

Write sheets.

Parameters

\PhpOffice\PhpSpreadsheet\Shared\XMLWriter $objWriter

writeRows()

writeRows(\PhpOffice\PhpSpreadsheet\Shared\XMLWriter  $objWriter, \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet  $sheet) : void

Write rows of the specified sheet.

Parameters

\PhpOffice\PhpSpreadsheet\Shared\XMLWriter $objWriter
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet

writeCells()

writeCells(\PhpOffice\PhpSpreadsheet\Shared\XMLWriter  $objWriter, \PhpOffice\PhpSpreadsheet\Worksheet\Row  $row) : void

Write cells of the specified row.

Parameters

\PhpOffice\PhpSpreadsheet\Shared\XMLWriter $objWriter
\PhpOffice\PhpSpreadsheet\Worksheet\Row $row

writeCellSpan()

writeCellSpan(\PhpOffice\PhpSpreadsheet\Shared\XMLWriter  $objWriter, int  $curColumn, int  $prevColumn) : void

Write span.

Parameters

\PhpOffice\PhpSpreadsheet\Shared\XMLWriter $objWriter
int $curColumn
int $prevColumn

writeXfStyles()

writeXfStyles(\PhpOffice\PhpSpreadsheet\Shared\XMLWriter  $writer, \PhpOffice\PhpSpreadsheet\Spreadsheet  $spreadsheet) : void

Write XF cell styles.

Parameters

\PhpOffice\PhpSpreadsheet\Shared\XMLWriter $writer
\PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet

writeCellMerge()

writeCellMerge(\PhpOffice\PhpSpreadsheet\Shared\XMLWriter  $objWriter, \PhpOffice\PhpSpreadsheet\Cell\Cell  $cell) : void

Write attributes for merged cell.

Parameters

\PhpOffice\PhpSpreadsheet\Shared\XMLWriter $objWriter
\PhpOffice\PhpSpreadsheet\Cell\Cell $cell