ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
RowDimension.php
Go to the documentation of this file.
1<?php
37{
43 private $_rowIndex;
44
52 private $_rowHeight = -1;
53
59 private $_zeroHeight = false;
60
66 private $_visible = true;
67
73 private $_outlineLevel = 0;
74
80 private $_collapsed = false;
81
87 private $_xfIndex;
88
94 public function __construct($pIndex = 0)
95 {
96 // Initialise values
97 $this->_rowIndex = $pIndex;
98
99 // set row dimension as unformatted by default
100 $this->_xfIndex = null;
101 }
102
108 public function getRowIndex() {
109 return $this->_rowIndex;
110 }
111
118 public function setRowIndex($pValue) {
119 $this->_rowIndex = $pValue;
120 return $this;
121 }
122
128 public function getRowHeight() {
129 return $this->_rowHeight;
130 }
131
138 public function setRowHeight($pValue = -1) {
139 $this->_rowHeight = $pValue;
140 return $this;
141 }
142
148 public function getZeroHeight() {
149 return $this->_zeroHeight;
150 }
151
158 public function setZeroHeight($pValue = false) {
159 $this->_zeroHeight = $pValue;
160 return $this;
161 }
162
168 public function getVisible() {
169 return $this->_visible;
170 }
171
178 public function setVisible($pValue = true) {
179 $this->_visible = $pValue;
180 return $this;
181 }
182
188 public function getOutlineLevel() {
190 }
191
201 public function setOutlineLevel($pValue) {
202 if ($pValue < 0 || $pValue > 7) {
203 throw new PHPExcel_Exception("Outline level must range between 0 and 7.");
204 }
205
206 $this->_outlineLevel = $pValue;
207 return $this;
208 }
209
215 public function getCollapsed() {
216 return $this->_collapsed;
217 }
218
225 public function setCollapsed($pValue = true) {
226 $this->_collapsed = $pValue;
227 return $this;
228 }
229
235 public function getXfIndex()
236 {
237 return $this->_xfIndex;
238 }
239
246 public function setXfIndex($pValue = 0)
247 {
248 $this->_xfIndex = $pValue;
249 return $this;
250 }
251
255 public function __clone() {
256 $vars = get_object_vars($this);
257 foreach ($vars as $key => $value) {
258 if (is_object($value)) {
259 $this->$key = clone $value;
260 } else {
261 $this->$key = $value;
262 }
263 }
264 }
265}
An exception for terminatinating execution or to throw for unit testing.
setCollapsed($pValue=true)
Set Collapsed.
setRowIndex($pValue)
Set Row Index.
getOutlineLevel()
Get Outline Level.
setOutlineLevel($pValue)
Set Outline Level.
setVisible($pValue=true)
Set Visible.
setRowHeight($pValue=-1)
Set Row Height.
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.
__construct($pIndex=0)
Create a new PHPExcel_Worksheet_RowDimension.
setZeroHeight($pValue=false)
Set ZeroHeight.
getXfIndex()
Get index to cellXf.
setXfIndex($pValue=0)
Set index to cellXf.