TYPO3
7.6
|
Static Public Member Functions | |
static | overrideFieldConf ($fieldConfig, $TSconfig) |
static | getTSconfigForTableRow ($table, $row, $field= '') |
static | getIconHtml ($icon, $alt= '', $title= '') |
static | updateInlineView (&$uc, $tce) |
static | databaseRowCompatibility (array $row) |
Static Protected Member Functions | |
static | getLanguageService () |
static | getDatabaseConnection () |
static | getBackendUserAuthentication () |
Static Protected Attributes | |
static | $allowOverrideMatrix |
This is a static, internal and intermediate helper class for various FormEngine related tasks.
This class was introduced to help disentangling FormEngine and its sub classes. It MUST NOT be used in other extensions and will change or vanish without further notice.
Definition at line 39 of file FormEngineUtility.php.
|
static |
Compatibility layer for methods not in FormEngine scope.
databaseRow was a flat array with single elements in select and group fields as comma separated list. With new data handling in FormEngine, this is now an array of element values. There are however "old" methods that still expect the flat array. This method implodes the array again to fake the old behavior of a database row before it is given to those methods.
array | $row | Incoming array |
Definition at line 217 of file FormEngineUtility.php.
Referenced by FormEngineUtilityTest\databaseRowCompatibilityImplodesSelectArrayWithValuesAtSecondPosition(), FormEngineUtilityTest\databaseRowCompatibilityImplodesSimpleArray(), and FormEngineUtilityTest\databaseRowCompatibilityKeepsSimpleValue().
|
staticprotected |
Definition at line 257 of file FormEngineUtility.php.
References $GLOBALS.
|
staticprotected |
Definition at line 249 of file FormEngineUtility.php.
References $GLOBALS.
|
static |
Renders the $icon, supports a filename for skinImg or sprite-icon-name
string | $icon | The icon passed, could be a file-reference or a sprite Icon name |
string | $alt | Alt attribute of the icon returned |
string | $title | Title attribute of the icon return |
Definition at line 123 of file FormEngineUtility.php.
References StringUtility\beginsWith(), elseif, StringUtility\endsWith(), GeneralUtility\getFileAbsFileName(), GeneralUtility\makeInstance(), GeneralUtility\resolveBackPath(), Icon\SIZE_SMALL, and PathUtility\stripPathSitePrefix().
Referenced by CreatePagesWizardModuleFunctionController\getTypeSelectHtml(), and SelectCheckBoxElement\render().
|
staticprotected |
|
static |
Returns TSconfig for given table and row
string | $table | The table name |
array | $row | The table row - Must at least contain the "uid" value, even if "NEW..." string. The "pid" field is important as well, negative values will be interpreted as pointing to a record from the same table. |
string | $field | Optionally specify the field name as well. In that case the TSconfig for this field is returned. |
Definition at line 98 of file FormEngineUtility.php.
References BackendUtility\getTCEFORM_TSconfig().
Referenced by InlineStackProcessor\initializeByParsingDomObjectIdString().
|
static |
Overrides the TCA field configuration by TSconfig settings.
Example TSconfig: TCEform.
<field>.config.appearance.useSortable = 1 This overrides the setting in $GLOBALS['TCA'][
['columns'][<field>]['config']['appearance']['useSortable'].
array | $fieldConfig | $GLOBALS['TCA'] field configuration |
array | $TSconfig | TSconfig |
Definition at line 67 of file FormEngineUtility.php.
References ArrayUtility\mergeRecursiveWithOverrule(), and GeneralUtility\removeDotsFromTS().
Referenced by InlineStackProcessor\initializeByParsingDomObjectIdString().
|
static |
Update expanded/collapsed states on new inline records if any.
array | $uc | The uc array to be processed and saved (by reference) |
\TYPO3\CMS\Core\DataHandling\DataHandler | $tce | Instance of FormEngine that saved data before |
Definition at line 169 of file FormEngineUtility.php.
|
staticprotected |
Definition at line 47 of file FormEngineUtility.php.