private function PHPExcel_Writer_OpenDocument_Content::_writeCellSpan in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/OpenDocument/Content.php \PHPExcel_Writer_OpenDocument_Content::_writeCellSpan()
Write span
Parameters
PHPExcel_Shared_XMLWriter $objWriter:
integer $curColumn:
integer $prevColumn:
1 call to PHPExcel_Writer_OpenDocument_Content::_writeCellSpan()
- PHPExcel_Writer_OpenDocument_Content::_writeCells in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ OpenDocument/ Content.php - Write cells of the specified row
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ OpenDocument/ Content.php, line 261
Class
- PHPExcel_Writer_OpenDocument_Content
- PHPExcel_Writer_OpenDocument_Content
Code
private function _writeCellSpan(PHPExcel_Shared_XMLWriter $objWriter, $curColumn, $prevColumn) {
$diff = $curColumn - $prevColumn - 1;
if (1 === $diff) {
$objWriter
->writeElement('table:table-cell');
}
elseif ($diff > 1) {
$objWriter
->startElement('table:table-cell');
$objWriter
->writeAttribute('table:number-columns-repeated', $diff);
$objWriter
->endElement();
}
}