Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 467 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: Style  - X-Ref

Represents a style to be applied to a cell.

__sleep()   X-Ref
No description

getId()   X-Ref
No description

setId(int $id)   X-Ref
No description

getBorder()   X-Ref
No description

setBorder(Border $border)   X-Ref
No description

isFontBold()   X-Ref
No description

setFontBold()   X-Ref
No description

hasSetFontBold()   X-Ref
No description

isFontItalic()   X-Ref
No description

setFontItalic()   X-Ref
No description

hasSetFontItalic()   X-Ref
No description

isFontUnderline()   X-Ref
No description

setFontUnderline()   X-Ref
No description

hasSetFontUnderline()   X-Ref
No description

isFontStrikethrough()   X-Ref
No description

setFontStrikethrough()   X-Ref
No description

hasSetFontStrikethrough()   X-Ref
No description

getFontSize()   X-Ref
No description

setFontSize(int $fontSize)   X-Ref

param: int $fontSize Font size, in pixels

hasSetFontSize()   X-Ref
No description

getFontColor()   X-Ref
No description

setFontColor(string $fontColor)   X-Ref
Sets the font color.

param: string $fontColor ARGB color (@see Color)

hasSetFontColor()   X-Ref
No description

getFontName()   X-Ref
No description

setFontName(string $fontName)   X-Ref

param: string $fontName Name of the font to use

hasSetFontName()   X-Ref
No description

getCellAlignment()   X-Ref
No description

getCellVerticalAlignment()   X-Ref
No description

setCellAlignment(string $cellAlignment)   X-Ref

param: string $cellAlignment The cell alignment

setCellVerticalAlignment(string $cellVerticalAlignment)   X-Ref

param: string $cellVerticalAlignment The cell vertical alignment

hasSetCellAlignment()   X-Ref
No description

hasSetCellVerticalAlignment()   X-Ref
No description

shouldApplyCellAlignment()   X-Ref

return: bool Whether specific cell alignment should be applied

shouldApplyCellVerticalAlignment()   X-Ref
No description

shouldWrapText()   X-Ref
No description

setShouldWrapText(bool $shouldWrap = true)   X-Ref

param: bool $shouldWrap Should the text be wrapped

hasSetWrapText()   X-Ref
No description

shouldApplyFont()   X-Ref

return: bool Whether specific font properties should be applied

setBackgroundColor(string $color)   X-Ref
Sets the background color.

param: string $color ARGB color (@see Color)

getBackgroundColor()   X-Ref
No description

setFormat(string $format)   X-Ref
Sets format.


getFormat()   X-Ref
No description

isRegistered()   X-Ref
No description

markAsRegistered(?int $id)   X-Ref
No description

isEmpty()   X-Ref
No description

setShouldShrinkToFit(bool $shrinkToFit = true)   X-Ref
Sets should shrink to fit.


shouldShrinkToFit()   X-Ref

return: bool Whether format should be applied

hasSetShrinkToFit()   X-Ref
No description