‪TYPO3CMS  9.5
TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager:
TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager TYPO3\CMS\Core\SingletonInterface

Public Member Functions

array getTypoScriptSetup ()
 
string getDefaultBackendStoragePid ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 injectTypoScriptService (\TYPO3\CMS\Core\TypoScript\TypoScriptService $typoScriptService)
 
 injectEnvironmentService (\TYPO3\CMS\Extbase\Service\EnvironmentService $environmentService)
 
 setContentObject (\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $contentObject=null)
 
TYPO3 CMS Frontend ContentObject ContentObjectRenderer null getContentObject ()
 
 setConfiguration (array $configuration=[])
 
array getConfiguration ($extensionName=null, $pluginName=null)
 

Protected Member Functions

array getPluginConfiguration ($extensionName, $pluginName=null)
 
array getSwitchableControllerActions ($extensionName, $pluginName)
 
int getCurrentPageId ()
 
int getCurrentPageIdFromGetPostData ()
 
int getCurrentPageIdFromCurrentSiteRoot ()
 
int getCurrentPageIdFromRootTemplate ()
 
array getContextSpecificFrameworkConfiguration (array $frameworkConfiguration)
 
string getRecursiveStoragePids ($storagePid, $recursionDepth=0)
 
TYPO3 CMS Core Authentication BackendUserAuthentication getBackendUser ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager
array getExtbaseConfiguration ()
 
 overrideSwitchableControllerActions (array &$frameworkConfiguration, array $switchableControllerActions)
 

Protected Attributes

array $typoScriptSetupCache = array( )
 
int $currentPageId
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager
array $configuration = array( )
 
TYPO3 CMS Frontend ContentObject ContentObjectRenderer $contentObject
 
TYPO3 CMS Extbase Object ObjectManagerInterface $objectManager
 
TYPO3 CMS Core TypoScript TypoScriptService $typoScriptService
 
string $extensionName
 
string $pluginName
 
array $configurationCache = array( )
 
TYPO3 CMS Extbase Service EnvironmentService $environmentService
 

Additional Inherited Members

- ‪Public Attributes inherited from ‪TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager
const DEFAULT_BACKEND_STORAGE_PID = 0
 

Detailed Description

A general purpose configuration manager used in backend mode.

only to be used within Extbase, not part of TYPO3 Core API.

Definition at line 33 of file BackendConfigurationManager.php.

Member Function Documentation

◆ getBackendUser()

TYPO3 CMS Core Authentication BackendUserAuthentication TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::getBackendUser ( )
protected
Returns
‪\TYPO3\CMS\Core\Authentication\BackendUserAuthentication

Definition at line 277 of file BackendConfigurationManager.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager\getRecursiveStoragePids().

◆ getContextSpecificFrameworkConfiguration()

array TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::getContextSpecificFrameworkConfiguration ( array  $frameworkConfiguration)
protected

We need to set some default request handler if the framework configuration could not be loaded; to make sure Extbase also works in Backend modules in all contexts.

Parameters
array$frameworkConfiguration
Returns
‪array

Reimplemented from TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager.

Definition at line 236 of file BackendConfigurationManager.php.

◆ getCurrentPageId()

◆ getCurrentPageIdFromCurrentSiteRoot()

int TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::getCurrentPageIdFromCurrentSiteRoot ( )
protected

Gets the current page ID from the first site root in tree.

Returns
‪int the page UID, will be 0 if none has been set

Definition at line 156 of file BackendConfigurationManager.php.

Referenced by TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager\getCurrentPageId().

◆ getCurrentPageIdFromGetPostData()

int TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::getCurrentPageIdFromGetPostData ( )
protected

Gets the current page ID from the GET/POST data.

Returns
‪int the page UID, will be 0 if none has been set

Definition at line 146 of file BackendConfigurationManager.php.

Referenced by TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager\getCurrentPageId().

◆ getCurrentPageIdFromRootTemplate()

int TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::getCurrentPageIdFromRootTemplate ( )
protected

Gets the current page ID from the first created root template.

Returns
‪int the page UID, will be 0 if none has been set

Definition at line 190 of file BackendConfigurationManager.php.

Referenced by TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager\getCurrentPageId().

◆ getDefaultBackendStoragePid()

string TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::getDefaultBackendStoragePid ( )

Returns the default backend storage pid

Returns
‪string

Reimplemented from TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager.

Definition at line 223 of file BackendConfigurationManager.php.

References TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager\getCurrentPageId().

◆ getPluginConfiguration()

array TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::getPluginConfiguration (   $extensionName,
  $pluginName = null 
)
protected

Returns the TypoScript configuration found in module.tx_yourextension_yourmodule merged with the global configuration of your extension from module.tx_yourextension

Parameters
string$extensionName
string$pluginName‪in BE mode this is actually the module signature. But we're using it just like the plugin name in FE
Returns
‪array

Reimplemented from TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager.

Definition at line 85 of file BackendConfigurationManager.php.

References TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager\$extensionName, TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager\$pluginName, TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager\getTypoScriptSetup(), and TYPO3\CMS\Core\Utility\ArrayUtility\mergeRecursiveWithOverrule().

◆ getRecursiveStoragePids()

string TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::getRecursiveStoragePids (   $storagePid,
  $recursionDepth = 0 
)
protected

Returns a comma separated list of storagePid that are below a certain storage pid.

Parameters
string$storagePid‪Storage PID to start at; multiple PIDs possible as comma-separated list
int$recursionDepth‪Maximum number of levels to search, 0 to disable recursive lookup
Returns
‪string storage PIDs

Reimplemented from TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager.

Definition at line 254 of file BackendConfigurationManager.php.

References TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager\getBackendUser(), and TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_SHOW.

◆ getSwitchableControllerActions()

array TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::getSwitchableControllerActions (   $extensionName,
  $pluginName 
)
protected

Returns the configured controller/action pairs of the specified module in the format array( 'Controller1' => array('action1', 'action2'), 'Controller2' => array('action3', 'action4') )

Parameters
string$extensionName
string$pluginName‪in BE mode this is actually the module signature. But we're using it just like the plugin name in FE
Returns
‪array

Reimplemented from TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager.

Definition at line 113 of file BackendConfigurationManager.php.

References TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager\$extensionName, $GLOBALS, and TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager\$pluginName.

◆ getTypoScriptSetup()

array TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::getTypoScriptSetup ( )

Returns TypoScript Setup array from current Environment.

Returns
‪array the raw TypoScript setup

Reimplemented from TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager.

Definition at line 49 of file BackendConfigurationManager.php.

References TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager\getCurrentPageId().

Referenced by TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager\getPluginConfiguration().

Member Data Documentation

◆ $currentPageId

int TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::$currentPageId
protected

stores the current page ID

Definition at line 42 of file BackendConfigurationManager.php.

Referenced by TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager\getCurrentPageId().

◆ $typoScriptSetupCache

array TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::$typoScriptSetupCache = array( )
protected

Definition at line 37 of file BackendConfigurationManager.php.