public function PHPExcel_Style_Border::getSharedComponent in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Border.php \PHPExcel_Style_Border::getSharedComponent()
* Get the shared style component for the currently active cell in currently active sheet. * Only used for style supervisor * *
Return value
PHPExcel_Style_Border * @throws PHPExcel_Exception
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ Border.php, line 120
Class
- PHPExcel_Style_Border
- PHPExcel_Style_Border
Code
public function getSharedComponent() {
switch ($this->_parentPropertyName) {
case '_allBorders':
case '_horizontal':
case '_inside':
case '_outline':
case '_vertical':
throw new PHPExcel_Exception('Cannot get shared component for a pseudo-border.');
break;
case '_bottom':
return $this->_parent
->getSharedComponent()
->getBottom();
break;
case '_diagonal':
return $this->_parent
->getSharedComponent()
->getDiagonal();
break;
case '_left':
return $this->_parent
->getSharedComponent()
->getLeft();
break;
case '_right':
return $this->_parent
->getSharedComponent()
->getRight();
break;
case '_top':
return $this->_parent
->getSharedComponent()
->getTop();
break;
}
}