‪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)
protected

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.

Returns
‪bool

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 ( )
protected

◆ getConfigurationForTable()

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

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

Parameters
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
Returns
‪array

Definition at line 233 of file SuggestWizardController.php.

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

◆ getTablesToQueryFromFieldConfiguration()

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

◆ getWhereClause()

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

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

Returns
‪string

Definition at line 304 of file SuggestWizardController.php.

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

◆ isTableHidden()

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

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

Returns
‪bool

Definition at line 196 of file SuggestWizardController.php.

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

◆ searchAction()