You are here

private function PHPExcel_Writer_HTML::_createCSSStyleFill in Loft Data Grids 6.2

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

* Create CSS style (PHPExcel_Style_Fill) * *

Parameters

PHPExcel_Style_Fill $pStyle PHPExcel_Style_Fill: * @return array

1 call to PHPExcel_Writer_HTML::_createCSSStyleFill()
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 988

Class

PHPExcel_Writer_HTML
PHPExcel_Writer_HTML

Code

private function _createCSSStyleFill(PHPExcel_Style_Fill $pStyle) {

  // Construct HTML
  $css = array();

  // Create CSS
  $value = $pStyle
    ->getFillType() == PHPExcel_Style_Fill::FILL_NONE ? 'white' : '#' . $pStyle
    ->getStartColor()
    ->getRGB();
  $css['background-color'] = $value;

  // Return
  return $css;
}