ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
SheetView.php
Go to the documentation of this file.
1 <?php
37 {
45  private $_zoomScale = 100;
46 
54  private $_zoomScaleNormal = 100;
55 
59  public function __construct()
60  {
61  }
62 
68  public function getZoomScale() {
69  return $this->_zoomScale;
70  }
71 
81  public function setZoomScale($pValue = 100) {
82  // Microsoft Office Excel 2007 only allows setting a scale between 10 and 400 via the user interface,
83  // but it is apparently still able to handle any scale >= 1
84  if (($pValue >= 1) || is_null($pValue)) {
85  $this->_zoomScale = $pValue;
86  } else {
87  throw new Exception("Scale must be greater than or equal to 1.");
88  }
89  return $this;
90  }
91 
97  public function getZoomScaleNormal() {
99  }
100 
110  public function setZoomScaleNormal($pValue = 100) {
111  if (($pValue >= 1) || is_null($pValue)) {
112  $this->_zoomScaleNormal = $pValue;
113  } else {
114  throw new Exception("Scale must be greater than or equal to 1.");
115  }
116  return $this;
117  }
118 
122  public function __clone() {
123  $vars = get_object_vars($this);
124  foreach ($vars as $key => $value) {
125  if (is_object($value)) {
126  $this->$key = clone $value;
127  } else {
128  $this->$key = $value;
129  }
130  }
131  }
132 }