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

Public Member Functions

 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 injectConfigurationManager (\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager)
 
 injectExtensionService (\TYPO3\CMS\Extbase\Service\ExtensionService $extensionService)
 
 injectEnvironmentService (\TYPO3\CMS\Extbase\Service\EnvironmentService $environmentService)
 

Protected Member Functions

 loadDefaultValues ()
 
 resolveControllerName (array $parameters)
 
 resolveActionName ($controllerName, array $parameters)
 
 untangleFilesArray (array $convolutedFiles)
 
 calculateFieldPaths (array $structure, $firstLevelFieldName=null)
 

Protected Attributes

 $objectManager
 
 $vendorName
 
 $pluginName = 'plugin'
 
 $extensionName
 
 $defaultControllerName
 
 $defaultFormat = 'html'
 
 $allowedControllerActions = array()
 
 $configurationManager
 
 $extensionService
 
 $environmentService
 

Detailed Description

Builds a web request.

Definition at line 23 of file Web/RequestBuilder.php.

Member Function Documentation

calculateFieldPaths ( array  $structure,
  $firstLevelFieldName = null 
)
protected

Returns an array of all possibles "field paths" for the given array.

Parameters
array$structureThe array to walk through
string$firstLevelFieldName
Returns
array An array of paths (as strings) in the format "key1/key2/key3" ...

Definition at line 298 of file Web/RequestBuilder.php.

Referenced by RequestBuilder\untangleFilesArray().

injectConfigurationManager ( \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface  $configurationManager)
Parameters
\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface$configurationManager

Definition at line 98 of file Web/RequestBuilder.php.

References RequestBuilder\$configurationManager.

injectEnvironmentService ( \TYPO3\CMS\Extbase\Service\EnvironmentService  $environmentService)
Parameters
\TYPO3\CMS\Extbase\Service\EnvironmentService$environmentService

Definition at line 114 of file Web/RequestBuilder.php.

References RequestBuilder\$environmentService.

injectExtensionService ( \TYPO3\CMS\Extbase\Service\ExtensionService  $extensionService)
Parameters
\TYPO3\CMS\Extbase\Service\ExtensionService$extensionService

Definition at line 106 of file Web/RequestBuilder.php.

References RequestBuilder\$extensionService.

injectObjectManager ( \TYPO3\CMS\Extbase\Object\ObjectManagerInterface  $objectManager)
Parameters
\TYPO3\CMS\Extbase\Object\ObjectManagerInterface$objectManager

Definition at line 90 of file Web/RequestBuilder.php.

References RequestBuilder\$objectManager.

loadDefaultValues ( )
protected
Exceptions
MvcException
Returns
void

Definition at line 123 of file Web/RequestBuilder.php.

References ConfigurationManagerInterface\CONFIGURATION_TYPE_FRAMEWORK.

resolveActionName (   $controllerName,
array  $parameters 
)
protected

Returns the current actionName extracted from given $parameters. If no action is specified, the defaultActionName will be returned. If that's not available or the specified action is not defined in the current plugin, an exception is thrown.

Parameters
string$controllerName
array$parameters
Exceptions
\TYPO3\CMS\Extbase\Mvc\Exception\InvalidActionNameException
MvcException
\TYPO3\CMS\Core\Error\Http\PageNotFoundException
Returns
string

Definition at line 232 of file Web/RequestBuilder.php.

References ConfigurationManagerInterface\CONFIGURATION_TYPE_FRAMEWORK, and elseif.

resolveControllerName ( array  $parameters)
protected

Returns the current ControllerName extracted from given $parameters. If no controller is specified, the defaultControllerName will be returned. If that's not available, an exception is thrown.

Parameters
array$parameters
Exceptions
\TYPO3\CMS\Extbase\Mvc\Exception\InvalidControllerNameException
MvcExceptionif the controller could not be resolved
\TYPO3\CMS\Core\Error\Http\PageNotFoundException
Returns
string

Definition at line 199 of file Web/RequestBuilder.php.

References RequestBuilder\$defaultControllerName, ConfigurationManagerInterface\CONFIGURATION_TYPE_FRAMEWORK, and elseif.

untangleFilesArray ( array  $convolutedFiles)
protected

Transforms the convoluted _FILES superglobal into a manageable form.

Parameters
array$convolutedFilesThe _FILES superglobal
Returns
array Untangled files
See Also
TYPO3

Definition at line 262 of file Web/RequestBuilder.php.

References RequestBuilder\calculateFieldPaths().

Member Data Documentation

$allowedControllerActions = array()
protected

Definition at line 70 of file Web/RequestBuilder.php.

$configurationManager
protected

Definition at line 75 of file Web/RequestBuilder.php.

Referenced by RequestBuilder\injectConfigurationManager().

$defaultControllerName
protected

Definition at line 56 of file Web/RequestBuilder.php.

Referenced by RequestBuilder\resolveControllerName().

$defaultFormat = 'html'
protected

Definition at line 63 of file Web/RequestBuilder.php.

$environmentService
protected

Definition at line 85 of file Web/RequestBuilder.php.

Referenced by RequestBuilder\injectEnvironmentService().

$extensionName
protected

Definition at line 49 of file Web/RequestBuilder.php.

$extensionService
protected

Definition at line 80 of file Web/RequestBuilder.php.

Referenced by RequestBuilder\injectExtensionService().

$objectManager
protected

Definition at line 28 of file Web/RequestBuilder.php.

Referenced by RequestBuilder\injectObjectManager().

$pluginName = 'plugin'
protected

Definition at line 42 of file Web/RequestBuilder.php.

$vendorName
protected

Definition at line 35 of file Web/RequestBuilder.php.