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

Defines 1 class


Class: SheetManager  - X-Ref


__construct(StringHelper $stringHelper)   X-Ref
SheetManager constructor.


throwIfNameIsInvalid(string $name, Sheet $sheet)   X-Ref
Throws an exception if the given sheet's name is not valid.

param: Sheet $sheet The sheet whose future name is checked

markWorkbookIdAsUsed(string $workbookId)   X-Ref

param: string $workbookId Workbook ID associated to a Sheet

markSheetNameAsUsed(Sheet $sheet)   X-Ref
No description

doesContainInvalidCharacters(string $name)   X-Ref
Returns whether the given name contains at least one invalid character.

return: bool TRUE if the name contains invalid characters, FALSE otherwise

doesStartOrEndWithSingleQuote(string $name)   X-Ref
Returns whether the given name starts or ends with a single quote.

return: bool TRUE if the name starts or ends with a single quote, FALSE otherwise

isNameUnique(string $name, Sheet $sheet)   X-Ref
Returns whether the given name is unique.

param: Sheet $sheet The sheet whose future name is checked
return: bool TRUE if the name is unique, FALSE otherwise