TYPO3
7.6
|
Public Member Functions | |
addData (array $result) | |
Protected Member Functions | |
getPlaceholderValue ($fieldNameArray, $result, $recursionLevel=0) | |
getRelatedGroupFieldUids (array $fieldConfig, $value) | |
getAllowedTableForGroupField (array $fieldConfig) | |
getLanguageService () | |
Resolve placeholders for fields of type input or text. The placeholder value in the processedTca section of the result will be replaced with the resolved value.
Definition at line 30 of file TcaInputPlaceholders.php.
addData | ( | array | $result | ) |
Resolve placeholders for input/text fields. Placeholders that are simple strings will be returned unmodified. Placeholders beginning with __row are being resolved, possibly traversing multiple tables.
array | $result |
Implements FormDataProviderInterface.
Definition at line 40 of file TcaInputPlaceholders.php.
References StringUtility\beginsWith(), TcaInputPlaceholders\getLanguageService(), TcaInputPlaceholders\getPlaceholderValue(), and GeneralUtility\trimExplode().
|
protected |
Will read the "allowed" value from the given field configuration and returns FALSE if none or more than one has been defined. Otherwise the name of the allowed table will be returned.
array | $fieldConfig | TCA "config" section for the group type field. |
Definition at line 201 of file TcaInputPlaceholders.php.
References GeneralUtility\trimExplode().
Referenced by TcaInputPlaceholders\getPlaceholderValue(), and TcaInputPlaceholders\getRelatedGroupFieldUids().
|
protected |
Definition at line 216 of file TcaInputPlaceholders.php.
References $GLOBALS.
Referenced by TcaInputPlaceholders\addData().
|
protected |
Recursively resolve the placeholder value. A placeholder string with a syntax of __row|field1|field2|field3 will be recursively resolved to a final value.
array | $fieldNameArray | |
array | $result | |
int | $recursionLevel |
Definition at line 85 of file TcaInputPlaceholders.php.
References TcaInputPlaceholders\getAllowedTableForGroupField(), TcaInputPlaceholders\getRelatedGroupFieldUids(), and GeneralUtility\trimExplode().
Referenced by TcaInputPlaceholders\addData().
|
protected |
Return uids of related records for group type fields. Uids consisting of multiple parts like [table]_[uid]|[title] will be reduced to integers and validated against the allowed table. Uids without a table prefix are accepted in any case.
array | $fieldConfig | TCA "config" section for the group type field. |
string | $value | A comma separated list of records |
Definition at line 169 of file TcaInputPlaceholders.php.
References TcaInputPlaceholders\getAllowedTableForGroupField(), BackendUtility\splitTable_Uid(), and GeneralUtility\trimExplode().
Referenced by TcaInputPlaceholders\getPlaceholderValue().