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

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

 $thisScript
 
 $moduleName = 'tools_txdbalM1'
 
 $moduleTemplate
 
- Protected Attributes inherited from BaseScriptClass
 $pageRenderer = null
 

Additional Inherited Members

- Public Attributes inherited from BaseScriptClass
 $MCONF = array()
 
 $id
 
 $CMD
 
 $perms_clause
 
 $MOD_MENU
 
 $MOD_SETTINGS = array()
 
 $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 dbal/Classes/Controller/ModuleController.php.

Member Function Documentation

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 dbal/Classes/Controller/ModuleController.php.

generateMenu ( )
protected

Generate the ModuleMenu

Definition at line 602 of file dbal/Classes/Controller/ModuleController.php.

Referenced by ModuleController\main().

getDatabaseConnection ( )
protected

Returns the DatabaseConnection

Returns
DatabaseConnection

Definition at line 644 of file dbal/Classes/Controller/ModuleController.php.

References $GLOBALS.

getLanguageService ( )
protected

Returns the language service.

Returns

Definition at line 634 of file dbal/Classes/Controller/ModuleController.php.

References $GLOBALS.

Referenced by ModuleController\init(), ModuleController\main(), and ModuleController\menuConfig().

init ( )

Initializes this module.

Returns
void

Definition at line 54 of file dbal/Classes/Controller/ModuleController.php.

References ModuleController\getLanguageService(), and GeneralUtility\makeInstance().

Referenced by ModuleController\mainAction().

main ( )
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 dbal/Classes/Controller/ModuleController.php.

References $GLOBALS, $response, MessageInterface\getBody(), ModuleController\init(), and ModuleController\main().

menuConfig ( )

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

Returns
void

Definition at line 69 of file dbal/Classes/Controller/ModuleController.php.

References ModuleController\getLanguageService().

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 dbal/Classes/Controller/ModuleController.php.

Referenced by ModuleController\main().

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 dbal/Classes/Controller/ModuleController.php.

References $GLOBALS, GeneralUtility\_GP(), BackendUtility\datetime(), and GeneralUtility\linkThisScript().

Referenced by ModuleController\main().

printSqlCheck ( )
protected

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

Returns
string HTML output

Definition at line 150 of file dbal/Classes/Controller/ModuleController.php.

References GeneralUtility\_GP().

Referenced by ModuleController\main().

Member Data Documentation

$moduleName = 'tools_txdbalM1'
protected

Definition at line 40 of file dbal/Classes/Controller/ModuleController.php.

$moduleTemplate
protected

Definition at line 47 of file dbal/Classes/Controller/ModuleController.php.

$thisScript
protected

Definition at line 33 of file dbal/Classes/Controller/ModuleController.php.