LocalConfigurationValueService

Service handling bulk read and write of LocalConfiguration values.

Used by "Configure global settings" / "All configuration" view.

Internal

This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.

Table of Contents

Methods

getCurrentConfigurationData()  : array<string|int, mixed>
Get up configuration data. Prepares main TYPO3_CONF_VARS array to be displayed and merges is with the description file
updateLocalConfigurationValues()  : FlashMessageQueue
Store changed values in LocalConfiguration
getDefaultConfigArrayComments()  : array<string|int, mixed>
Read descriptions from description file
recursiveConfigurationFetching()  : array<string|int, mixed>
Because configuration entries can be at any sub-array level, we need to check entries recursively.

Methods

getCurrentConfigurationData()

Get up configuration data. Prepares main TYPO3_CONF_VARS array to be displayed and merges is with the description file

public getCurrentConfigurationData() : array<string|int, mixed>
Return values
array<string|int, mixed>

Configuration data

updateLocalConfigurationValues()

Store changed values in LocalConfiguration

public updateLocalConfigurationValues(array<string|int, mixed> $valueList) : FlashMessageQueue
Parameters
$valueList : array<string|int, mixed>

Nested array with key['key'] value

Return values
FlashMessageQueue

getDefaultConfigArrayComments()

Read descriptions from description file

protected getDefaultConfigArrayComments() : array<string|int, mixed>
Return values
array<string|int, mixed>

recursiveConfigurationFetching()

Because configuration entries can be at any sub-array level, we need to check entries recursively.

protected recursiveConfigurationFetching(array<string|int, mixed> $sections, array<string|int, mixed> $sectionsFromCurrentConfiguration, array<string|int, mixed> $descriptions[, array<string|int, mixed> $path = [] ]) : array<string|int, mixed>

Supported description types are:

  • bool boolean on/off toggles
  • dropdown dropdowns
  • text single-line text
  • int number inputs
  • list single-line text with comma-separated values
  • multiline multi-line text input
  • password password input
  • mixed mixed-types, which can behave either as "text" or an array (only via manually editing settings.php)
  • container a container for grouping multiple inputs
  • phpClass a string representing a PHP classname
  • errors a special dropdowns for PHP error mappings
  • array comma-separated values treated as a "list" (like an "array with numerical values")
  • map array keys+values ($someArray['someKey' => 'someValue'])
  • element-list numerical indexed array values ($someArray[] = 'someValue')
Parameters
$sections : array<string|int, mixed>
$sectionsFromCurrentConfiguration : array<string|int, mixed>
$descriptions : array<string|int, mixed>
$path : array<string|int, mixed> = []
Return values
array<string|int, mixed>

        
On this page

Search results