![]() |
TYPO3
7.6
|
Public Member Functions | |
searchAction (ServerRequestInterface $request, ResponseInterface $response) | |
Protected Member Functions | |
getNestedDsFieldConfig (array $dataStructure, $fieldName) | |
isTableHidden (array $tableConfig) | |
currentBackendUserMayAccessTable (array $tableConfig) | |
overrideFieldNameAndConfigurationForFlexform ($table, &$field, array $row, &$fieldConfig) | |
getConfigurationForTable ($queryTable, array $wizardConfig, array $TSconfig, $table, $field) | |
createListItemsFromResultRow (array $resultRows, $maxItems) | |
getTablesToQueryFromFieldConfiguration (array $fieldConfig) | |
getWhereClause (array $fieldConfig) | |
getLanguageService () | |
Wizard for rendering an AJAX selector for records
Definition at line 30 of file SuggestWizard.php.
|
protected |
Creates a list of elements from a list of results returned by the receiver.
array | $resultRows | |
int | $maxItems | |
string | $rowIdSuffix |
Definition at line 361 of file SuggestWizard.php.
Referenced by SuggestWizard\searchAction().
|
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.
array | $tableConfig |
Definition at line 249 of file SuggestWizard.php.
References $GLOBALS.
Referenced by SuggestWizard\getTablesToQueryFromFieldConfiguration().
|
protected |
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 320 of file SuggestWizard.php.
References ArrayUtility\mergeRecursiveWithOverrule().
Referenced by SuggestWizard\searchAction().
|
protected |
|
protected |
Search a data structure array recursively – including within nested (repeating) elements – for a particular field config.
array | $dataStructure | The data structure |
string | $fieldName | The field name |
Definition at line 109 of file SuggestWizard.php.
References elseif.
Referenced by SuggestWizard\overrideFieldNameAndConfigurationForFlexform().
|
protected |
Checks the given field configuration for the tables that should be used for querying and returns them as an array.
array | $fieldConfig |
Definition at line 390 of file SuggestWizard.php.
References $GLOBALS, SuggestWizard\currentBackendUserMayAccessTable(), elseif, SuggestWizard\isTableHidden(), and GeneralUtility\trimExplode().
Referenced by SuggestWizard\searchAction().
|
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
array | $fieldConfig |
Definition at line 423 of file SuggestWizard.php.
Referenced by SuggestWizard\searchAction().
|
protected |
Returns TRUE if a table has been marked as hidden in the configuration
array | $tableConfig |
Definition at line 237 of file SuggestWizard.php.
Referenced by SuggestWizard\getTablesToQueryFromFieldConfiguration().
|
protected |
Checks if the query comes from a Flexform element and if yes, resolves the field configuration from the Flexform data structure.
string | $table | |
string | &$field | The field identifier, either a simple table field or a Flexform field path separated with | |
array | $row | The row we're dealing with; optional (only required for Flexform records) |
array | NULL | &$fieldConfig |
Definition at line 273 of file SuggestWizard.php.
References $GLOBALS, BackendUtility\getFlexFormDS(), SuggestWizard\getNestedDsFieldConfig(), and GeneralUtility\resolveAllSheetsInDS().
Referenced by SuggestWizard\searchAction().
searchAction | ( | ServerRequestInterface | $request, |
ResponseInterface | $response | ||
) |
Ajax handler for the "suggest" feature in FormEngine.
ServerRequestInterface | $request | |
ResponseInterface | $response |
Definition at line 136 of file SuggestWizard.php.
References $GLOBALS, $response, SuggestWizard\createListItemsFromResultRow(), MessageInterface\getBody(), SuggestWizard\getConfigurationForTable(), BackendUtility\getPagesTSconfig(), ServerRequestInterface\getParsedBody(), ServerRequestInterface\getQueryParams(), BackendUtility\getRecord(), SuggestWizard\getTablesToQueryFromFieldConfiguration(), SuggestWizard\getWhereClause(), GeneralUtility\makeInstance(), and SuggestWizard\overrideFieldNameAndConfigurationForFlexform().