Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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

(no description)

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

Defines 1 class


Class: Settings  - X-Ref

setLocale($locale)   X-Ref
Set the locale code to use for formula translations and any special formatting.

param: string $locale The locale code to use (e.g. "fr" or "pt_br" or "en_uk")
return: bool Success or failure

setChartRenderer($rendererClass)   X-Ref
Identify to PhpSpreadsheet the external library to use for rendering charts.

param: string $rendererClass Class name of the chart renderer

getChartRenderer()   X-Ref
Return the Chart Rendering Library that PhpSpreadsheet is currently configured to use.

return: null|string Class name of the chart renderer

setLibXmlLoaderOptions($options)   X-Ref
Set default options for libxml loader.

param: int $options Default options for libxml loader

getLibXmlLoaderOptions()   X-Ref
Get default options for libxml loader.
Defaults to LIBXML_DTDLOAD | LIBXML_DTDATTR when not set explicitly.

return: int Default options for libxml loader

setLibXmlDisableEntityLoader($state)   X-Ref
Enable/Disable the entity loader for libxml loader.
Allow/disallow libxml_disable_entity_loader() call when not thread safe.
Default behaviour is to do the check, but if you're running PHP versions
7.2 < 7.2.1
7.1 < 7.1.13
7.0 < 7.0.27
then you may need to disable this check to prevent unwanted behaviour in other threads
SECURITY WARNING: Changing this flag to false is not recommended.

param: bool $state

getLibXmlDisableEntityLoader()   X-Ref
Return the state of the entity loader (disabled/enabled) for libxml loader.

return: bool $state

setCache(CacheInterface $cache)   X-Ref
Sets the implementation of cache that should be used for cell collection.

param: CacheInterface $cache

getCache()   X-Ref
Gets the implementation of cache that should be used for cell collection.

return: CacheInterface