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

Public Member Functions

ResponseInterface 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)
 
TYPO3 CMS Core Authentication BackendUserAuthentication 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 34 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.

Parameters
array$tableConfig
Returns
‪bool

Definition at line 208 of file SuggestWizardController.php.

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

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

◆ getBackendUser()

TYPO3 CMS Core Authentication BackendUserAuthentication TYPO3\CMS\Backend\Controller\Wizard\SuggestWizardController::getBackendUser ( )
protected
Returns
‪\TYPO3\CMS\Core\Authentication\BackendUserAuthentication

Definition at line 320 of file SuggestWizardController.php.

References $GLOBALS.

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

◆ 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 234 of file SuggestWizardController.php.

References TYPO3\CMS\Core\Utility\ArrayUtility\mergeRecursiveWithOverrule().

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

◆ getTablesToQueryFromFieldConfiguration()

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

Checks the given field configuration for the tables that should be used for querying and returns them as an array.

Parameters
array$fieldConfig
Returns
‪array

Definition at line 274 of file SuggestWizardController.php.

References $GLOBALS, TYPO3\CMS\Backend\Controller\Wizard\SuggestWizardController\currentBackendUserMayAccessTable(), TYPO3\CMS\Backend\Controller\Wizard\SuggestWizardController\isTableHidden(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

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

◆ 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

Parameters
array$fieldConfig
Returns
‪string

Definition at line 307 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

Parameters
array$tableConfig
Returns
‪bool

Definition at line 196 of file SuggestWizardController.php.

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

◆ searchAction()