protected function PHPExcel_Reader_HTML::_flushCell in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/HTML.php \PHPExcel_Reader_HTML::_flushCell()
1 call to PHPExcel_Reader_HTML::_flushCell()
- PHPExcel_Reader_HTML::_processDomElement in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ HTML.php
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ HTML.php, line 196
Class
- PHPExcel_Reader_HTML
- PHPExcel_Reader_HTML
Code
protected function _flushCell($sheet, $column, $row, &$cellContent) {
if (is_string($cellContent)) {
// Simple String content
if (trim($cellContent) > '') {
// Only actually write it if there's content in the string
// echo 'FLUSH CELL: ' , $column , $row , ' => ' , $cellContent , '<br />';
// Write to worksheet to be done here...
// ... we return the cell so we can mess about with styles more easily
$sheet
->setCellValue($column . $row, $cellContent, true);
$this->_dataArray[$row][$column] = $cellContent;
}
}
else {
// We have a Rich Text run
// TODO
$this->_dataArray[$row][$column] = 'RICH TEXT: ' . $cellContent;
}
$cellContent = (string) '';
}