Box\Spout\Writer\ODS\Helper\StyleHelper::getMasterStylesSectionContent PHP Метод

getMasterStylesSectionContent() защищенный Метод

Returns the content of the "" section, inside "styles.xml" file.
protected getMasterStylesSectionContent ( integer $numWorksheets ) : string
$numWorksheets integer Number of worksheets created
Результат string
    protected function getMasterStylesSectionContent($numWorksheets)
    {
        $content = '<office:master-styles>';
        for ($i = 1; $i <= $numWorksheets; $i++) {
            $content .= <<<EOD
<style:master-page style:name="mp{$i}" style:page-layout-name="pm{$i}">
    <style:header/>
    <style:header-left style:display="false"/>
    <style:footer/>
    <style:footer-left style:display="false"/>
</style:master-page>
EOD;
        }
        $content .= '</office:master-styles>';
        return $content;
    }