ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
PHPExcel_Worksheet_HeaderFooter Class Reference
+ Collaboration diagram for PHPExcel_Worksheet_HeaderFooter:

Public Member Functions

 __construct ()
 Create a new PHPExcel_Worksheet_HeaderFooter.
 getOddHeader ()
 Get OddHeader.
 setOddHeader ($pValue)
 Set OddHeader.
 getOddFooter ()
 Get OddFooter.
 setOddFooter ($pValue)
 Set OddFooter.
 getEvenHeader ()
 Get EvenHeader.
 setEvenHeader ($pValue)
 Set EvenHeader.
 getEvenFooter ()
 Get EvenFooter.
 setEvenFooter ($pValue)
 Set EvenFooter.
 getFirstHeader ()
 Get FirstHeader.
 setFirstHeader ($pValue)
 Set FirstHeader.
 getFirstFooter ()
 Get FirstFooter.
 setFirstFooter ($pValue)
 Set FirstFooter.
 getDifferentOddEven ()
 Get DifferentOddEven.
 setDifferentOddEven ($pValue=false)
 Set DifferentOddEven.
 getDifferentFirst ()
 Get DifferentFirst.
 setDifferentFirst ($pValue=false)
 Set DifferentFirst.
 getScaleWithDocument ()
 Get ScaleWithDocument.
 setScaleWithDocument ($pValue=true)
 Set ScaleWithDocument.
 getAlignWithMargins ()
 Get AlignWithMargins.
 setAlignWithMargins ($pValue=true)
 Set AlignWithMargins.
 addImage (PHPExcel_Worksheet_HeaderFooterDrawing $image=null, $location=self::IMAGE_HEADER_LEFT)
 Add header/footer image.
 removeImage ($location=self::IMAGE_HEADER_LEFT)
 Remove header/footer image.
 setImages ($images)
 Set header/footer images.
 getImages ()
 Get header/footer images.
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy.

Data Fields

const IMAGE_HEADER_LEFT = 'LH'
const IMAGE_HEADER_CENTER = 'CH'
const IMAGE_HEADER_RIGHT = 'RH'
const IMAGE_FOOTER_LEFT = 'LF'
const IMAGE_FOOTER_CENTER = 'CF'
const IMAGE_FOOTER_RIGHT = 'RF'

Private Attributes

 $_oddHeader = ''
 $_oddFooter = ''
 $_evenHeader = ''
 $_evenFooter = ''
 $_firstHeader = ''
 $_firstFooter = ''
 $_differentOddEven = false
 $_differentFirst = false
 $_scaleWithDocument = true
 $_alignWithMargins = true
 $_headerFooterImages = array()

Detailed Description

Definition at line 96 of file HeaderFooter.php.

Constructor & Destructor Documentation

PHPExcel_Worksheet_HeaderFooter::__construct ( )

Create a new PHPExcel_Worksheet_HeaderFooter.

Definition at line 186 of file HeaderFooter.php.

{
}

Member Function Documentation

PHPExcel_Worksheet_HeaderFooter::__clone ( )

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

Definition at line 455 of file HeaderFooter.php.

{
$vars = get_object_vars($this);
foreach ($vars as $key => $value) {
if (is_object($value)) {
$this->$key = clone $value;
} else {
$this->$key = $value;
}
}
}
PHPExcel_Worksheet_HeaderFooter::addImage ( PHPExcel_Worksheet_HeaderFooterDrawing  $image = null,
  $location = self::IMAGE_HEADER_LEFT 
)

Add header/footer image.

Parameters
PHPExcel_Worksheet_HeaderFooterDrawing$image
string$location
Exceptions
Exception
Returns
PHPExcel_Worksheet_HeaderFooter

Definition at line 398 of file HeaderFooter.php.

References $location.

{
$this->_headerFooterImages[$location] = $image;
return $this;
}
PHPExcel_Worksheet_HeaderFooter::getAlignWithMargins ( )

Get AlignWithMargins.

Returns
boolean

Definition at line 375 of file HeaderFooter.php.

References $_alignWithMargins.

PHPExcel_Worksheet_HeaderFooter::getDifferentFirst ( )

Get DifferentFirst.

Returns
boolean

Definition at line 335 of file HeaderFooter.php.

References $_differentFirst.

PHPExcel_Worksheet_HeaderFooter::getDifferentOddEven ( )

Get DifferentOddEven.

Returns
boolean

Definition at line 315 of file HeaderFooter.php.

References $_differentOddEven.

PHPExcel_Worksheet_HeaderFooter::getEvenFooter ( )

Get EvenFooter.

Returns
string

Definition at line 255 of file HeaderFooter.php.

References $_evenFooter.

{
}
PHPExcel_Worksheet_HeaderFooter::getEvenHeader ( )

Get EvenHeader.

Returns
string

Definition at line 235 of file HeaderFooter.php.

References $_evenHeader.

{
}
PHPExcel_Worksheet_HeaderFooter::getFirstFooter ( )

Get FirstFooter.

Returns
string

Definition at line 295 of file HeaderFooter.php.

References $_firstFooter.

{
}
PHPExcel_Worksheet_HeaderFooter::getFirstHeader ( )

Get FirstHeader.

Returns
string

Definition at line 275 of file HeaderFooter.php.

References $_firstHeader.

{
}
PHPExcel_Worksheet_HeaderFooter::getImages ( )

Get header/footer images.

Returns
PHPExcel_Worksheet_HeaderFooterDrawing[]

Definition at line 438 of file HeaderFooter.php.

References $_headerFooterImages, IMAGE_FOOTER_CENTER, IMAGE_FOOTER_LEFT, IMAGE_FOOTER_RIGHT, IMAGE_HEADER_CENTER, IMAGE_HEADER_LEFT, and IMAGE_HEADER_RIGHT.

{
// Sort array
$images = array();
if (isset($this->_headerFooterImages[self::IMAGE_HEADER_LEFT])) $images[self::IMAGE_HEADER_LEFT] = $this->_headerFooterImages[self::IMAGE_HEADER_LEFT];
if (isset($this->_headerFooterImages[self::IMAGE_HEADER_CENTER])) $images[self::IMAGE_HEADER_CENTER] = $this->_headerFooterImages[self::IMAGE_HEADER_CENTER];
if (isset($this->_headerFooterImages[self::IMAGE_HEADER_RIGHT])) $images[self::IMAGE_HEADER_RIGHT] = $this->_headerFooterImages[self::IMAGE_HEADER_RIGHT];
if (isset($this->_headerFooterImages[self::IMAGE_FOOTER_LEFT])) $images[self::IMAGE_FOOTER_LEFT] = $this->_headerFooterImages[self::IMAGE_FOOTER_LEFT];
if (isset($this->_headerFooterImages[self::IMAGE_FOOTER_CENTER])) $images[self::IMAGE_FOOTER_CENTER] = $this->_headerFooterImages[self::IMAGE_FOOTER_CENTER];
if (isset($this->_headerFooterImages[self::IMAGE_FOOTER_RIGHT])) $images[self::IMAGE_FOOTER_RIGHT] = $this->_headerFooterImages[self::IMAGE_FOOTER_RIGHT];
$this->_headerFooterImages = $images;
}
PHPExcel_Worksheet_HeaderFooter::getOddFooter ( )

Get OddFooter.

Returns
string

Definition at line 215 of file HeaderFooter.php.

References $_oddFooter.

{
}
PHPExcel_Worksheet_HeaderFooter::getOddHeader ( )

Get OddHeader.

Returns
string

Definition at line 195 of file HeaderFooter.php.

References $_oddHeader.

{
}
PHPExcel_Worksheet_HeaderFooter::getScaleWithDocument ( )

Get ScaleWithDocument.

Returns
boolean

Definition at line 355 of file HeaderFooter.php.

References $_scaleWithDocument.

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

Remove header/footer image.

Parameters
string$location
Exceptions
Exception
Returns
PHPExcel_Worksheet_HeaderFooter

Definition at line 410 of file HeaderFooter.php.

References $location.

{
if (isset($this->_headerFooterImages[$location])) {
unset($this->_headerFooterImages[$location]);
}
return $this;
}
PHPExcel_Worksheet_HeaderFooter::setAlignWithMargins (   $pValue = true)

Set AlignWithMargins.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_HeaderFooter

Definition at line 385 of file HeaderFooter.php.

{
$this->_alignWithMargins = $pValue;
return $this;
}
PHPExcel_Worksheet_HeaderFooter::setDifferentFirst (   $pValue = false)

Set DifferentFirst.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_HeaderFooter

Definition at line 345 of file HeaderFooter.php.

{
$this->_differentFirst = $pValue;
return $this;
}
PHPExcel_Worksheet_HeaderFooter::setDifferentOddEven (   $pValue = false)

Set DifferentOddEven.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_HeaderFooter

Definition at line 325 of file HeaderFooter.php.

{
$this->_differentOddEven = $pValue;
return $this;
}
PHPExcel_Worksheet_HeaderFooter::setEvenFooter (   $pValue)

Set EvenFooter.

Parameters
string$pValue
Returns
PHPExcel_Worksheet_HeaderFooter

Definition at line 265 of file HeaderFooter.php.

{
$this->_evenFooter = $pValue;
return $this;
}
PHPExcel_Worksheet_HeaderFooter::setEvenHeader (   $pValue)

Set EvenHeader.

Parameters
string$pValue
Returns
PHPExcel_Worksheet_HeaderFooter

Definition at line 245 of file HeaderFooter.php.

{
$this->_evenHeader = $pValue;
return $this;
}
PHPExcel_Worksheet_HeaderFooter::setFirstFooter (   $pValue)

Set FirstFooter.

Parameters
string$pValue
Returns
PHPExcel_Worksheet_HeaderFooter

Definition at line 305 of file HeaderFooter.php.

{
$this->_firstFooter = $pValue;
return $this;
}
PHPExcel_Worksheet_HeaderFooter::setFirstHeader (   $pValue)

Set FirstHeader.

Parameters
string$pValue
Returns
PHPExcel_Worksheet_HeaderFooter

Definition at line 285 of file HeaderFooter.php.

{
$this->_firstHeader = $pValue;
return $this;
}
PHPExcel_Worksheet_HeaderFooter::setImages (   $images)

Set header/footer images.

Parameters
PHPExcel_Worksheet_HeaderFooterDrawing[]$images
Exceptions
Exception
Returns
PHPExcel_Worksheet_HeaderFooter

Definition at line 424 of file HeaderFooter.php.

{
if (!is_array($images)) {
throw new Exception('Invalid parameter!');
}
$this->_headerFooterImages = $images;
return $this;
}
PHPExcel_Worksheet_HeaderFooter::setOddFooter (   $pValue)

Set OddFooter.

Parameters
string$pValue
Returns
PHPExcel_Worksheet_HeaderFooter

Definition at line 225 of file HeaderFooter.php.

{
$this->_oddFooter = $pValue;
return $this;
}
PHPExcel_Worksheet_HeaderFooter::setOddHeader (   $pValue)

Set OddHeader.

Parameters
string$pValue
Returns
PHPExcel_Worksheet_HeaderFooter

Definition at line 205 of file HeaderFooter.php.

{
$this->_oddHeader = $pValue;
return $this;
}
PHPExcel_Worksheet_HeaderFooter::setScaleWithDocument (   $pValue = true)

Set ScaleWithDocument.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_HeaderFooter

Definition at line 365 of file HeaderFooter.php.

{
$this->_scaleWithDocument = $pValue;
return $this;
}

Field Documentation

PHPExcel_Worksheet_HeaderFooter::$_alignWithMargins = true
private

Definition at line 174 of file HeaderFooter.php.

Referenced by getAlignWithMargins().

PHPExcel_Worksheet_HeaderFooter::$_differentFirst = false
private

Definition at line 160 of file HeaderFooter.php.

Referenced by getDifferentFirst().

PHPExcel_Worksheet_HeaderFooter::$_differentOddEven = false
private

Definition at line 153 of file HeaderFooter.php.

Referenced by getDifferentOddEven().

PHPExcel_Worksheet_HeaderFooter::$_evenFooter = ''
private

Definition at line 132 of file HeaderFooter.php.

Referenced by getEvenFooter().

PHPExcel_Worksheet_HeaderFooter::$_evenHeader = ''
private

Definition at line 125 of file HeaderFooter.php.

Referenced by getEvenHeader().

PHPExcel_Worksheet_HeaderFooter::$_firstFooter = ''
private

Definition at line 146 of file HeaderFooter.php.

Referenced by getFirstFooter().

PHPExcel_Worksheet_HeaderFooter::$_firstHeader = ''
private

Definition at line 139 of file HeaderFooter.php.

Referenced by getFirstHeader().

PHPExcel_Worksheet_HeaderFooter::$_headerFooterImages = array()
private

Definition at line 181 of file HeaderFooter.php.

Referenced by getImages().

PHPExcel_Worksheet_HeaderFooter::$_oddFooter = ''
private

Definition at line 118 of file HeaderFooter.php.

Referenced by getOddFooter().

PHPExcel_Worksheet_HeaderFooter::$_oddHeader = ''
private

Definition at line 111 of file HeaderFooter.php.

Referenced by getOddHeader().

PHPExcel_Worksheet_HeaderFooter::$_scaleWithDocument = true
private

Definition at line 167 of file HeaderFooter.php.

Referenced by getScaleWithDocument().

const PHPExcel_Worksheet_HeaderFooter::IMAGE_FOOTER_CENTER = 'CF'

Definition at line 103 of file HeaderFooter.php.

Referenced by getImages().

const PHPExcel_Worksheet_HeaderFooter::IMAGE_FOOTER_LEFT = 'LF'

Definition at line 102 of file HeaderFooter.php.

Referenced by getImages().

const PHPExcel_Worksheet_HeaderFooter::IMAGE_FOOTER_RIGHT = 'RF'

Definition at line 104 of file HeaderFooter.php.

Referenced by getImages().

const PHPExcel_Worksheet_HeaderFooter::IMAGE_HEADER_CENTER = 'CH'

Definition at line 100 of file HeaderFooter.php.

Referenced by getImages().

const PHPExcel_Worksheet_HeaderFooter::IMAGE_HEADER_LEFT = 'LH'

Definition at line 99 of file HeaderFooter.php.

Referenced by getImages().

const PHPExcel_Worksheet_HeaderFooter::IMAGE_HEADER_RIGHT = 'RH'

Definition at line 101 of file HeaderFooter.php.

Referenced by getImages().


The documentation for this class was generated from the following file: