TYPO3  7.6
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
TableController Class Reference
Inheritance diagram for TableController:
AbstractWizardController AbstractModule

Public Member Functions

 __construct ()
 
 mainAction (ServerRequestInterface $request, ResponseInterface $response)
 
 main ()
 
 printContent ()
 
 tableWizard ()
 
 getTableHTML ($configuration)
 
 changeFunc ()
 
 cfgArray2CfgString ($cfgArr)
 
 cfgString2CfgArray ($configurationCode, $columns)
 

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 AbstractWizardController
 checkEditAccess ($table, $uid)
 
 getBackendUserAuthentication ()
 
 getLanguageService ()
 
 getDocumentTemplate ()
 
 getDatabaseConnection ()
 

Protected Attributes

 $iconFactory
 

Detailed Description

Script Class for rendering the Table Wizard

Definition at line 33 of file TableController.php.

Constructor & Destructor Documentation

__construct ( )

Member Function Documentation

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 606 of file TableController.php.

References TableController\$tableParsing_quote.

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 630 of file TableController.php.

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 477 of file TableController.php.

References TableController\$numNewRows, StringUtility\beginsWith(), MathUtility\canBeInterpretedAsInteger(), and elseif.

getButtons ( )
protected

Create the panel of buttons for submitting the form or otherwise perform operations.

Definition at line 192 of file TableController.php.

References ButtonBar\BUTTON_POSITION_LEFT, AbstractWizardController\getLanguageService(), and Icon\SIZE_SMALL.

Referenced by TableController\main().

getTableHTML (   $configuration)

Creates the HTML for the Table Wizard:

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

Definition at line 362 of file TableController.php.

References TableController\$content, AbstractWizardController\getLanguageService(), and GeneralUtility\quoteJSvalue().

Referenced by TableController\tableWizard().

init ( )
protected

Initialization of the class

Returns
void

Definition at line 124 of file TableController.php.

References GeneralUtility\_GP(), MathUtility\forceIntegerInRange(), and GeneralUtility\getIndpEnv().

Referenced by TableController\__construct().

main ( )

Main function, rendering the table wizard

Returns
void

Definition at line 160 of file TableController.php.

References TableController\getButtons(), AbstractWizardController\getLanguageService(), and TableController\tableWizard().

Referenced by TableController\mainAction().

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 148 of file TableController.php.

References $response, MessageInterface\getBody(), and TableController\main().

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 183 of file TableController.php.

References TableController\$content, and GeneralUtility\logDeprecatedFunction().

tableWizard ( )

Draws the table wizard content

Returns
string HTML content for the form.
Exceptions
\RuntimeException

Definition at line 246 of file TableController.php.

References TableController\$content, AbstractWizardController\checkEditAccess(), BackendUtility\getRecord(), and TableController\getTableHTML().

Referenced by TableController\main().

Member Data Documentation

$colsFieldName = 'cols'

Definition at line 71 of file TableController.php.

$content
$iconFactory
protected

Definition at line 105 of file TableController.php.

$inputStyle = false

Definition at line 47 of file TableController.php.

$numNewRows = 1

Definition at line 63 of file TableController.php.

Referenced by TableController\changeFunc().

$P

Definition at line 78 of file TableController.php.

$TABLECFG

Definition at line 85 of file TableController.php.

$tableParsing_delimiter

Definition at line 100 of file TableController.php.

$tableParsing_quote

Definition at line 93 of file TableController.php.

Referenced by TableController\cfgArray2CfgString().

$xmlStorage = 0

Definition at line 56 of file TableController.php.