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: 273 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: WorksheetManager  - X-Ref


__construct(StyleManager $styleManager,StyleMerger $styleMerger,ODSEscaper $stringsEscaper)   X-Ref
WorksheetManager constructor.


startSheet(Worksheet $worksheet)   X-Ref
Prepares the worksheet to accept data.

param: Worksheet $worksheet The worksheet to start

getTableElementStartAsString(Worksheet $worksheet)   X-Ref
Returns the table XML root node as string.

return: string "<table>" node as string

getTableDatabaseRangeElementAsString(Worksheet $worksheet)   X-Ref
Returns the table:database-range XML node for AutoFilter as string.


addRow(Worksheet $worksheet, Row $row)   X-Ref
Adds a row to the given worksheet.

param: Worksheet $worksheet The worksheet to add the row to
param: Row       $row       The row to be added

close(Worksheet $worksheet)   X-Ref
Closes the worksheet.


applyStyleAndRegister(Cell $cell, Style $rowStyle)   X-Ref
Applies styles to the given style, merging the cell's style with its row's style.


getCellXMLWithStyle(Cell $cell, Style $style, int $currentCellIndex, int $nextCellIndex)   X-Ref
No description

getCellXML(Cell $cell, int $styleIndex, int $numTimesValueRepeated)   X-Ref
Returns the cell XML content, given its value.

param: Cell $cell                  The cell to be written
param: int  $styleIndex            Index of the used style
param: int  $numTimesValueRepeated Number of times the value is consecutively repeated
return: string The cell XML content