Search moodle.org's
Developer Documentation

See Release Notes

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

(no description)

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

Defines 1 class

StyleMerger:: (4 methods):
  merge()
  mergeFontStyles()
  mergeOtherFontProperties()
  mergeCellProperties()


Class: StyleMerger  - X-Ref


merge(Style $style, Style $baseStyle)   X-Ref
Merges the current style with the given style, using the given style as a base. This means that:
- if current style and base style both have property A set, use current style property's value
- if current style has property A set but base style does not, use current style property's value
- if base style has property A set but current style does not, use base style property's value.

return: Style New style corresponding to the merge of the 2 styles

mergeFontStyles(Style $styleToUpdate, Style $style, Style $baseStyle)   X-Ref

param: Style $styleToUpdate (passed as reference)

mergeOtherFontProperties(Style $styleToUpdate, Style $style, Style $baseStyle)   X-Ref

param: Style $styleToUpdate Style to update (passed as reference)

mergeCellProperties(Style $styleToUpdate, Style $style, Style $baseStyle)   X-Ref

param: Style $styleToUpdate Style to update (passed as reference)