ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SpContainer.php
Go to the documentation of this file.
1 <?php
2 
4 
6 
8 {
14  private $parent;
15 
21  private $spgr = false;
22 
28  private $spType;
29 
35  private $spFlag;
36 
42  private $spId;
43 
49  private $OPT;
50 
57 
63  private $startOffsetX;
64 
70  private $startOffsetY;
71 
77  private $endCoordinates;
78 
84  private $endOffsetX;
85 
91  private $endOffsetY;
92 
98  public function setParent($parent): void
99  {
100  $this->parent = $parent;
101  }
102 
108  public function getParent()
109  {
110  return $this->parent;
111  }
112 
118  public function setSpgr($value): void
119  {
120  $this->spgr = $value;
121  }
122 
128  public function getSpgr()
129  {
130  return $this->spgr;
131  }
132 
138  public function setSpType($value): void
139  {
140  $this->spType = $value;
141  }
142 
148  public function getSpType()
149  {
150  return $this->spType;
151  }
152 
158  public function setSpFlag($value): void
159  {
160  $this->spFlag = $value;
161  }
162 
168  public function getSpFlag()
169  {
170  return $this->spFlag;
171  }
172 
178  public function setSpId($value): void
179  {
180  $this->spId = $value;
181  }
182 
188  public function getSpId()
189  {
190  return $this->spId;
191  }
192 
199  public function setOPT($property, $value): void
200  {
201  $this->OPT[$property] = $value;
202  }
203 
211  public function getOPT($property)
212  {
213  if (isset($this->OPT[$property])) {
214  return $this->OPT[$property];
215  }
216 
217  return null;
218  }
219 
225  public function getOPTCollection()
226  {
227  return $this->OPT;
228  }
229 
235  public function setStartCoordinates($value): void
236  {
237  $this->startCoordinates = $value;
238  }
239 
245  public function getStartCoordinates()
246  {
248  }
249 
255  public function setStartOffsetX($startOffsetX): void
256  {
257  $this->startOffsetX = $startOffsetX;
258  }
259 
265  public function getStartOffsetX()
266  {
267  return $this->startOffsetX;
268  }
269 
275  public function setStartOffsetY($startOffsetY): void
276  {
277  $this->startOffsetY = $startOffsetY;
278  }
279 
285  public function getStartOffsetY()
286  {
287  return $this->startOffsetY;
288  }
289 
295  public function setEndCoordinates($value): void
296  {
297  $this->endCoordinates = $value;
298  }
299 
305  public function getEndCoordinates()
306  {
307  return $this->endCoordinates;
308  }
309 
315  public function setEndOffsetX($endOffsetX): void
316  {
317  $this->endOffsetX = $endOffsetX;
318  }
319 
325  public function getEndOffsetX()
326  {
327  return $this->endOffsetX;
328  }
329 
335  public function setEndOffsetY($endOffsetY): void
336  {
337  $this->endOffsetY = $endOffsetY;
338  }
339 
345  public function getEndOffsetY()
346  {
347  return $this->endOffsetY;
348  }
349 
357  public function getNestingLevel()
358  {
359  $nestingLevel = 0;
360 
361  $parent = $this->getParent();
362  while ($parent instanceof SpgrContainer) {
363  ++$nestingLevel;
364  $parent = $parent->getParent();
365  }
366 
367  return $nestingLevel;
368  }
369 }
setEndOffsetY($endOffsetY)
Set offset in y-direction of bottom-right corner of shape measured in 1/256 of row height...
setEndOffsetX($endOffsetX)
Set offset in x-direction of bottom-right corner of shape measured in 1/1024 of column width...
setStartOffsetY($startOffsetY)
Set offset in y-direction of upper-left corner of shape measured in 1/256 of row height.
getEndCoordinates()
Get cell coordinates of bottom-right corner of shape.
getEndOffsetY()
Get offset in y-direction of bottom-right corner of shape measured in 1/256 of row height...
getStartCoordinates()
Get cell coordinates of upper-left corner of shape.
setStartCoordinates($value)
Set cell coordinates of upper-left corner of shape.
getEndOffsetX()
Get offset in x-direction of bottom-right corner of shape measured in 1/1024 of column width...
setStartOffsetX($startOffsetX)
Set offset in x-direction of upper-left corner of shape measured in 1/1024 of column width...
setOPT($property, $value)
Set an option for the Shape Group Container.
getOPT($property)
Get an option for the Shape Group Container.
getStartOffsetY()
Get offset in y-direction of upper-left corner of shape measured in 1/256 of row height.
setEndCoordinates($value)
Set cell coordinates of bottom-right corner of shape.
getStartOffsetX()
Get offset in x-direction of upper-left corner of shape measured in 1/1024 of column width...