You are here

private function PHPExcel_Writer_HTML::_createCSSStyleBorder 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::_createCSSStyleBorder()

* Create CSS style (PHPExcel_Style_Border) * *

Parameters

PHPExcel_Style_Border $pStyle PHPExcel_Style_Border: * @return string

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

File

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

Class

PHPExcel_Writer_HTML
PHPExcel_Writer_HTML

Code

private function _createCSSStyleBorder(PHPExcel_Style_Border $pStyle) {

  // Create CSS
  //		$css = $this->_mapBorderStyle($pStyle->getBorderStyle()) . ' #' . $pStyle->getColor()->getRGB();
  //	Create CSS - add !important to non-none border styles for merged cells
  $borderStyle = $this
    ->_mapBorderStyle($pStyle
    ->getBorderStyle());
  $css = $borderStyle . ' #' . $pStyle
    ->getColor()
    ->getRGB() . ($borderStyle == 'none' ? '' : ' !important');

  // Return
  return $css;
}