ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
SpContainer.php
Go to the documentation of this file.
1<?php
36{
42 private $_parent;
43
49 private $_spgr = false;
50
56 private $_spType;
57
63 private $_spFlag;
64
70 private $_spId;
71
77 private $_OPT;
78
85
92
99
106
113
120
126 public function setParent($parent)
127 {
128 $this->_parent = $parent;
129 }
130
136 public function getParent()
137 {
138 return $this->_parent;
139 }
140
146 public function setSpgr($value = false)
147 {
148 $this->_spgr = $value;
149 }
150
156 public function getSpgr()
157 {
158 return $this->_spgr;
159 }
160
166 public function setSpType($value)
167 {
168 $this->_spType = $value;
169 }
170
176 public function getSpType()
177 {
178 return $this->_spType;
179 }
180
186 public function setSpFlag($value)
187 {
188 $this->_spFlag = $value;
189 }
190
196 public function getSpFlag()
197 {
198 return $this->_spFlag;
199 }
200
206 public function setSpId($value)
207 {
208 $this->_spId = $value;
209 }
210
216 public function getSpId()
217 {
218 return $this->_spId;
219 }
220
227 public function setOPT($property, $value)
228 {
229 $this->_OPT[$property] = $value;
230 }
231
238 public function getOPT($property)
239 {
240 if (isset($this->_OPT[$property])) {
241 return $this->_OPT[$property];
242 }
243 return null;
244 }
245
251 public function getOPTCollection()
252 {
253 return $this->_OPT;
254 }
255
261 public function setStartCoordinates($value = 'A1')
262 {
263 $this->_startCoordinates = $value;
264 }
265
271 public function getStartCoordinates()
272 {
274 }
275
281 public function setStartOffsetX($startOffsetX = 0)
282 {
283 $this->_startOffsetX = $startOffsetX;
284 }
285
291 public function getStartOffsetX()
292 {
294 }
295
301 public function setStartOffsetY($startOffsetY = 0)
302 {
303 $this->_startOffsetY = $startOffsetY;
304 }
305
311 public function getStartOffsetY()
312 {
314 }
315
321 public function setEndCoordinates($value = 'A1')
322 {
323 $this->_endCoordinates = $value;
324 }
325
331 public function getEndCoordinates()
332 {
334 }
335
341 public function setEndOffsetX($endOffsetX = 0)
342 {
343 $this->_endOffsetX = $endOffsetX;
344 }
345
351 public function getEndOffsetX()
352 {
353 return $this->_endOffsetX;
354 }
355
361 public function setEndOffsetY($endOffsetY = 0)
362 {
363 $this->_endOffsetY = $endOffsetY;
364 }
365
371 public function getEndOffsetY()
372 {
373 return $this->_endOffsetY;
374 }
375
383 public function getNestingLevel()
384 {
385 $nestingLevel = 0;
386
387 $parent = $this->getParent();
388 while ($parent instanceof PHPExcel_Shared_Escher_DgContainer_SpgrContainer) {
389 ++$nestingLevel;
390 $parent = $parent->getParent();
391 }
392
393 return $nestingLevel;
394 }
395}
An exception for terminatinating execution or to throw for unit testing.
getStartOffsetX()
Get offset in x-direction of upper-left corner of shape measured in 1/1024 of column width.
getEndOffsetY()
Get offset in y-direction of bottom-right corner of shape measured in 1/256 of row height.
setStartCoordinates($value='A1')
Set cell coordinates of upper-left corner of shape.
setSpgr($value=false)
Set whether this is a group shape.
setOPT($property, $value)
Set an option for the Shape Group Container.
getNestingLevel()
Get the nesting level of this spContainer.
getOPT($property)
Get an option for the Shape Group Container.
setParent($parent)
Set parent Shape Group Container.
setEndOffsetY($endOffsetY=0)
Set offset in y-direction of bottom-right corner of shape measured in 1/256 of row height.
setEndOffsetX($endOffsetX=0)
Set offset in x-direction of bottom-right corner of shape measured in 1/1024 of column width.
getEndCoordinates()
Get cell coordinates of bottom-right corner of shape.
setStartOffsetY($startOffsetY=0)
Set offset in y-direction of upper-left corner of shape measured in 1/256 of row height.
getStartCoordinates()
Get cell coordinates of upper-left corner of shape.
getStartOffsetY()
Get offset in y-direction of upper-left corner of shape measured in 1/256 of row height.
setStartOffsetX($startOffsetX=0)
Set offset in x-direction of upper-left corner of shape measured in 1/1024 of column width.
getEndOffsetX()
Get offset in x-direction of bottom-right corner of shape measured in 1/1024 of column width.
setEndCoordinates($value='A1')
Set cell coordinates of bottom-right corner of shape.
getParent()
Get the parent Shape Group Container.