function _sheetnode_phpexcel_assembleCSS in Sheetnode 7
Same name and namespace in other branches
- 5 modules/sheetnode_phpexcel/sheetnode_phpexcel.import.inc \_sheetnode_phpexcel_assembleCSS()
- 6 modules/sheetnode_phpexcel/sheetnode_phpexcel.import.inc \_sheetnode_phpexcel_assembleCSS()
- 7.2 modules/sheetnode_phpexcel/sheetnode_phpexcel.import.inc \_sheetnode_phpexcel_assembleCSS()
LIFTED FROM PHPExcel/Classes/PHPExcel/Writer/HTML.php Takes array where of CSS properties / values and converts to CSS string
Parameters
array:
Return value
string
1 call to _sheetnode_phpexcel_assembleCSS()
- _sheetnode_phpexcel_import_cell in modules/
sheetnode_phpexcel/ sheetnode_phpexcel.import.inc
File
- modules/
sheetnode_phpexcel/ sheetnode_phpexcel.import.inc, line 404 - Import sheetnodes through PHPExcel for xls or xlsx spreadsheets.
Code
function _sheetnode_phpexcel_assembleCSS($pValue = array()) {
$pairs = array();
foreach ($pValue as $property => $value) {
$pairs[] = $property . ':' . $value;
}
$string = implode('; ', $pairs);
return $string;
}