TYPO3  7.6
Public Member Functions | Protected Member Functions | List of all members
ExtDirectRouter Class Reference

Public Member Functions

 routeAction (ServerRequestInterface $request, ResponseInterface $response)
 

Protected Member Functions

 processRpc ($singleRequest, $namespace)
 

Detailed Description

Ext Direct Router

Definition at line 24 of file ExtDirectRouter.php.

Member Function Documentation

processRpc (   $singleRequest,
  $namespace 
)
protected

Processes an incoming extDirect call by executing the defined method. The configuration array "$GLOBALS['TYPO3_CONF_VARS']['BE']['ExtDirect']" is taken to find the class/method information.

Parameters
\stdClass$singleRequestrequest object from extJS
string$namespacenamespace like TYPO3.Backend
Returns
mixed return value of the called method
Exceptions
\UnexpectedValueExceptionif the remote method couldn't be found

Definition at line 119 of file ExtDirectRouter.php.

References $GLOBALS, and GeneralUtility\getUserObj().

Referenced by ExtDirectRouter\routeAction().

routeAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Dispatches the incoming calls to methods about the ExtDirect API.

Parameters
ServerRequestInterface$request
ResponseInterface$response
Returns
ResponseInterface

Definition at line 33 of file ExtDirectRouter.php.

References $GLOBALS, $response, elseif, MessageInterface\getBody(), ServerRequestInterface\getParsedBody(), ServerRequestInterface\getQueryParams(), GeneralUtility\makeInstance(), and ExtDirectRouter\processRpc().