class Rels extends WriterPart (View source)

Methods

getParentWriter()

Get parent Xlsx object.

__construct(Xlsx $pWriter)

Set parent Xlsx object.

string
writeRelationships(Spreadsheet $spreadsheet)

Write relationships to XML format.

string
writeWorkbookRelationships(Spreadsheet $spreadsheet)

Write workbook relationships to XML format.

string
writeWorksheetRelationships(Worksheet $pWorksheet, int $pWorksheetId = 1, bool $includeCharts = false)

Write worksheet relationships to XML format.

string
writeDrawingRelationships(Worksheet $pWorksheet, int $chartRef, bool $includeCharts = false)

Write drawing relationships to XML format.

string
writeHeaderFooterDrawingRelationships(Worksheet $pWorksheet)

Write header/footer drawing relationships to XML format.

Details

Xlsx getParentWriter()

Get parent Xlsx object.

Return Value

Xlsx

__construct(Xlsx $pWriter)

Set parent Xlsx object.

Parameters

Xlsx $pWriter

string writeRelationships(Spreadsheet $spreadsheet)

Write relationships to XML format.

Parameters

Spreadsheet $spreadsheet

Return Value

string XML Output

Exceptions

Exception

string writeWorkbookRelationships(Spreadsheet $spreadsheet)

Write workbook relationships to XML format.

Parameters

Spreadsheet $spreadsheet

Return Value

string XML Output

Exceptions

Exception

string writeWorksheetRelationships(Worksheet $pWorksheet, int $pWorksheetId = 1, bool $includeCharts = false)

Write worksheet relationships to XML format.

Numbering is as follows: rId1 - Drawings rId_hyperlink_x - Hyperlinks

Parameters

Worksheet $pWorksheet
int $pWorksheetId
bool $includeCharts Flag indicating if we should write charts

Return Value

string XML Output

Exceptions

Exception

string writeDrawingRelationships(Worksheet $pWorksheet, int $chartRef, bool $includeCharts = false)

Write drawing relationships to XML format.

Parameters

Worksheet $pWorksheet
int $chartRef &$chartRef Chart ID
bool $includeCharts Flag indicating if we should write charts

Return Value

string XML Output

Exceptions

Exception

string writeHeaderFooterDrawingRelationships(Worksheet $pWorksheet)

Write header/footer drawing relationships to XML format.

Parameters

Worksheet $pWorksheet

Return Value

string XML Output

Exceptions

Exception