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

Defines 1 class


Class: Settings  - X-Ref

setLocale(string $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

getLocale()   X-Ref
No description

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

param: string $rendererClassName 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

htmlEntityFlags()   X-Ref
No description

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
Deprecated, has no effect.

param: bool $state

getLibXmlDisableEntityLoader()   X-Ref
Deprecated, has no effect.

return: bool $state

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


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


useSimpleCacheVersion3()   X-Ref
No description

setHttpClient(ClientInterface $httpClient, RequestFactoryInterface $requestFactory)   X-Ref
Set the HTTP client implementation to be used for network request.


unsetHttpClient()   X-Ref
Unset the HTTP client configuration.


getHttpClient()   X-Ref
Get the HTTP client implementation to be used for network request.


getRequestFactory()   X-Ref
Get the HTTP request factory.


assertHttpClient()   X-Ref
No description