ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
SheetView.php
Go to the documentation of this file.
1 <?php
37 {
45  private $_zoomScale;
46 
55 
59  public function __construct()
60  {
61  // Initialise values
62  $this->_zoomScale = 100;
63  $this->_zoomScaleNormal = 100;
64  }
65 
71  public function getZoomScale() {
72  return $this->_zoomScale;
73  }
74 
84  public function setZoomScale($pValue = 100) {
85  if (($pValue >= 10 && $pValue <= 400) || is_null($pValue)) {
86  $this->_zoomScale = $pValue;
87  } else {
88  throw new Exception("Valid scale is between 10 and 400.");
89  }
90  return $this;
91  }
92 
98  public function getZoomScaleNormal() {
100  }
101 
111  public function setZoomScaleNormal($pValue = 100) {
112  if (($pValue >= 10 && $pValue <= 400) || is_null($pValue)) {
113  $this->_zoomScaleNormal = $pValue;
114  } else {
115  throw new Exception("Valid scale is between 10 and 400.");
116  }
117  return $this;
118  }
119 
123  public function __clone() {
124  $vars = get_object_vars($this);
125  foreach ($vars as $key => $value) {
126  if (is_object($value)) {
127  $this->$key = clone $value;
128  } else {
129  $this->$key = $value;
130  }
131  }
132  }
133 }