Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Class: StyleManager  - X-Ref

Class StyleManager
Manages styles to be applied to a cell

getStylesXMLFileContent($numWorksheets)   X-Ref
Returns the content of the "styles.xml" file, given a list of styles.

param: int $numWorksheets Number of worksheets created
return: string

getFontFaceSectionContent()   X-Ref
Returns the content of the "<office:font-face-decls>" section, inside "styles.xml" file.

return: string

getStylesSectionContent()   X-Ref
Returns the content of the "<office:styles>" section, inside "styles.xml" file.

return: string

getAutomaticStylesSectionContent($numWorksheets)   X-Ref
Returns the content of the "<office:automatic-styles>" section, inside "styles.xml" file.

param: int $numWorksheets Number of worksheets created
return: string

getMasterStylesSectionContent($numWorksheets)   X-Ref
Returns the content of the "<office:master-styles>" section, inside "styles.xml" file.

param: int $numWorksheets Number of worksheets created
return: string

getContentXmlFontFaceSectionContent()   X-Ref
Returns the contents of the "<office:font-face-decls>" section, inside "content.xml" file.

return: string

getContentXmlAutomaticStylesSectionContent($worksheets)   X-Ref
Returns the contents of the "<office:automatic-styles>" section, inside "content.xml" file.

param: Worksheet[] $worksheets
return: string

getStyleSectionContent($style)   X-Ref
Returns the contents of the "<style:style>" section, inside "<office:automatic-styles>" section

param: \Box\Spout\Common\Entity\Style\Style $style
return: string

getTextPropertiesSectionContent($style)   X-Ref
Returns the contents of the "<style:text-properties>" section, inside "<style:style>" section

param: \Box\Spout\Common\Entity\Style\Style $style
return: string

getFontSectionContent($style)   X-Ref
Returns the contents of the "<style:text-properties>" section, inside "<style:style>" section

param: \Box\Spout\Common\Entity\Style\Style $style
return: string

getTableCellPropertiesSectionContent($style)   X-Ref
Returns the contents of the "<style:table-cell-properties>" section, inside "<style:style>" section

param: \Box\Spout\Common\Entity\Style\Style $style
return: string

getWrapTextXMLContent()   X-Ref
Returns the contents of the wrap text definition for the "<style:table-cell-properties>" section

return: string

getBorderXMLContent($style)   X-Ref
Returns the contents of the borders definition for the "<style:table-cell-properties>" section

param: \Box\Spout\Common\Entity\Style\Style $style
return: string

getBackgroundColorXMLContent($style)   X-Ref
Returns the contents of the background color definition for the "<style:table-cell-properties>" section

param: \Box\Spout\Common\Entity\Style\Style $style
return: string