/** * Write cell * * @return string */ private function writeCell(CellElement $cell) { $content = '\\intbl' . PHP_EOL; // Write content $writer = new Container($this->parentWriter, $cell); $content .= $writer->write(); $content .= '\\cell' . PHP_EOL; return $content; }
/** * Write sections * * @return string */ private function writeSections() { $content = ''; $sections = $this->getParentWriter()->getPhpWord()->getSections(); foreach ($sections as $section) { $writer = new Container($this->getParentWriter(), $section); $content .= $writer->write(); } return $content; }
/** * Write sections * * @return string */ private function writeSections() { $content = ''; $sections = $this->getParentWriter()->getPhpWord()->getSections(); foreach ($sections as $section) { $styleWriter = new SectionStyleWriter($section->getStyle()); $styleWriter->setParentWriter($this->getParentWriter()); $content .= $styleWriter->write(); $elementWriter = new Container($this->getParentWriter(), $section); $content .= $elementWriter->write(); $content .= '\\sect' . PHP_EOL; } return $content; }