‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Controller\Wizard\SuggestWizardController Class Reference

Public Member Functions

 __construct (private readonly FlexFormTools $flexFormTools,)
 searchAction (ServerRequestInterface $request)

Protected Member Functions

bool isTableHidden (array $tableConfig)
bool currentBackendUserMayAccessTable (array $tableConfig)
array getConfigurationForTable ($queryTable, array $wizardConfig, array $TSconfig, $table, $field)
array getTablesToQueryFromFieldConfiguration (array $fieldConfig)
string getWhereClause (array $fieldConfig)
 getBackendUser ()

Detailed Description

Receives ajax request from FormEngine suggest wizard and creates suggest answer as json result

This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 38 of file SuggestWizardController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\Wizard\SuggestWizardController::__construct ( private readonly FlexFormTools  $flexFormTools)

Definition at line 40 of file SuggestWizardController.php.

Member Function Documentation

◆ currentBackendUserMayAccessTable()

bool TYPO3\CMS\Backend\Controller\Wizard\SuggestWizardController::currentBackendUserMayAccessTable ( array  $tableConfig)

Checks if the current backend user is allowed to access the given table, based on the ctrl-section of the table's configuration array (TCA) entry.


Definition at line 207 of file SuggestWizardController.php.

References TYPO3\CMS\Backend\Controller\Wizard\SuggestWizardController\getBackendUser().

Referenced by TYPO3\CMS\Backend\Controller\Wizard\SuggestWizardController\getTablesToQueryFromFieldConfiguration().

◆ getBackendUser()

TYPO3\CMS\Backend\Controller\Wizard\SuggestWizardController::getBackendUser ( )

◆ getConfigurationForTable()

array TYPO3\CMS\Backend\Controller\Wizard\SuggestWizardController::getConfigurationForTable (   $queryTable,
array  $wizardConfig,
array  $TSconfig,

Returns the configuration for the suggest wizard for the given table. This does multiple overlays from the TSconfig.

string$queryTable‪The table to query
array$wizardConfig‪The configuration for the wizard as configured in the data structure
array$TSconfig‪The TSconfig array of the current page
string$table‪The table where the wizard is used
string$field‪The field where the wizard is used

Definition at line 234 of file SuggestWizardController.php.

Referenced by TYPO3\CMS\Backend\Controller\Wizard\SuggestWizardController\searchAction().

◆ getTablesToQueryFromFieldConfiguration()

array TYPO3\CMS\Backend\Controller\Wizard\SuggestWizardController::getTablesToQueryFromFieldConfiguration ( array  $fieldConfig)

◆ getWhereClause()

string TYPO3\CMS\Backend\Controller\Wizard\SuggestWizardController::getWhereClause ( array  $fieldConfig)

Returns the SQL WHERE clause to use for querying records. This is currently only relevant if a foreign_table is configured and should be used; it could e.g. be used to limit to a certain subset of records from the foreign table


Definition at line 305 of file SuggestWizardController.php.

Referenced by TYPO3\CMS\Backend\Controller\Wizard\SuggestWizardController\searchAction().

◆ isTableHidden()

bool TYPO3\CMS\Backend\Controller\Wizard\SuggestWizardController::isTableHidden ( array  $tableConfig)

Returns TRUE if a table has been marked as hidden in the configuration


Definition at line 196 of file SuggestWizardController.php.

Referenced by TYPO3\CMS\Backend\Controller\Wizard\SuggestWizardController\getTablesToQueryFromFieldConfiguration().

◆ searchAction()