ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
PHPExcel_Worksheet_SheetView Class Reference
+ Collaboration diagram for PHPExcel_Worksheet_SheetView:

Public Member Functions

 __construct ()
 Create a new PHPExcel_Worksheet_SheetView.
 getZoomScale ()
 Get ZoomScale.
 setZoomScale ($pValue=100)
 Set ZoomScale.
 getZoomScaleNormal ()
 Get ZoomScaleNormal.
 setZoomScaleNormal ($pValue=100)
 Set ZoomScale.
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy.

Private Attributes

 $_zoomScale
 $_zoomScaleNormal

Detailed Description

Definition at line 36 of file SheetView.php.

Constructor & Destructor Documentation

PHPExcel_Worksheet_SheetView::__construct ( )

Create a new PHPExcel_Worksheet_SheetView.

Definition at line 59 of file SheetView.php.

{
// Initialise values
$this->_zoomScale = 100;
$this->_zoomScaleNormal = 100;
}

Member Function Documentation

PHPExcel_Worksheet_SheetView::__clone ( )

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

Definition at line 123 of file SheetView.php.

References $key.

{
$vars = get_object_vars($this);
foreach ($vars as $key => $value) {
if (is_object($value)) {
$this->$key = clone $value;
} else {
$this->$key = $value;
}
}
}
PHPExcel_Worksheet_SheetView::getZoomScale ( )

Get ZoomScale.

Returns
int

Definition at line 71 of file SheetView.php.

References $_zoomScale.

{
}
PHPExcel_Worksheet_SheetView::getZoomScaleNormal ( )

Get ZoomScaleNormal.

Returns
int

Definition at line 98 of file SheetView.php.

References $_zoomScaleNormal.

PHPExcel_Worksheet_SheetView::setZoomScale (   $pValue = 100)

Set ZoomScale.

Valid values range from 10 to 400.

Parameters
int$pValue
Exceptions
Exception
Returns
PHPExcel_Worksheet_SheetView

Definition at line 84 of file SheetView.php.

{
if (($pValue >= 10 && $pValue <= 400) || is_null($pValue)) {
$this->_zoomScale = $pValue;
} else {
throw new Exception("Valid scale is between 10 and 400.");
}
return $this;
}
PHPExcel_Worksheet_SheetView::setZoomScaleNormal (   $pValue = 100)

Set ZoomScale.

Valid values range from 10 to 400.

Parameters
int$pValue
Exceptions
Exception
Returns
PHPExcel_Worksheet_SheetView

Definition at line 111 of file SheetView.php.

{
if (($pValue >= 10 && $pValue <= 400) || is_null($pValue)) {
$this->_zoomScaleNormal = $pValue;
} else {
throw new Exception("Valid scale is between 10 and 400.");
}
return $this;
}

Field Documentation

PHPExcel_Worksheet_SheetView::$_zoomScale
private

Definition at line 45 of file SheetView.php.

Referenced by getZoomScale().

PHPExcel_Worksheet_SheetView::$_zoomScaleNormal
private

Definition at line 54 of file SheetView.php.

Referenced by getZoomScaleNormal().


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