Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.
cruser_id
cruser_id
-
- Path
-
$GLOBALS['TCA'][$table]['ctrl']
- type
-
string (field name)
- Scope
-
Proc.
Field name, which is automatically set to the uid of the backend user (uid of the table
be_
) who originally created the record. It is never modified again.users By convention the name cruser_id is used for that field.
Note
The database field configured in this property is created automatically. It does not have to be added to the
ext_
.tables. sql
Examples
The following fields are set by the DataHandler automatically on creating or
updating records, if they are configured in the ctrl
section of the TCA:
<?php
return [
'ctrl' => [
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'origUid' => 't3_origuid',
// ...
],
];