TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager:
TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager TYPO3\CMS\Core\SingletonInterface Tx_Extbase_Configuration_BackendConfigurationManager

Public Member Functions

 getDefaultBackendStoragePid ()
 
- Public Member Functions inherited from TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager
 setContentObject (\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $contentObject=NULL)
 
 getContentObject ()
 
 setConfiguration (array $configuration=array())
 
 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)
 
- 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 = array()
 
 $currentPageId
 
- Protected Attributes inherited from TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager
 $configuration = array()
 
 $contentObject
 
 $objectManager
 
 $typoScriptService
 
 $extensionName
 
 $pluginName
 
 $configurationCache = array()
 
 $environmentService
 

Additional Inherited Members

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

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! A general purpose configuration manager used in backend mode.

Definition at line 19 of file BackendConfigurationManager.php.

Member Function Documentation

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

◆ getCurrentPageId()

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

◆ 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 147 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 138 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 163 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 179 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 80 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
integer$recursionDepthMaximum number of levels to search, 0 to disable recursive lookup
Returns
string storage PIDs

Definition at line 209 of file BackendConfigurationManager.php.

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

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

Member Data Documentation

◆ $currentPageId

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

◆ $queryGenerator

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

Definition at line 27 of file BackendConfigurationManager.php.

◆ $typoScriptSetupCache

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

Definition at line 32 of file BackendConfigurationManager.php.