TYPO3 CMS  TYPO3_7-6
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

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

Protected Member Functions

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

Protected Attributes

 $queryGenerator
 
 $typoScriptSetupCache = []
 
 $currentPageId
 
- Protected Attributes inherited from TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager
 $configuration = []
 
 $contentObject
 
 $objectManager
 
 $typoScriptService
 
 $extensionName
 
 $pluginName
 
 $configurationCache = []
 
 $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.

Definition at line 20 of file BackendConfigurationManager.php.

Member Function Documentation

◆ getBackendUser()

TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::getBackendUser ( )
protected

◆ getContextSpecificFrameworkConfiguration()

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

Definition at line 207 of file BackendConfigurationManager.php.

◆ getCurrentPageId()

◆ getCurrentPageIdFromCurrentSiteRoot()

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 160 of file BackendConfigurationManager.php.

References $GLOBALS.

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

◆ getCurrentPageIdFromGetPostData()

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 150 of file BackendConfigurationManager.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\_GP().

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

◆ getCurrentPageIdFromRootTemplate()

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 177 of file BackendConfigurationManager.php.

References $GLOBALS.

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

◆ getDefaultBackendStoragePid()

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

Returns the default backend storage pid

Returns
string

Definition at line 194 of file BackendConfigurationManager.php.

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

◆ getPluginConfiguration()

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$pluginNamein BE mode this is actually the module signature. But we're using it just like the plugin name in FE
Returns
array

Definition at line 89 of file BackendConfigurationManager.php.

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

◆ getRecursiveStoragePids()

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$storagePidStorage PID to start at; multiple PIDs possible as comma-separated list
int$recursionDepthMaximum number of levels to search, 0 to disable recursive lookup
Returns
string storage PIDs

Definition at line 225 of file BackendConfigurationManager.php.

References TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager\getBackendUser(), and TYPO3\CMS\Core\Utility\GeneralUtility\intExplode().

◆ getSwitchableControllerActions()

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$pluginNamein BE mode this is actually the module signature. But we're using it just like the plugin name in FE
Returns
array

Definition at line 117 of file BackendConfigurationManager.php.

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

◆ injectQueryGenerator()

Member Data Documentation

◆ $currentPageId

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

◆ $queryGenerator

TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::$queryGenerator
protected

◆ $typoScriptSetupCache

TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::$typoScriptSetupCache = []
protected

Definition at line 32 of file BackendConfigurationManager.php.