Box\Spout\Writer\ODS\Helper\StyleHelper::getAutomaticStylesSectionContent PHP Méthode

getAutomaticStylesSectionContent() protected méthode

Returns the content of the "" section, inside "styles.xml" file.
protected getAutomaticStylesSectionContent ( integer $numWorksheets ) : string
$numWorksheets integer Number of worksheets created
Résultat string
    protected function getAutomaticStylesSectionContent($numWorksheets)
    {
        $content = '<office:automatic-styles>';
        for ($i = 1; $i <= $numWorksheets; $i++) {
            $content .= <<<EOD
<style:page-layout style:name="pm{$i}">
    <style:page-layout-properties style:first-page-number="continue" style:print="objects charts drawings" style:table-centering="none"/>
    <style:header-style/>
    <style:footer-style/>
</style:page-layout>
EOD;
        }
        $content .= '</office:automatic-styles>';
        return $content;
    }