You are here

public function PHPExcel_Shared_Escher_DgContainer_SpgrContainer::getAllSpContainers in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Escher/DgContainer/SpgrContainer.php \PHPExcel_Shared_Escher_DgContainer_SpgrContainer::getAllSpContainers()

* Recursively get all spContainers within this spgrContainer * *

Return value

PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer[]

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Escher/DgContainer/SpgrContainer.php, line 95

Class

PHPExcel_Shared_Escher_DgContainer_SpgrContainer
PHPExcel_Shared_Escher_DgContainer_SpgrContainer

Code

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