You are here

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

* Create CSS style * *

Parameters

PHPExcel_Style $pStyle PHPExcel_Style: * @return array

1 call to PHPExcel_Writer_HTML::_createCSSStyle()
PHPExcel_Writer_HTML::buildCSS in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/HTML.php
* Build CSS styles * *

File

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

Class

PHPExcel_Writer_HTML
PHPExcel_Writer_HTML

Code

private function _createCSSStyle(PHPExcel_Style $pStyle) {

  // Construct CSS
  $css = '';

  // Create CSS
  $css = array_merge($this
    ->_createCSSStyleAlignment($pStyle
    ->getAlignment()), $this
    ->_createCSSStyleBorders($pStyle
    ->getBorders()), $this
    ->_createCSSStyleFont($pStyle
    ->getFont()), $this
    ->_createCSSStyleFill($pStyle
    ->getFill()));

  // Return
  return $css;
}