‪TYPO3CMS  ‪main
TYPO3\CMS\Install\Service\LocalConfigurationValueService Class Reference

Public Member Functions

array getCurrentConfigurationData ()
 
 updateLocalConfigurationValues (array $valueList)
 

Protected Member Functions

 recursiveConfigurationFetching (array $sections, array $sectionsFromCurrentConfiguration, array $descriptions, array $path=[])
 
 getDefaultConfigArrayComments ()
 

Detailed Description

Service handling bulk read and write of LocalConfiguration values.

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

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

Definition at line 34 of file LocalConfigurationValueService.php.

Member Function Documentation

◆ getCurrentConfigurationData()

array TYPO3\CMS\Install\Service\LocalConfigurationValueService::getCurrentConfigurationData ( )

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

Returns
‪array Configuration data

Definition at line 42 of file LocalConfigurationValueService.php.

References $GLOBALS, TYPO3\CMS\Install\Service\LocalConfigurationValueService\getDefaultConfigArrayComments(), and TYPO3\CMS\Install\Service\LocalConfigurationValueService\recursiveConfigurationFetching().

◆ getDefaultConfigArrayComments()

TYPO3\CMS\Install\Service\LocalConfigurationValueService::getDefaultConfigArrayComments ( )
protected

◆ recursiveConfigurationFetching()

TYPO3\CMS\Install\Service\LocalConfigurationValueService::recursiveConfigurationFetching ( array  $sections,
array  $sectionsFromCurrentConfiguration,
array  $descriptions,
array  $path = [] 
)
protected

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

Definition at line 70 of file LocalConfigurationValueService.php.

Referenced by TYPO3\CMS\Install\Service\LocalConfigurationValueService\getCurrentConfigurationData().

◆ updateLocalConfigurationValues()

TYPO3\CMS\Install\Service\LocalConfigurationValueService::updateLocalConfigurationValues ( array  $valueList)

Store changed values in LocalConfiguration

Parameters
array$valueList‪Nested array with key['key'] value

Definition at line 150 of file LocalConfigurationValueService.php.

References TYPO3\CMS\Install\Service\LocalConfigurationValueService\getDefaultConfigArrayComments(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().