\PHPExcel_Worksheet_HeaderFooter

PHPExcel_Worksheet_HeaderFooter

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,241 write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Summary

Methods
Properties
Constants
__construct()
getOddHeader()
setOddHeader()
getOddFooter()
setOddFooter()
getEvenHeader()
setEvenHeader()
getEvenFooter()
setEvenFooter()
getFirstHeader()
setFirstHeader()
getFirstFooter()
setFirstFooter()
getDifferentOddEven()
setDifferentOddEven()
getDifferentFirst()
setDifferentFirst()
getScaleWithDocument()
setScaleWithDocument()
getAlignWithMargins()
setAlignWithMargins()
addImage()
removeImage()
setImages()
getImages()
__clone()
No public properties found
IMAGE_HEADER_LEFT
IMAGE_HEADER_CENTER
IMAGE_HEADER_RIGHT
IMAGE_FOOTER_LEFT
IMAGE_FOOTER_CENTER
IMAGE_FOOTER_RIGHT
No protected methods found
No protected properties found
N/A
No private methods found
$oddHeader
$oddFooter
$evenHeader
$evenFooter
$firstHeader
$firstFooter
$differentOddEven
$differentFirst
$scaleWithDocument
$alignWithMargins
$headerFooterImages
N/A

Constants

IMAGE_HEADER_LEFT

IMAGE_HEADER_LEFT = 'LH'

IMAGE_HEADER_CENTER

IMAGE_HEADER_CENTER = 'CH'

IMAGE_HEADER_RIGHT

IMAGE_HEADER_RIGHT = 'RH'

Properties

$oddHeader

$oddHeader : string

OddHeader

Type

string

$oddFooter

$oddFooter : string

OddFooter

Type

string

$evenHeader

$evenHeader : string

EvenHeader

Type

string

$evenFooter

$evenFooter : string

EvenFooter

Type

string

$firstHeader

$firstHeader : string

FirstHeader

Type

string

$firstFooter

$firstFooter : string

FirstFooter

Type

string

$differentOddEven

$differentOddEven : boolean

Different header for Odd/Even, defaults to false

Type

boolean

$differentFirst

$differentFirst : boolean

Different header for first page, defaults to false

Type

boolean

$scaleWithDocument

$scaleWithDocument : boolean

Scale with document, defaults to true

Type

boolean

$alignWithMargins

$alignWithMargins : boolean

Align with margins, defaults to true

Type

boolean

Methods

__construct()

__construct() 

Create a new PHPExcel_Worksheet_HeaderFooter

getOddHeader()

getOddHeader() : string

Get OddHeader

Returns

string

setOddHeader()

setOddHeader(string  $pValue) : \PHPExcel_Worksheet_HeaderFooter

Set OddHeader

Parameters

string $pValue

Returns

\PHPExcel_Worksheet_HeaderFooter

getOddFooter()

getOddFooter() : string

Get OddFooter

Returns

string

setOddFooter()

setOddFooter(string  $pValue) : \PHPExcel_Worksheet_HeaderFooter

Set OddFooter

Parameters

string $pValue

Returns

\PHPExcel_Worksheet_HeaderFooter

getEvenHeader()

getEvenHeader() : string

Get EvenHeader

Returns

string

setEvenHeader()

setEvenHeader(string  $pValue) : \PHPExcel_Worksheet_HeaderFooter

Set EvenHeader

Parameters

string $pValue

Returns

\PHPExcel_Worksheet_HeaderFooter

getEvenFooter()

getEvenFooter() : string

Get EvenFooter

Returns

string

setEvenFooter()

setEvenFooter(string  $pValue) : \PHPExcel_Worksheet_HeaderFooter

Set EvenFooter

Parameters

string $pValue

Returns

\PHPExcel_Worksheet_HeaderFooter

getFirstHeader()

getFirstHeader() : string

Get FirstHeader

Returns

string

setFirstHeader()

setFirstHeader(string  $pValue) : \PHPExcel_Worksheet_HeaderFooter

Set FirstHeader

Parameters

string $pValue

Returns

\PHPExcel_Worksheet_HeaderFooter

getFirstFooter()

getFirstFooter() : string

Get FirstFooter

Returns

string

setFirstFooter()

setFirstFooter(string  $pValue) : \PHPExcel_Worksheet_HeaderFooter

Set FirstFooter

Parameters

string $pValue

Returns

\PHPExcel_Worksheet_HeaderFooter

getDifferentOddEven()

getDifferentOddEven() : boolean

Get DifferentOddEven

Returns

boolean

setDifferentOddEven()

setDifferentOddEven(boolean  $pValue = false) : \PHPExcel_Worksheet_HeaderFooter

Set DifferentOddEven

Parameters

boolean $pValue

Returns

\PHPExcel_Worksheet_HeaderFooter

getDifferentFirst()

getDifferentFirst() : boolean

Get DifferentFirst

Returns

boolean

setDifferentFirst()

setDifferentFirst(boolean  $pValue = false) : \PHPExcel_Worksheet_HeaderFooter

Set DifferentFirst

Parameters

boolean $pValue

Returns

\PHPExcel_Worksheet_HeaderFooter

getScaleWithDocument()

getScaleWithDocument() : boolean

Get ScaleWithDocument

Returns

boolean

setScaleWithDocument()

setScaleWithDocument(boolean  $pValue = true) : \PHPExcel_Worksheet_HeaderFooter

Set ScaleWithDocument

Parameters

boolean $pValue

Returns

\PHPExcel_Worksheet_HeaderFooter

getAlignWithMargins()

getAlignWithMargins() : boolean

Get AlignWithMargins

Returns

boolean

setAlignWithMargins()

setAlignWithMargins(boolean  $pValue = true) : \PHPExcel_Worksheet_HeaderFooter

Set AlignWithMargins

Parameters

boolean $pValue

Returns

\PHPExcel_Worksheet_HeaderFooter

removeImage()

removeImage(string  $location = self::IMAGE_HEADER_LEFT) : \PHPExcel_Worksheet_HeaderFooter

Remove header/footer image

Parameters

string $location

Throws

\PHPExcel_Exception

Returns

\PHPExcel_Worksheet_HeaderFooter

__clone()

__clone() 

Implement PHP __clone to create a deep clone, not just a shallow copy.