public function PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer::getNestingLevel in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Escher/DgContainer/SpgrContainer/SpContainer.php \PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer::getNestingLevel()
* Get the nesting level of this spContainer. This is the number of spgrContainers between this spContainer and * the dgContainer. A value of 1 = immediately within first spgrContainer * Higher nesting level occurs if and only if spContainer is part of a shape group * *
Return value
int Nesting level
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ Escher/ DgContainer/ SpgrContainer/ SpContainer.php, line 383
Class
- PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer
- PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer
Code
public function getNestingLevel() {
$nestingLevel = 0;
$parent = $this
->getParent();
while ($parent instanceof PHPExcel_Shared_Escher_DgContainer_SpgrContainer) {
++$nestingLevel;
$parent = $parent
->getParent();
}
return $nestingLevel;
}