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 —

writeRelationships()

writeRelationships(\PhpOffice\PhpSpreadsheet\Spreadsheet  $spreadsheet) : string

Write relationships to XML format.

Parameters

\PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet

Returns

string —

XML Output

writeWorkbookRelationships()

writeWorkbookRelationships(\PhpOffice\PhpSpreadsheet\Spreadsheet  $spreadsheet) : string

Write workbook relationships to XML format.

Parameters

\PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet

Returns

string —

XML Output

writeWorksheetRelationships()

writeWorksheetRelationships(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet  $pWorksheet, int  $pWorksheetId = 1, bool  $includeCharts = false) : string

Write worksheet relationships to XML format.

Numbering is as follows: rId1 - Drawings rId_hyperlink_x - Hyperlinks

Parameters

\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet
int $pWorksheetId
bool $includeCharts

Flag indicating if we should write charts

Returns

string —

XML Output

writeDrawingRelationships()

writeDrawingRelationships(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet  $pWorksheet, int  $chartRef, bool  $includeCharts = false) : string

Write drawing relationships to XML format.

Parameters

\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet
int $chartRef

Chart ID

bool $includeCharts

Flag indicating if we should write charts

Returns

string —

XML Output

writeHeaderFooterDrawingRelationships()

writeHeaderFooterDrawingRelationships(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet  $pWorksheet) : string

Write header/footer drawing relationships to XML format.

Parameters

\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet

Returns

string —

XML Output

writeUnparsedRelationship()

writeUnparsedRelationship(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet  $pWorksheet, \PhpOffice\PhpSpreadsheet\Shared\XMLWriter  $objWriter, mixed  $relationship, mixed  $type) : void

Parameters

\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet
\PhpOffice\PhpSpreadsheet\Shared\XMLWriter $objWriter
mixed $relationship
mixed $type

writeRelationship()

writeRelationship(\PhpOffice\PhpSpreadsheet\Shared\XMLWriter  $objWriter, int  $pId, string  $pType, string  $pTarget, string  $pTargetMode = '') : void

Write Override content type.

Parameters

\PhpOffice\PhpSpreadsheet\Shared\XMLWriter $objWriter

XML Writer

int $pId

Relationship ID. rId will be prepended!

string $pType

Relationship type

string $pTarget

Relationship target

string $pTargetMode

Relationship target mode

writeDrawingHyperLink()

writeDrawingHyperLink( $objWriter, \PhpOffice\PhpSpreadsheet\Worksheet\Drawing  $drawing,  $i) : int

Parameters

$objWriter
\PhpOffice\PhpSpreadsheet\Worksheet\Drawing $drawing
$i

Returns

int —