ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
RowDimension.php
Go to the documentation of this file.
1 <?php
37 {
43  private $_rowIndex;
44 
52  private $_rowHeight;
53 
59  private $_visible;
60 
66  private $_outlineLevel = 0;
67 
73  private $_collapsed;
74 
80  public function __construct($pIndex = 0)
81  {
82  // Initialise values
83  $this->_rowIndex = $pIndex;
84  $this->_rowHeight = -1;
85  $this->_visible = true;
86  $this->_outlineLevel = 0;
87  $this->_collapsed = false;
88  }
89 
95  public function getRowIndex() {
96  return $this->_rowIndex;
97  }
98 
105  public function setRowIndex($pValue) {
106  $this->_rowIndex = $pValue;
107  return $this;
108  }
109 
115  public function getRowHeight() {
116  return $this->_rowHeight;
117  }
118 
125  public function setRowHeight($pValue = -1) {
126  $this->_rowHeight = $pValue;
127  return $this;
128  }
129 
135  public function getVisible() {
136  return $this->_visible;
137  }
138 
145  public function setVisible($pValue = true) {
146  $this->_visible = $pValue;
147  return $this;
148  }
149 
155  public function getOutlineLevel() {
156  return $this->_outlineLevel;
157  }
158 
168  public function setOutlineLevel($pValue) {
169  if ($pValue < 0 || $pValue > 7) {
170  throw new Exception("Outline level must range between 0 and 7.");
171  }
172 
173  $this->_outlineLevel = $pValue;
174  return $this;
175  }
176 
182  public function getCollapsed() {
183  return $this->_collapsed;
184  }
185 
192  public function setCollapsed($pValue = true) {
193  $this->_collapsed = $pValue;
194  return $this;
195  }
196 
200  public function __clone() {
201  $vars = get_object_vars($this);
202  foreach ($vars as $key => $value) {
203  if (is_object($value)) {
204  $this->$key = clone $value;
205  } else {
206  $this->$key = $value;
207  }
208  }
209  }
210 }