‪TYPO3CMS  10.4
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 ()
 
int getDefaultBackendStoragePid ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager
 __construct (ObjectManagerInterface $objectManager, TypoScriptService $typoScriptService, EnvironmentService $environmentService)
 
 setContentObject (ContentObjectRenderer $contentObject)
 
TYPO3 CMS Frontend ContentObject ContentObjectRenderer null getContentObject ()
 
 setConfiguration (array $configuration=[])
 
array getConfiguration (?string $extensionName=null, ?string $pluginName=null)
 

Protected Member Functions

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

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 35 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 278 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 242 of file BackendConfigurationManager.php.

◆ getControllerConfiguration()

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

Returns the configured controller/action configuration 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 115 of file BackendConfigurationManager.php.

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

◆ 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 158 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 148 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 195 of file BackendConfigurationManager.php.

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

◆ getDefaultBackendStoragePid()

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

Returns the default backend storage pid

Returns
‪int

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

Definition at line 228 of file BackendConfigurationManager.php.

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

◆ getPluginConfiguration()

array TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::getPluginConfiguration ( string  $extensionName,
string  $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 87 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()

array int [] TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::getRecursiveStoragePids ( array  $storagePids,
  $recursionDepth = 0 
)
protected

Returns an array of storagePIDs that are below a certain storage pid.

Parameters
array | int[]$storagePids‪Storage PIDs to start at; multiple PIDs possible as comma-separated list
int$recursionDepth‪Maximum number of levels to search, 0 to disable recursive lookup
Returns
‪array|int[] storage PIDs

Definition at line 254 of file BackendConfigurationManager.php.

References TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager\getBackendUser(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\getPagePermsClause(), TYPO3\CMS\Core\Utility\GeneralUtility\intExplode(), and TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_SHOW.

◆ 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 51 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 44 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 39 of file BackendConfigurationManager.php.