You are here

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

* Takes array where of CSS properties / values and converts to CSS string * *

Parameters

array: * @return string

3 calls to PHPExcel_Writer_HTML::_assembleCSS()
PHPExcel_Writer_HTML::generateStyles in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/HTML.php
* Generate CSS styles * *
PHPExcel_Writer_HTML::_generateRow in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/HTML.php
* Generate row * *
PHPExcel_Writer_HTML::_generateTableHeader in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/HTML.php
* Generate table header * *

File

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

Class

PHPExcel_Writer_HTML
PHPExcel_Writer_HTML

Code

private function _assembleCSS($pValue = array()) {
  $pairs = array();
  foreach ($pValue as $property => $value) {
    $pairs[] = $property . ':' . $value;
  }
  $string = implode('; ', $pairs);
  return $string;
}