TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BackendConfigurationManager Class Reference
Inheritance diagram for BackendConfigurationManager:
AbstractConfigurationManager SingletonInterface

Public Member Functions

 injectQueryGenerator (\TYPO3\CMS\Core\Database\QueryGenerator $queryGenerator)
 
 getDefaultBackendStoragePid ()
 
- Public Member Functions inherited from 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=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 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 AbstractConfigurationManager
 $configuration = array()
 
 $contentObject
 
 $objectManager
 
 $typoScriptService
 
 $extensionName
 
 $pluginName
 
 $configurationCache = array()
 
 $environmentService
 

Additional Inherited Members

- Public Attributes inherited from 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

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 ( )
protected

Returns the page uid of the current page. If no page is selected, we'll return the uid of the first root page.

Returns
int current page id. If no page is selected current root page id is returned

Definition at line 132 of file BackendConfigurationManager.php.

References BackendConfigurationManager\$currentPageId, BackendConfigurationManager\getCurrentPageIdFromCurrentSiteRoot(), BackendConfigurationManager\getCurrentPageIdFromGetPostData(), and BackendConfigurationManager\getCurrentPageIdFromRootTemplate().

Referenced by BackendConfigurationManager\getDefaultBackendStoragePid().

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 BackendConfigurationManager\getCurrentPageId().

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.

Referenced by BackendConfigurationManager\getCurrentPageId().

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 BackendConfigurationManager\getCurrentPageId().

getDefaultBackendStoragePid ( )

Returns the default backend storage pid

Returns
string

Definition at line 194 of file BackendConfigurationManager.php.

References BackendConfigurationManager\getCurrentPageId().

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 AbstractConfigurationManager\$extensionName, AbstractConfigurationManager\$pluginName, and AbstractConfigurationManager\getTypoScriptSetup().

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

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 AbstractConfigurationManager\$extensionName, $GLOBALS, and AbstractConfigurationManager\$pluginName.

injectQueryGenerator ( \TYPO3\CMS\Core\Database\QueryGenerator  $queryGenerator)
Parameters
\TYPO3\CMS\Core\Database\QueryGenerator$queryGenerator

Definition at line 43 of file BackendConfigurationManager.php.

References BackendConfigurationManager\$queryGenerator.

Member Data Documentation

$currentPageId
protected
$queryGenerator
protected
$typoScriptSetupCache = array()
protected

Definition at line 32 of file BackendConfigurationManager.php.