element->getRows(); $rowCount = count($rows); if ($rowCount > 0) { $content .= '' . PHP_EOL; foreach ($rows as $row) { // $height = $row->getHeight(); $rowStyle = $row->getStyle(); $tblHeader = $rowStyle->getTblHeader(); $content .= '' . PHP_EOL; foreach ($row->getCells() as $cell) { $writer = new Container($this->parentWriter, $cell); $cellTag = $tblHeader ? 'th' : 'td'; $content .= "<{$cellTag}>" . PHP_EOL; $content .= $writer->write(); $content .= '' . PHP_EOL; } $content .= '' . PHP_EOL; } $content .= '
' . PHP_EOL; } return $content; } }