ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
SpgrContainer.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
PhpOffice\PhpSpreadsheet\Shared\Escher\DgContainer
;
4
5
class
SpgrContainer
6
{
12
private
$parent
;
13
19
private
$children
= [];
20
26
public
function
setParent
(
$parent
): void
27
{
28
$this->
parent
=
$parent
;
29
}
30
36
public
function
getParent
()
37
{
38
return
$this->parent
;
39
}
40
46
public
function
addChild
($child): void
47
{
48
$this->children[] = $child;
49
$child->setParent($this);
50
}
51
55
public
function
getChildren
()
56
{
57
return
$this->children
;
58
}
59
65
public
function
getAllSpContainers
()
66
{
67
$allSpContainers = [];
68
69
foreach
($this->children as $child) {
70
if
($child instanceof
self
) {
71
$allSpContainers = array_merge($allSpContainers, $child->getAllSpContainers());
72
}
else
{
73
$allSpContainers[] = $child;
74
}
75
}
76
77
return
$allSpContainers;
78
}
79
}
PhpOffice\PhpSpreadsheet\Shared\Escher\DgContainer\SpgrContainer\getParent
getParent()
Get the parent Shape Group Container if any.
Definition:
SpgrContainer.php:36
PhpOffice\PhpSpreadsheet\Shared\Escher\DgContainer\SpgrContainer
Definition:
SpgrContainer.php:5
PhpOffice\PhpSpreadsheet\Shared\Escher\DgContainer\SpgrContainer\getChildren
getChildren()
Get collection of Shape Containers.
Definition:
SpgrContainer.php:55
parent
PhpOffice\PhpSpreadsheet\Shared\Escher\DgContainer\SpgrContainer\$children
$children
Definition:
SpgrContainer.php:19
PhpOffice\PhpSpreadsheet\Shared\Escher\DgContainer\SpgrContainer\$parent
$parent
Definition:
SpgrContainer.php:12
PhpOffice\PhpSpreadsheet\Shared\Escher\DgContainer
PhpOffice\PhpSpreadsheet\Shared\Escher\DgContainer\SpgrContainer\getAllSpContainers
getAllSpContainers()
Recursively get all spContainers within this spgrContainer.
Definition:
SpgrContainer.php:65
PhpOffice\PhpSpreadsheet\Shared\Escher\DgContainer\SpgrContainer\addChild
addChild($child)
Add a child.
Definition:
SpgrContainer.php:46
PhpOffice\PhpSpreadsheet\Shared\Escher\DgContainer\SpgrContainer\setParent
setParent($parent)
Set parent Shape Group Container.
Definition:
SpgrContainer.php:26
php
libs
composer
vendor
phpoffice
phpspreadsheet
src
PhpSpreadsheet
Shared
Escher
DgContainer
SpgrContainer.php
Generated on Thu Jan 16 2025 19:01:47 for ILIAS by
1.8.13 (using
Doxyfile
)