TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BackendModuleRequestHandler Class Reference
Inheritance diagram for BackendModuleRequestHandler:
RequestHandlerInterface

Public Member Functions

 __construct (Bootstrap $bootstrap)
 
 handleRequest (ServerRequestInterface $request)
 
 canHandleRequest (ServerRequestInterface $request)
 
 getPriority ()
 
- Public Member Functions inherited from RequestHandlerInterface
 handleRequest (\Psr\Http\Message\ServerRequestInterface $request)
 
 canHandleRequest (\Psr\Http\Message\ServerRequestInterface $request)
 

Protected Member Functions

 boot ()
 
 isValidModuleRequest ()
 
 isDispatchedModule ($moduleName)
 
 callTraditionalModule ($moduleName)
 
 getModuleConfiguration ($moduleName)
 
 getFormProtection ()
 

Protected Attributes

 $bootstrap
 
 $moduleRegistry = array()
 
 $backendUserAuthentication
 
 $request
 

Detailed Description

Handles the request for backend modules and wizards Juggles with $GLOBALS['TBE_MODULES']

Definition at line 34 of file BackendModuleRequestHandler.php.

Constructor & Destructor Documentation

__construct ( Bootstrap  $bootstrap)

Constructor handing over the bootstrap and the original request

Parameters
Bootstrap$bootstrap

Definition at line 62 of file BackendModuleRequestHandler.php.

References BackendModuleRequestHandler\$bootstrap.

Member Function Documentation

boot ( )
protected

Execute TYPO3 bootstrap

Returns
void

Definition at line 108 of file BackendModuleRequestHandler.php.

Referenced by BackendModuleRequestHandler\handleRequest().

callTraditionalModule (   $moduleName)
protected

Calls traditional modules which are identified by having an index.php in their directory and were previously located within the global scope.

Parameters
string$moduleName
Returns
bool Returns TRUE if the module was executed

Definition at line 224 of file BackendModuleRequestHandler.php.

References $GLOBALS, $MCONF, and BackendModuleRequestHandler\getModuleConfiguration().

Referenced by BackendModuleRequestHandler\handleRequest().

canHandleRequest ( ServerRequestInterface  $request)

This request handler can handle any backend request coming from index.php

Parameters
ServerRequestInterface$request
Returns
bool

Definition at line 138 of file BackendModuleRequestHandler.php.

References ServerRequestInterface\getAttribute().

getFormProtection ( )
protected

Wrapper method for static form protection utility

Returns

Definition at line 278 of file BackendModuleRequestHandler.php.

References FormProtectionFactory\get().

Referenced by BackendModuleRequestHandler\isValidModuleRequest().

getModuleConfiguration (   $moduleName)
protected

Returns the module configuration which is provided during module registration

Parameters
string$moduleName
Returns
array
Exceptions
\RuntimeException

Definition at line 254 of file BackendModuleRequestHandler.php.

Referenced by BackendModuleRequestHandler\callTraditionalModule().

getPriority ( )

Returns the priority - how eager the handler is to actually handle the request.

Returns
int The priority of the request handler.

Implements RequestHandlerInterface.

Definition at line 268 of file BackendModuleRequestHandler.php.

handleRequest ( ServerRequestInterface  $request)

Handles the request, evaluating the configuration and executes the module accordingly

Parameters
ServerRequestInterface$request
Returns
NULL|
Exceptions
Exception

Definition at line 74 of file BackendModuleRequestHandler.php.

References $GLOBALS, BackendModuleRequestHandler\$request, BackendModuleRequestHandler\boot(), BackendModuleRequestHandler\callTraditionalModule(), BackendModuleRequestHandler\isDispatchedModule(), and BackendModuleRequestHandler\isValidModuleRequest().

isDispatchedModule (   $moduleName)
protected

A dispatched module is used, when no PATH is given. Traditional modules have a module path set.

Parameters
string$moduleName
Returns
bool

Definition at line 161 of file BackendModuleRequestHandler.php.

Referenced by BackendModuleRequestHandler\handleRequest().

isValidModuleRequest ( )
protected

Checks if all parameters are met.

Returns
bool

Definition at line 148 of file BackendModuleRequestHandler.php.

References BackendModuleRequestHandler\getFormProtection().

Referenced by BackendModuleRequestHandler\handleRequest().

Member Data Documentation

$backendUserAuthentication
protected

Definition at line 49 of file BackendModuleRequestHandler.php.

$bootstrap
protected
$moduleRegistry = array()
protected

Definition at line 44 of file BackendModuleRequestHandler.php.

$request
protected