ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
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.
 getParent ()
 Get the parent Shape Group Container if any.
 addChild ($child)
 Add a child.
 getChildren ()
 Get collection of Shape Containers.
 getAllSpContainers ()
 Recursively get all spContainers within this spgrContainer.

Private Attributes

 $_parent
 $_children = array()

Detailed Description

Definition at line 35 of file SpgrContainer.php.

Member Function Documentation

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.

{
$this->_children[] = $child;
$child->setParent($this);
}
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.

{
$allSpContainers = array();
foreach ($this->_children as $child) {
$allSpContainers = array_merge($allSpContainers, $child->getAllSpContainers());
} else {
$allSpContainers[] = $child;
}
}
return $allSpContainers;
}
PHPExcel_Shared_Escher_DgContainer_SpgrContainer::getChildren ( )

Get collection of Shape Containers.

Definition at line 85 of file SpgrContainer.php.

References $_children.

{
}
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.

{
}
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.

{
$this->_parent = $parent;
}

Field Documentation

PHPExcel_Shared_Escher_DgContainer_SpgrContainer::$_children = array()
private

Definition at line 49 of file SpgrContainer.php.

Referenced by getChildren().

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: