TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Controller\Wizard\TableController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\Wizard\TableController:
TYPO3\CMS\Backend\Controller\Wizard\AbstractWizardController TYPO3\CMS\Backend\Module\AbstractModule

Public Member Functions

 __construct ()
 
 mainAction (ServerRequestInterface $request, ResponseInterface $response)
 
 main ()
 
 printContent ()
 
 tableWizard ()
 
 getTableHTML ($configuration)
 
 changeFunc ()
 
 cfgArray2CfgString ($cfgArr)
 
 cfgString2CfgArray ($configurationCode, $columns)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Module\AbstractModule
 __construct ()
 
 processRequest (ServerRequestInterface $request, ResponseInterface $response)
 

Public Attributes

 $content
 
 $inputStyle = false
 
 $xmlStorage = 0
 
 $numNewRows = 1
 
 $colsFieldName = 'cols'
 
 $P
 
 $TABLECFG
 
 $tableParsing_quote
 
 $tableParsing_delimiter
 

Protected Member Functions

 init ()
 
 getButtons ()
 
- Protected Member Functions inherited from TYPO3\CMS\Backend\Controller\Wizard\AbstractWizardController
 checkEditAccess ($table, $uid)
 
 getBackendUserAuthentication ()
 
 getLanguageService ()
 
 getDocumentTemplate ()
 
 getDatabaseConnection ()
 

Protected Attributes

 $iconFactory
 
- Protected Attributes inherited from TYPO3\CMS\Backend\Module\AbstractModule
 $moduleTemplate
 
 $request
 

Detailed Description

Script Class for rendering the Table Wizard

Definition at line 33 of file TableController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\Wizard\TableController::__construct ( )

Member Function Documentation

◆ cfgArray2CfgString()

TYPO3\CMS\Backend\Controller\Wizard\TableController::cfgArray2CfgString (   $cfgArr)

Converts the input array to a configuration code string

Parameters
array$cfgArrArray of table configuration (follows the input structure from the table wizard POST form)
Returns
string The array converted into a string with line-based configuration.
See also
cfgString2CfgArray()

Definition at line 605 of file TableController.php.

References TYPO3\CMS\Backend\Controller\Wizard\TableController\$tableParsing_quote.

Referenced by TYPO3\CMS\Backend\Controller\Wizard\TableController\tableWizard().

◆ cfgString2CfgArray()

TYPO3\CMS\Backend\Controller\Wizard\TableController::cfgString2CfgArray (   $configurationCode,
  $columns 
)

Converts the input configuration code string into an array

Parameters
string$configurationCodeConfiguration code
int$columnsDefault number of columns
Returns
array Configuration array
See also
cfgArray2CfgString()

Definition at line 629 of file TableController.php.

References $a.

Referenced by TYPO3\CMS\Backend\Controller\Wizard\TableController\tableWizard().

◆ changeFunc()

TYPO3\CMS\Backend\Controller\Wizard\TableController::changeFunc ( )

Detects if a control button (up/down/around/delete) has been pressed for an item and accordingly it will manipulate the internal TABLECFG array

Returns
void

Definition at line 476 of file TableController.php.

References $a, TYPO3\CMS\Backend\Controller\Wizard\TableController\$numNewRows, TYPO3\CMS\Core\Utility\StringUtility\beginsWith(), and TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger().

Referenced by TYPO3\CMS\Backend\Controller\Wizard\TableController\tableWizard().

◆ getButtons()

TYPO3\CMS\Backend\Controller\Wizard\TableController::getButtons ( )
protected

◆ getTableHTML()

TYPO3\CMS\Backend\Controller\Wizard\TableController::getTableHTML (   $configuration)

Creates the HTML for the Table Wizard:

Parameters
array$configurationTable config array
Returns
string HTML for the table wizard

Definition at line 361 of file TableController.php.

References $a, TYPO3\CMS\Backend\Controller\Wizard\TableController\$content, TYPO3\CMS\Backend\Controller\Wizard\AbstractWizardController\getLanguageService(), and TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue().

Referenced by TYPO3\CMS\Backend\Controller\Wizard\TableController\tableWizard().

◆ init()

TYPO3\CMS\Backend\Controller\Wizard\TableController::init ( )
protected

◆ main()

◆ mainAction()

TYPO3\CMS\Backend\Controller\Wizard\TableController::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$request
ResponseInterface$response
Returns
ResponseInterface

Definition at line 146 of file TableController.php.

References TYPO3\CMS\Backend\Controller\Wizard\TableController\main().

◆ printContent()

TYPO3\CMS\Backend\Controller\Wizard\TableController::printContent ( )

Outputting the accumulated content to screen

Returns
void
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8, use mainAction() instead

Definition at line 182 of file TableController.php.

References TYPO3\CMS\Backend\Controller\Wizard\TableController\$content, and TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction().

◆ tableWizard()

Member Data Documentation

◆ $colsFieldName

TYPO3\CMS\Backend\Controller\Wizard\TableController::$colsFieldName = 'cols'

Definition at line 71 of file TableController.php.

◆ $content

◆ $iconFactory

TYPO3\CMS\Backend\Controller\Wizard\TableController::$iconFactory
protected

Definition at line 105 of file TableController.php.

◆ $inputStyle

TYPO3\CMS\Backend\Controller\Wizard\TableController::$inputStyle = false

Definition at line 47 of file TableController.php.

◆ $numNewRows

TYPO3\CMS\Backend\Controller\Wizard\TableController::$numNewRows = 1

◆ $P

TYPO3\CMS\Backend\Controller\Wizard\TableController::$P

Definition at line 78 of file TableController.php.

◆ $TABLECFG

TYPO3\CMS\Backend\Controller\Wizard\TableController::$TABLECFG

Definition at line 85 of file TableController.php.

◆ $tableParsing_delimiter

TYPO3\CMS\Backend\Controller\Wizard\TableController::$tableParsing_delimiter

Definition at line 100 of file TableController.php.

◆ $tableParsing_quote

TYPO3\CMS\Backend\Controller\Wizard\TableController::$tableParsing_quote

◆ $xmlStorage

TYPO3\CMS\Backend\Controller\Wizard\TableController::$xmlStorage = 0

Definition at line 56 of file TableController.php.