TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\ExtDirect\ExtDirectRouter Class Reference
Inheritance diagram for TYPO3\CMS\Core\ExtDirect\ExtDirectRouter:
t3lib_extjs_ExtDirectRouter

Public Member Functions

 route ($ajaxParams, \TYPO3\CMS\Core\Http\AjaxRequestHandler $ajaxObj)
 

Protected Member Functions

 processRpc ($singleRequest, $namespace)
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Ext Direct Router

Author
Sebastian Kurfürst sebas.nosp@m.tian.nosp@m.@typo.nosp@m.3.or.nosp@m.g
Stefan Galinski stefa.nosp@m.n.ga.nosp@m.linsk.nosp@m.i@gm.nosp@m.ail.c.nosp@m.om

Definition at line 22 of file ExtDirectRouter.php.

Member Function Documentation

◆ processRpc()

TYPO3\CMS\Core\ExtDirect\ExtDirectRouter::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
object$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 116 of file ExtDirectRouter.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\getUserObj().

Referenced by TYPO3\CMS\Core\ExtDirect\ExtDirectRouter\route().

◆ route()

TYPO3\CMS\Core\ExtDirect\ExtDirectRouter::route (   $ajaxParams,
\TYPO3\CMS\Core\Http\AjaxRequestHandler  $ajaxObj 
)

Dispatches the incoming calls to methods about the ExtDirect API.

Parameters
aray$ajaxParamsAjax parameters
\TYPO3\CMS\Core\Http\AjaxRequestHandler$ajaxObjAjax object
Returns
void

Definition at line 31 of file ExtDirectRouter.php.

References $formprotection, $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\_GET(), TYPO3\CMS\Core\Utility\GeneralUtility\_POST(), TYPO3\CMS\Core\FormProtection\FormProtectionFactory\get(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Core\ExtDirect\ExtDirectRouter\processRpc().