86 if (($pValue >= 1) || $pValue ===
null) {
87 $this->zoomScale = $pValue;
89 throw new PhpSpreadsheetException(
'Scale must be greater than or equal to 1.');
115 if (($pValue >= 1) || $pValue ===
null) {
116 $this->zoomScaleNormal = $pValue;
118 throw new PhpSpreadsheetException(
'Scale must be greater than or equal to 1.');
131 $this->showZeros = $pValue;
167 if ($pValue ===
null) {
170 if (in_array($pValue, self::$sheetViewTypes)) {
171 $this->sheetviewType = $pValue;
173 throw new PhpSpreadsheetException(
'Invalid sheetview layout type.');
184 $vars = get_object_vars($this);
185 foreach ($vars as
$key => $value) {
186 if (is_object($value)) {
187 $this->
$key = clone $value;
189 $this->
$key = $value;
An exception for terminatinating execution or to throw for unit testing.
setShowZeros($pValue)
Set ShowZeroes setting.
__construct()
Create a new SheetView.
const SHEETVIEW_PAGE_BREAK_PREVIEW
setView($pValue)
Set View.
setZoomScale($pValue)
Set ZoomScale.
setZoomScaleNormal($pValue)
Set ZoomScale.
const SHEETVIEW_PAGE_LAYOUT
getZoomScale()
Get ZoomScale.
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.
getZoomScaleNormal()
Get ZoomScaleNormal.