TYPO3 API  SVNRelease
Public Member Functions | Protected Member Functions
Tx_Extbase_Configuration_FrontendConfigurationManager Class Reference
Inheritance diagram for Tx_Extbase_Configuration_FrontendConfigurationManager:
Inheritance graph
[legend]
Collaboration diagram for Tx_Extbase_Configuration_FrontendConfigurationManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 getTypoScriptSetup ()

Protected Member Functions

 getPluginConfiguration ($extensionName, $pluginName)
 getSwitchableControllerActions ($extensionName, $pluginName)
 getContextSpecificFrameworkConfiguration (array $frameworkConfiguration)
 overrideStoragePidIfStartingPointIsSet (array $frameworkConfiguration)
 overrideConfigurationFromPlugin (array $frameworkConfiguration)
 overrideConfigurationFromFlexform (array $frameworkConfiguration)
 convertFlexformContentToArray ($flexFormContent)
 walkFlexformNode ($nodeArray, $valuePointer= 'vDEF')
 mergeConfigurationIntoFrameworkConfiguration (array $frameworkConfiguration, array $configuration, $configurationPartName)
 overrideSwitchableControllerActionsFromFlexform (array $frameworkConfiguration, array $flexformConfiguration)

Detailed Description

Definition at line 34 of file FrontendConfigurationManager.php.


Member Function Documentation

Tx_Extbase_Configuration_FrontendConfigurationManager::convertFlexformContentToArray ( flexFormContent) [protected]

Parses the FlexForm content and converts it to an array The resulting array will be multi-dimensional, as a value "bla.blubb" results in two levels, and a value "bla.blubb.bla" results in three levels.

Note: multi-language FlexForms are not supported yet

Parameters:
string$flexFormContentFlexForm xml string
Returns:
array the processed array

Definition at line 179 of file FrontendConfigurationManager.php.

References walkFlexformNode(), and t3lib_div\xml2array().

Referenced by overrideConfigurationFromFlexform().

Tx_Extbase_Configuration_FrontendConfigurationManager::getContextSpecificFrameworkConfiguration ( array $  frameworkConfiguration) [protected]

Get context specific framework configuration.

  • Overrides storage PID with setting "Startingpoint"
  • merge flexform configuration, if needed
Parameters:
array$frameworkConfigurationThe framework configuration to modify
Returns:
array the modified framework configuration

Reimplemented from Tx_Extbase_Configuration_AbstractConfigurationManager.

Definition at line 93 of file FrontendConfigurationManager.php.

References overrideConfigurationFromFlexform(), overrideConfigurationFromPlugin(), and overrideStoragePidIfStartingPointIsSet().

Tx_Extbase_Configuration_FrontendConfigurationManager::getPluginConfiguration ( extensionName,
pluginName 
) [protected]

Returns the TypoScript configuration found in plugin.tx_yourextension_yourplugin merged with the global configuration of your extension from plugin.tx_yourextension

Parameters:
string$extensionName
string$pluginName
Returns:
array

Reimplemented from Tx_Extbase_Configuration_AbstractConfigurationManager.

Definition at line 53 of file FrontendConfigurationManager.php.

References Tx_Extbase_Configuration_AbstractConfigurationManager\$extensionName, Tx_Extbase_Configuration_AbstractConfigurationManager\$pluginName, t3lib_div\array_merge_recursive_overrule(), Tx_Extbase_Utility_TypoScript\convertTypoScriptArrayToPlainArray(), and getTypoScriptSetup().

Tx_Extbase_Configuration_FrontendConfigurationManager::getSwitchableControllerActions ( extensionName,
pluginName 
) [protected]

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

Parameters:
string$extensionName
string$pluginName
Returns:
array

Reimplemented from Tx_Extbase_Configuration_AbstractConfigurationManager.

Definition at line 77 of file FrontendConfigurationManager.php.

References Tx_Extbase_Configuration_AbstractConfigurationManager\$extensionName, $GLOBALS, and Tx_Extbase_Configuration_AbstractConfigurationManager\$pluginName.

Tx_Extbase_Configuration_FrontendConfigurationManager::getTypoScriptSetup ( )

Returns TypoScript Setup array from current Environment.

Returns:
array the raw TypoScript setup

Reimplemented from Tx_Extbase_Configuration_AbstractConfigurationManager.

Definition at line 41 of file FrontendConfigurationManager.php.

References $GLOBALS.

Referenced by getPluginConfiguration(), and overrideConfigurationFromPlugin().

Tx_Extbase_Configuration_FrontendConfigurationManager::mergeConfigurationIntoFrameworkConfiguration ( array $  frameworkConfiguration,
array $  configuration,
configurationPartName 
) [protected]

Merge a configuration into the framework configuration.

Parameters:
array$frameworkConfigurationthe framework configuration to merge the data on
array$configurationThe configuration
string$configurationPartNameThe name of the configuration part which should be merged.
Returns:
array the processed framework configuration

Definition at line 269 of file FrontendConfigurationManager.php.

References t3lib_div\array_merge_recursive_overrule().

Referenced by overrideConfigurationFromFlexform(), and overrideConfigurationFromPlugin().

Tx_Extbase_Configuration_FrontendConfigurationManager::overrideConfigurationFromFlexform ( array $  frameworkConfiguration) [protected]

Overrides configuration settings from flexforms. This merges the whole flexform data, and overrides switchable controller actions.

Parameters:
arraythe framework configuration
Returns:
array the framework configuration with overridden data from flexform

Definition at line 156 of file FrontendConfigurationManager.php.

References convertFlexformContentToArray(), mergeConfigurationIntoFrameworkConfiguration(), and overrideSwitchableControllerActionsFromFlexform().

Referenced by getContextSpecificFrameworkConfiguration().

Tx_Extbase_Configuration_FrontendConfigurationManager::overrideConfigurationFromPlugin ( array $  frameworkConfiguration) [protected]

Overrides configuration settings from the plugin typoscript (plugin.tx_myext_pi1.)

Parameters:
arraythe framework configuration
Returns:
array the framework configuration with overridden data from typoscript

Definition at line 136 of file FrontendConfigurationManager.php.

References Tx_Extbase_Utility_TypoScript\convertTypoScriptArrayToPlainArray(), getTypoScriptSetup(), and mergeConfigurationIntoFrameworkConfiguration().

Referenced by getContextSpecificFrameworkConfiguration().

Tx_Extbase_Configuration_FrontendConfigurationManager::overrideStoragePidIfStartingPointIsSet ( array $  frameworkConfiguration) [protected]

Overrides the storage PID settings, in case the "Startingpoint" settings is set in the plugin configuration.

Parameters:
array$frameworkConfigurationthe framework configurations
Returns:
array the framework configuration with overriden storagePid

Definition at line 108 of file FrontendConfigurationManager.php.

References $pid, t3lib_div\array_merge_recursive_overrule(), and t3lib_div\trimExplode().

Referenced by getContextSpecificFrameworkConfiguration().

Tx_Extbase_Configuration_FrontendConfigurationManager::overrideSwitchableControllerActionsFromFlexform ( array $  frameworkConfiguration,
array $  flexformConfiguration 
) [protected]

Overrides the switchable controller actions from the flexform.

Parameters:
array$frameworkConfigurationThe original framework configuration
array$flexformConfigurationThe full flexform configuration
Returns:
array the modified framework configuration, if needed

Definition at line 283 of file FrontendConfigurationManager.php.

References Tx_Extbase_Configuration_AbstractConfigurationManager\overrideSwitchableControllerActions(), and t3lib_div\trimExplode().

Referenced by overrideConfigurationFromFlexform().

Tx_Extbase_Configuration_FrontendConfigurationManager::walkFlexformNode ( nodeArray,
valuePointer = 'vDEF' 
) [protected]

Parses a flexform node recursively and takes care of sections etc

Parameters:
array$nodeArrayThe flexform node to parse
string$valuePointerThe valuePointer to use for value retrieval

Definition at line 220 of file FrontendConfigurationManager.php.

Referenced by convertFlexformContentToArray().


The documentation for this class was generated from the following file: