Properties

Methods

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, integer  $pWorksheetId = 1, boolean  $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
integer $pWorksheetId
boolean $includeCharts

Flag indicating if we should write charts

Returns

string —

XML Output

writeDrawingRelationships()

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

Write drawing relationships to XML format.

Parameters

\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet
$chartRef
boolean $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,   $relationship,   $type) 

Parameters

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

writeRelationship()

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

Write Override content type.

Parameters

\PhpOffice\PhpSpreadsheet\Shared\XMLWriter $objWriter

XML Writer

integer $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) : integer

Parameters

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

Returns

integer