TYPO3
7.6
|
Public Member Functions | |
addData (array $result) | |
Protected Member Functions | |
setDefaultsFromUserTsConfig (array $result) | |
setDefaultsFromPageTsConfig (array $result) | |
setDefaultsFromNeighborRow (array $result) | |
setDefaultsFromDevVals (array $result) | |
setDefaultsFromInlineRelations (array $result) | |
On "new" command, initialize new database row with default data
Definition at line 23 of file DatabaseRowInitializeNew.php.
addData | ( | array | $result | ) |
Initialize new row with default values from various sources There are 4 sources of default values. Mind the order, the last takes precedence.
array | $result |
\UnexpectedValueException |
Implements FormDataProviderInterface.
Definition at line 33 of file DatabaseRowInitializeNew.php.
References DatabaseRowInitializeNew\setDefaultsFromDevVals(), DatabaseRowInitializeNew\setDefaultsFromInlineRelations(), DatabaseRowInitializeNew\setDefaultsFromNeighborRow(), DatabaseRowInitializeNew\setDefaultsFromPageTsConfig(), and DatabaseRowInitializeNew\setDefaultsFromUserTsConfig().
|
protected |
Apply default values from GET / POST
: Fetch this stuff from request object as soon as modules were moved to PSR-7,
: or hand values over via $result array, so the _GP access is transferred to
: controllers concern.
array | $result | Result array |
Definition at line 136 of file DatabaseRowInitializeNew.php.
References GeneralUtility\_GP().
Referenced by DatabaseRowInitializeNew\addData().
|
protected |
Inline scenario if a new intermediate record to an existing child-child is compiled. Set "foreign_selector" field of this intermediate row to given "childChildUid". See TcaDataCompiler array comment of inlineChildChildUid for more details.
array | $result | Result array |
\UnexpectedValueException |
Definition at line 162 of file DatabaseRowInitializeNew.php.
Referenced by DatabaseRowInitializeNew\addData().
|
protected |
If a neighbor row is given (if vanillaUid was negative), field can be initialized with values from neighbor for fields registered in TCA['ctrl']['useColumnsForDefaultValues'].
array | $result | Result array |
Definition at line 109 of file DatabaseRowInitializeNew.php.
References GeneralUtility\trimExplode().
Referenced by DatabaseRowInitializeNew\addData().
|
protected |
Set defaults defined by page ts "TCAdefaults"
array | $result | Result array |
Definition at line 87 of file DatabaseRowInitializeNew.php.
Referenced by DatabaseRowInitializeNew\addData().
|
protected |
Set defaults defined by user ts "TCAdefaults"
array | $result | Result array |
Definition at line 65 of file DatabaseRowInitializeNew.php.
Referenced by DatabaseRowInitializeNew\addData().