Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401] [Versions 401 and 402] [Versions 401 and 403]

(no description)

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

Defines 1 class

StringTable:: (6 methods):
  createStringTable()
  writeStringTable()
  writeRichText()
  writeRichTextForCharts()
  writeChartTextColor()
  flipStringTable()


Class: StringTable  - X-Ref

createStringTable(Worksheet $worksheet, $existingTable = null)   X-Ref
Create worksheet stringtable.

param: Worksheet $worksheet Worksheet
param: string[] $existingTable Existing table to eventually merge with
return: string[] String table for worksheet

writeStringTable(array $stringTable)   X-Ref
Write string table to XML format.

param: (string|RichText)[] $stringTable
return: string XML Output

writeRichText(XMLWriter $objWriter, RichText $richText, $prefix = null)   X-Ref
Write Rich Text.

param: string $prefix Optional Namespace prefix

writeRichTextForCharts(XMLWriter $objWriter, $richText = null, $prefix = '')   X-Ref
Write Rich Text.

param: RichText|string $richText text string or Rich text
param: string $prefix Optional Namespace prefix

writeChartTextColor(XMLWriter $objWriter, ?ChartColor $underlineColor, string $prefix, ?string $openTag = '')   X-Ref
No description

flipStringTable(array $stringTable)   X-Ref
Flip string table (for index searching).

param: array $stringTable Stringtable
return: array