ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
PHPExcel_Shared_Escher_DgContainer_SpgrContainer Class Reference
+ Collaboration diagram for PHPExcel_Shared_Escher_DgContainer_SpgrContainer:

Public Member Functions

 setParent ($parent)
 Set parent Shape Group Container. More...
 
 getParent ()
 Get the parent Shape Group Container if any. More...
 
 addChild ($child)
 Add a child. More...
 
 getChildren ()
 Get collection of Shape Containers. More...
 
 getAllSpContainers ()
 Recursively get all spContainers within this spgrContainer. More...
 

Private Attributes

 $_parent
 
 $_children = array()
 

Detailed Description

Definition at line 35 of file SpgrContainer.php.

Member Function Documentation

◆ addChild()

PHPExcel_Shared_Escher_DgContainer_SpgrContainer::addChild (   $child)

Add a child.

This will be either spgrContainer or spContainer

Parameters
mixed$child

Definition at line 76 of file SpgrContainer.php.

77 {
78 $this->_children[] = $child;
79 $child->setParent($this);
80 }

◆ getAllSpContainers()

PHPExcel_Shared_Escher_DgContainer_SpgrContainer::getAllSpContainers ( )

Recursively get all spContainers within this spgrContainer.

Returns
PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer[]

Definition at line 95 of file SpgrContainer.php.

96 {
97 $allSpContainers = array();
98
99 foreach ($this->_children as $child) {
101 $allSpContainers = array_merge($allSpContainers, $child->getAllSpContainers());
102 } else {
103 $allSpContainers[] = $child;
104 }
105 }
106
107 return $allSpContainers;
108 }

◆ getChildren()

PHPExcel_Shared_Escher_DgContainer_SpgrContainer::getChildren ( )

Get collection of Shape Containers.

Definition at line 85 of file SpgrContainer.php.

References $_children.

◆ getParent()

PHPExcel_Shared_Escher_DgContainer_SpgrContainer::getParent ( )

Get the parent Shape Group Container if any.

Returns
PHPExcel_Shared_Escher_DgContainer_SpgrContainer|null

Definition at line 66 of file SpgrContainer.php.

References $_parent.

◆ setParent()

PHPExcel_Shared_Escher_DgContainer_SpgrContainer::setParent (   $parent)

Set parent Shape Group Container.

Parameters
PHPExcel_Shared_Escher_DgContainer_SpgrContainer$parent

Definition at line 56 of file SpgrContainer.php.

57 {
58 $this->_parent = $parent;
59 }

Field Documentation

◆ $_children

PHPExcel_Shared_Escher_DgContainer_SpgrContainer::$_children = array()
private

Definition at line 49 of file SpgrContainer.php.

Referenced by getChildren().

◆ $_parent

PHPExcel_Shared_Escher_DgContainer_SpgrContainer::$_parent
private

Definition at line 42 of file SpgrContainer.php.

Referenced by getParent().


The documentation for this class was generated from the following file: