You are here

private function PHPExcel_Writer_HTML::_createCSSStyleBorders in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/HTML.php \PHPExcel_Writer_HTML::_createCSSStyleBorders()

* Create CSS style (PHPExcel_Style_Borders) * *

Parameters

PHPExcel_Style_Borders $pStyle PHPExcel_Style_Borders: * @return array

1 call to PHPExcel_Writer_HTML::_createCSSStyleBorders()
PHPExcel_Writer_HTML::_createCSSStyle in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/HTML.php
* Create CSS style * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/HTML.php, line 951

Class

PHPExcel_Writer_HTML
PHPExcel_Writer_HTML

Code

private function _createCSSStyleBorders(PHPExcel_Style_Borders $pStyle) {

  // Construct CSS
  $css = array();

  // Create CSS
  $css['border-bottom'] = $this
    ->_createCSSStyleBorder($pStyle
    ->getBottom());
  $css['border-top'] = $this
    ->_createCSSStyleBorder($pStyle
    ->getTop());
  $css['border-left'] = $this
    ->_createCSSStyleBorder($pStyle
    ->getLeft());
  $css['border-right'] = $this
    ->_createCSSStyleBorder($pStyle
    ->getRight());

  // Return
  return $css;
}