TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\Controller\Wizard\TableController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\Wizard\TableController:
SC_wizard_table

Public Member Functions

 __construct ()
 
 main ()
 
 printContent ()
 
 tableWizard ()
 
 getConfigCode ($row)
 
 getTableHTML ($cfgArr, $row)
 
 changeFunc ()
 
 cfgArray2CfgString ($cfgArr)
 
 cfgString2CfgArray ($cfgStr, $cols)
 

Public Attributes

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

Protected Member Functions

 init ()
 
 getButtons ()
 
 checkEditAccess ($table, $uid)
 

Detailed Description

Script Class for rendering the Table Wizard

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 27 of file TableController.php.

Constructor & Destructor Documentation

◆ __construct()

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

Constructor

Definition at line 101 of file TableController.php.

References $GLOBALS, and TYPO3\CMS\Backend\Controller\Wizard\TableController\init().

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()
Todo:
Define visibility

Definition at line 533 of file TableController.php.

◆ cfgString2CfgArray()

TYPO3\CMS\Backend\Controller\Wizard\TableController::cfgString2CfgArray (   $cfgStr,
  $cols 
)

Converts the input configuration code string into an array

Parameters
string$cfgStrConfiguration code
integer$colsDefault number of columns
Returns
array Configuration array
See also
cfgArray2CfgString()
Todo:
Define visibility

Definition at line 559 of file TableController.php.

◆ 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 private
Todo:
Define visibility

Definition at line 411 of file TableController.php.

◆ checkEditAccess()

TYPO3\CMS\Backend\Controller\Wizard\TableController::checkEditAccess (   $table,
  $uid 
)
protected

Checks access for element

Parameters
string$tableTable name
integer$uidRecord uid
Returns
boolean
Todo:
: Refactor to remove duplicate code (see FormsController, RteController)

Definition at line 593 of file TableController.php.

◆ getButtons()

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

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

Returns
array All available buttons as an assoc. array

Definition at line 170 of file TableController.php.

References $GLOBALS, TYPO3\CMS\Backend\Utility\BackendUtility\cshItem(), and TYPO3\CMS\Core\Utility\GeneralUtility\sanitizeLocalUrl().

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

◆ getConfigCode()

TYPO3\CMS\Backend\Controller\Wizard\TableController::getConfigCode (   $row)

Will get and return the configuration code string Will also save (and possibly redirect/exit) the content if a save button has been pressed

Parameters
array$rowCurrent parent record row
Returns
array Table config code in an array private
Todo:
Define visibility

Definition at line 234 of file TableController.php.

◆ getTableHTML()

TYPO3\CMS\Backend\Controller\Wizard\TableController::getTableHTML (   $cfgArr,
  $row 
)

Creates the HTML for the Table Wizard:

Parameters
array$cfgArrTable config array
array$rowCurrent parent record array
Returns
string HTML for the table wizard private
Todo:
Define visibility

Definition at line 295 of file TableController.php.

◆ init()

◆ main()

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

◆ printContent()

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

Outputting the accumulated content to screen

Returns
void
Todo:
Define visibility

Definition at line 161 of file TableController.php.

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

◆ tableWizard()

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

Draws the table wizard content

Returns
string HTML content for the form.
Todo:
Define visibility

Definition at line 202 of file TableController.php.

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

Member Data Documentation

◆ $colsFieldName

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

Definition at line 70 of file TableController.php.

◆ $content

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

◆ $doc

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

Definition at line 36 of file TableController.php.

◆ $inputStyle

TYPO3\CMS\Backend\Controller\Wizard\TableController::$inputStyle = 0
Todo:
Define visibility

Definition at line 48 of file TableController.php.

◆ $numNewRows

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

Definition at line 63 of file TableController.php.

◆ $P

TYPO3\CMS\Backend\Controller\Wizard\TableController::$P
Todo:
Define visibility

Definition at line 77 of file TableController.php.

◆ $TABLECFG

TYPO3\CMS\Backend\Controller\Wizard\TableController::$TABLECFG
Todo:
Define visibility

Definition at line 83 of file TableController.php.

◆ $tableParsing_delimiter

TYPO3\CMS\Backend\Controller\Wizard\TableController::$tableParsing_delimiter
Todo:
Define visibility

Definition at line 96 of file TableController.php.

◆ $tableParsing_quote

TYPO3\CMS\Backend\Controller\Wizard\TableController::$tableParsing_quote
Todo:
Define visibility

Definition at line 90 of file TableController.php.

◆ $xmlStorage

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

Definition at line 57 of file TableController.php.