Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
PhpOffice\PhpSpreadsheet\Settings Class Reference

Static Public Member Functions

static getCache ()
 Gets the implementation of cache that is being used for cell collection.
 
static getChartRenderer ()
 Return the Chart Rendering Library that PhpSpreadsheet is currently configured to use.
 
static getHttpClient ()
 Get the HTTP client implementation to be used for network request.
 
static getLocale ()
 
static getRequestFactory ()
 Get the HTTP request factory.
 
static htmlEntityFlags ()
 
static setCache (?CacheInterface $cache)
 Sets the implementation of cache that should be used for cell collection.
 
static setChartRenderer (string $rendererClassName)
 Identify to PhpSpreadsheet the external library to use for rendering charts.
 
static setHttpClient (ClientInterface $httpClient, RequestFactoryInterface $requestFactory)
 Set the HTTP client implementation to be used for network request.
 
static setLocale (string $locale)
 Set the locale code to use for formula translations and any special formatting.
 
static unsetChartRenderer ()
 
static unsetHttpClient ()
 Unset the HTTP client configuration.
 
static useSimpleCacheVersion3 ()
 

Member Function Documentation

◆ getChartRenderer()

static PhpOffice\PhpSpreadsheet\Settings::getChartRenderer ( )
static

Return the Chart Rendering Library that PhpSpreadsheet is currently configured to use.

Return values
null|class-string<IRenderer>Class name of the chart renderer eg: PhpOffice\PhpSpreadsheet\Chart\Renderer\JpGraph

◆ setChartRenderer()

static PhpOffice\PhpSpreadsheet\Settings::setChartRenderer ( string $rendererClassName)
static

Identify to PhpSpreadsheet the external library to use for rendering charts.

Parameters
class-string<IRenderer>$rendererClassName Class name of the chart renderer eg: PhpOffice\PhpSpreadsheet\Chart\Renderer\JpGraph

◆ setLocale()

static PhpOffice\PhpSpreadsheet\Settings::setLocale ( string $locale)
static

Set the locale code to use for formula translations and any special formatting.

Parameters
string$localeThe locale code to use (e.g. "fr" or "pt_br" or "en_uk")
Return values
boolSuccess or failure

The documentation for this class was generated from the following file: