TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Dbal\Controller\ModuleController Class Reference
Inheritance diagram for TYPO3\CMS\Dbal\Controller\ModuleController:
TYPO3\CMS\Backend\Module\BaseScriptClass

Public Member Functions

 init ()
 
 menuConfig ()
 
 main ()
 
 mainAction (ServerRequestInterface $request, ResponseInterface $response)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Module\BaseScriptClass
 init ()
 
 menuConfig ()
 
 mergeExternalItems ($modName, $menuKey, $menuArr)
 
 handleExternalFunctionValue ($MM_key='function', $MS_value=null)
 
 getExternalItemConfig ($modName, $menuKey, $value='')
 
 checkExtObj ()
 
 checkSubExtObj ()
 
 extObjHeader ()
 

Protected Member Functions

 printSqlCheck ()
 
 createFieldsValuesArray ($in)
 
 printCachedInfo ()
 
 printLogMgm ()
 
 generateMenu ()
 
 getLanguageService ()
 
 getDatabaseConnection ()
 
- Protected Member Functions inherited from TYPO3\CMS\Backend\Module\BaseScriptClass
 getLanguageService ()
 
 getBackendUser ()
 
 getDatabaseConnection ()
 
 getPageRenderer ()
 

Protected Attributes

 $thisScript
 
 $moduleName = 'tools_txdbalM1'
 
 $moduleTemplate
 
- Protected Attributes inherited from TYPO3\CMS\Backend\Module\BaseScriptClass
 $pageRenderer = null
 

Additional Inherited Members

- Public Attributes inherited from TYPO3\CMS\Backend\Module\BaseScriptClass
 $MCONF = []
 
 $id
 
 $CMD
 
 $perms_clause
 
 $MOD_MENU
 
 $MOD_SETTINGS = []
 
 $modTSconfig
 
 $modMenu_type = ''
 
 $modMenu_dontValidateList = ''
 
 $modMenu_setDefaultList = ''
 
 $extClassConf
 
 $content = ''
 
 $doc
 
 $extObj
 

Detailed Description

Script class; Backend module for DBAL extension

Definition at line 28 of file ModuleController.php.

Member Function Documentation

◆ createFieldsValuesArray()

TYPO3\CMS\Dbal\Controller\ModuleController::createFieldsValuesArray (   $in)
protected

Parses a very simple text format into an array.

Each line is seen as a key/value pair that is exploded at =. This is used in the simple SQL check to input values for INSERT and UPDATE statements.

Parameters
string$inString to parse into key/value array.
Returns
array Array created from the input string.

Definition at line 302 of file ModuleController.php.

◆ generateMenu()

TYPO3\CMS\Dbal\Controller\ModuleController::generateMenu ( )
protected

Generate the ModuleMenu

Definition at line 602 of file ModuleController.php.

Referenced by TYPO3\CMS\Dbal\Controller\ModuleController\main().

◆ getDatabaseConnection()

TYPO3\CMS\Dbal\Controller\ModuleController::getDatabaseConnection ( )
protected

Returns the DatabaseConnection

Returns
DatabaseConnection

Definition at line 644 of file ModuleController.php.

References $GLOBALS.

◆ getLanguageService()

TYPO3\CMS\Dbal\Controller\ModuleController::getLanguageService ( )
protected

◆ init()

◆ main()

◆ mainAction()

TYPO3\CMS\Dbal\Controller\ModuleController::mainAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Injects the request object for the current request or subrequest As this controller goes only through the main() method, it is rather simple for now

Parameters
ServerRequestInterface$requestthe current request
ResponseInterface$response
Returns
ResponseInterface the response with the content

Definition at line 135 of file ModuleController.php.

References $GLOBALS, TYPO3\CMS\Dbal\Controller\ModuleController\init(), and TYPO3\CMS\Dbal\Controller\ModuleController\main().

◆ menuConfig()

TYPO3\CMS\Dbal\Controller\ModuleController::menuConfig ( )

Adds items to the ->MOD_MENU array. Used for the function menu selector.

Returns
void

Definition at line 69 of file ModuleController.php.

References TYPO3\CMS\Dbal\Controller\ModuleController\getLanguageService().

◆ printCachedInfo()

TYPO3\CMS\Dbal\Controller\ModuleController::printCachedInfo ( )
protected

Prints out the cached information about the database.

The DBAL caches a lot of information, e.g. about auto increment fields, field types and primary keys. This method formats all this into a HTML table to display in the BE.

Returns
string

Definition at line 322 of file ModuleController.php.

Referenced by TYPO3\CMS\Dbal\Controller\ModuleController\main().

◆ printLogMgm()

TYPO3\CMS\Dbal\Controller\ModuleController::printLogMgm ( )
protected

Printing the debug-log from the DBAL extension

To enabled debugging, you will have to enabled it in the configuration!

Returns
string HTML content

Definition at line 410 of file ModuleController.php.

References $a, $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\_GP(), TYPO3\CMS\Backend\Utility\BackendUtility\datetime(), TYPO3\CMS\Core\Utility\GeneralUtility\linkThisScript(), and TYPO3\CMS\Core\Utility\DebugUtility\viewArray().

Referenced by TYPO3\CMS\Dbal\Controller\ModuleController\main().

◆ printSqlCheck()

TYPO3\CMS\Dbal\Controller\ModuleController::printSqlCheck ( )
protected

Displays a form to check DBAL SQL methods and parse raw SQL.

Returns
string HTML output

Definition at line 150 of file ModuleController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\_GP().

Referenced by TYPO3\CMS\Dbal\Controller\ModuleController\main().

Member Data Documentation

◆ $moduleName

TYPO3\CMS\Dbal\Controller\ModuleController::$moduleName = 'tools_txdbalM1'
protected

◆ $moduleTemplate

TYPO3\CMS\Dbal\Controller\ModuleController::$moduleTemplate
protected

Definition at line 47 of file ModuleController.php.

◆ $thisScript

TYPO3\CMS\Dbal\Controller\ModuleController::$thisScript
protected

Definition at line 33 of file ModuleController.php.