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.

Differences Between: [Versions 402 and 403]

(no description)

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

Defines 1 class

WorksheetManager:: (9 methods):
  __construct()
  getSharedStringsManager()
  startSheet()
  addRow()
  close()
  addNonEmptyRow()
  applyStyleAndRegister()
  getCellXML()
  getCellXMLFragmentForNonEmptyString()


Class: WorksheetManager  - X-Ref


__construct(Options $options,StyleManager $styleManager,StyleMerger $styleMerger,CommentsManager $commentsManager,SharedStringsManager $sharedStringsManager,XLSXEscaper $stringsEscaper,StringHelper $stringHelper)   X-Ref
WorksheetManager constructor.


getSharedStringsManager()   X-Ref
No description

startSheet(Worksheet $worksheet)   X-Ref
{@inheritdoc}


addRow(Worksheet $worksheet, Row $row)   X-Ref
{@inheritdoc}


close(Worksheet $worksheet)   X-Ref
{@inheritdoc}


addNonEmptyRow(Worksheet $worksheet, Row $row)   X-Ref
Adds non empty row to the worksheet.

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

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


getCellXML(int $rowIndexOneBased, int $columnIndexZeroBased, Cell $cell, ?int $styleId)   X-Ref
Builds and returns xml for a single cell.


getCellXMLFragmentForNonEmptyString(string $cellValue)   X-Ref
Returns the XML fragment for a cell containing a non empty string.

param: string $cellValue The cell value
return: string The XML fragment representing the cell