\PHPExcel_Writer_Excel2007_Rels

PHPExcel_Writer_Excel2007_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

Summary

Methods
Properties
Constants
setParentWriter()
getParentWriter()
__construct()
writeRelationships()
writeWorkbookRelationships()
writeWorksheetRelationships()
writeDrawingRelationships()
writeHeaderFooterDrawingRelationships()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
writeRelationship()
$parentWriter
N/A

Properties

Methods

setParentWriter()

setParentWriter(\PHPExcel_Writer_IWriter  $pWriter = null) 

Set parent IWriter object

Parameters

\PHPExcel_Writer_IWriter $pWriter

Throws

\PHPExcel_Writer_Exception

getParentWriter()

getParentWriter() : \PHPExcel_Writer_IWriter

Get parent IWriter object

Throws

\PHPExcel_Writer_Exception

Returns

\PHPExcel_Writer_IWriter

__construct()

__construct(\PHPExcel_Writer_IWriter  $pWriter = null) 

Set parent IWriter object

Parameters

\PHPExcel_Writer_IWriter $pWriter

Throws

\PHPExcel_Writer_Exception

writeRelationships()

writeRelationships(\PHPExcel  $pPHPExcel = null) : string

Write relationships to XML format

Parameters

\PHPExcel $pPHPExcel

Throws

\PHPExcel_Writer_Exception

Returns

string —

XML Output

writeWorkbookRelationships()

writeWorkbookRelationships(\PHPExcel  $pPHPExcel = null) : string

Write workbook relationships to XML format

Parameters

\PHPExcel $pPHPExcel

Throws

\PHPExcel_Writer_Exception

Returns

string —

XML Output

writeWorksheetRelationships()

writeWorksheetRelationships(\PHPExcel_Worksheet  $pWorksheet = null, integer  $pWorksheetId = 1, boolean  $includeCharts = false) : string

Write worksheet relationships to XML format

Numbering is as follows: rId1 - Drawings rId_hyperlink_x - Hyperlinks

Parameters

\PHPExcel_Worksheet $pWorksheet
integer $pWorksheetId
boolean $includeCharts

Flag indicating if we should write charts

Throws

\PHPExcel_Writer_Exception

Returns

string —

XML Output

writeDrawingRelationships()

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

Write drawing relationships to XML format

Parameters

\PHPExcel_Worksheet $pWorksheet
$chartRef
boolean $includeCharts

Flag indicating if we should write charts

Throws

\PHPExcel_Writer_Exception

Returns

string —

XML Output

writeHeaderFooterDrawingRelationships()

writeHeaderFooterDrawingRelationships(\PHPExcel_Worksheet  $pWorksheet = null) : string

Write header/footer drawing relationships to XML format

Parameters

\PHPExcel_Worksheet $pWorksheet

Throws

\PHPExcel_Writer_Exception

Returns

string —

XML Output

writeRelationship()

writeRelationship(\PHPExcel_Shared_XMLWriter  $objWriter = null, integer  $pId = 1, string  $pType = '', string  $pTarget = '', string  $pTargetMode = '') 

Write Override content type

Parameters

\PHPExcel_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

Throws

\PHPExcel_Writer_Exception