tstamp

tstamp
Type
string (field name)
Path
$GLOBALS['TCA'][$table]['ctrl']
Scope
Proc.

Field name, which is automatically updated to the current timestamp (UNIX-time in seconds) each time the record is updated/saved in the system.

By convention the name tstamp is used for that field.

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:

EXT:my_extension/Configuration/TCA/tx_myextension_domain_model_mytable.php
<?php

return [
    'ctrl' => [
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
        'origUid' => 't3_origuid',
        // ...
    ],
];
Copied!