class PHPExcel_Writer_Excel2007_Rels extends PHPExcel_Writer_Excel2007_WriterPart

PHPExcelWriterExcel2007_Rels

Copyright (c) 2006 - 2015 PHPExcel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Methods

setParentWriter(PHPExcel_Writer_IWriter $pWriter = null)

Set parent IWriter object

__construct(PHPExcel_Writer_IWriter $pWriter = null)

Set parent IWriter object

string
writeRelationships(PHPExcel $pPHPExcel = null)

Write relationships to XML format

string
writeWorkbookRelationships(PHPExcel $pPHPExcel = null)

Write workbook relationships to XML format

string
writeWorksheetRelationships(PHPExcel_Worksheet $pWorksheet = null, int $pWorksheetId = 1, boolean $includeCharts = false)

Write worksheet relationships to XML format

string
writeDrawingRelationships(PHPExcel_Worksheet $pWorksheet = null, int $chartRef, boolean $includeCharts = false)

Write drawing relationships to XML format

string
writeHeaderFooterDrawingRelationships(PHPExcel_Worksheet $pWorksheet = null)

Write header/footer drawing relationships to XML format

Details

setParentWriter(PHPExcel_Writer_IWriter $pWriter = null)

Set parent IWriter object

Parameters

PHPExcel_Writer_IWriter $pWriter

Exceptions

PHPExcel_Writer_Exception

PHPExcel_Writer_IWriter getParentWriter()

Get parent IWriter object

__construct(PHPExcel_Writer_IWriter $pWriter = null)

Set parent IWriter object

Parameters

PHPExcel_Writer_IWriter $pWriter

Exceptions

PHPExcel_Writer_Exception

at line 46
string writeRelationships(PHPExcel $pPHPExcel = null)

Write relationships to XML format

Parameters

PHPExcel $pPHPExcel

Return Value

string XML Output

Exceptions

PHPExcel_Writer_Exception

at line 120
string writeWorkbookRelationships(PHPExcel $pPHPExcel = null)

Write workbook relationships to XML format

Parameters

PHPExcel $pPHPExcel

Return Value

string XML Output

Exceptions

PHPExcel_Writer_Exception

at line 201
string writeWorksheetRelationships(PHPExcel_Worksheet $pWorksheet = null, int $pWorksheetId = 1, boolean $includeCharts = false)

Write worksheet relationships to XML format

Numbering is as follows: rId1 - Drawings rIdhyperlinkx - Hyperlinks

Parameters

PHPExcel_Worksheet $pWorksheet
int $pWorksheetId
boolean $includeCharts Flag indicating if we should write charts

Return Value

string XML Output

Exceptions

PHPExcel_Writer_Exception

at line 309
string writeDrawingRelationships(PHPExcel_Worksheet $pWorksheet = null, int $chartRef, boolean $includeCharts = false)

Write drawing relationships to XML format

Parameters

PHPExcel_Worksheet $pWorksheet
int $chartRef &$chartRef Chart ID
boolean $includeCharts Flag indicating if we should write charts

Return Value

string XML Output

Exceptions

PHPExcel_Writer_Exception

at line 372
string writeHeaderFooterDrawingRelationships(PHPExcel_Worksheet $pWorksheet = null)

Write header/footer drawing relationships to XML format

Parameters

PHPExcel_Worksheet $pWorksheet

Return Value

string XML Output

Exceptions

PHPExcel_Writer_Exception