ILIAS  eassessment Revision 61809
 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 = 100
 $_zoomScaleNormal = 100

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.

{
}

Member Function Documentation

PHPExcel_Worksheet_SheetView::__clone ( )

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

Definition at line 122 of file SheetView.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_SheetView::getZoomScale ( )

Get ZoomScale.

Returns
int

Definition at line 68 of file SheetView.php.

References $_zoomScale.

{
}
PHPExcel_Worksheet_SheetView::getZoomScaleNormal ( )

Get ZoomScaleNormal.

Returns
int

Definition at line 97 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 81 of file SheetView.php.

{
// Microsoft Office Excel 2007 only allows setting a scale between 10 and 400 via the user interface,
// but it is apparently still able to handle any scale >= 1
if (($pValue >= 1) || is_null($pValue)) {
$this->_zoomScale = $pValue;
} else {
throw new Exception("Scale must be greater than or equal to 1.");
}
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 110 of file SheetView.php.

{
if (($pValue >= 1) || is_null($pValue)) {
$this->_zoomScaleNormal = $pValue;
} else {
throw new Exception("Scale must be greater than or equal to 1.");
}
return $this;
}

Field Documentation

PHPExcel_Worksheet_SheetView::$_zoomScale = 100
private

Definition at line 45 of file SheetView.php.

Referenced by getZoomScale().

PHPExcel_Worksheet_SheetView::$_zoomScaleNormal = 100
private

Definition at line 54 of file SheetView.php.

Referenced by getZoomScaleNormal().


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