Skip to content
Discussion options

You must be logged in to vote

boot.php

Entweder als Klassen-Aufruf

if (rex::isBackend() && rex::getUser() && rex_request('table_name', 'string', '') === 'rex_yf_table_1') {
    rex_extension::register('YFORM_DATA_TABLE_EXPORT', 'Project\Export\Table\Table_1::export');
}

Oder direkt

<?php

rex_extension::register('YFORM_DATA_TABLE_EXPORT', static function (rex_extension_point $ep) {
    /** @var rex_yform_manager_query $query */
    $query = $ep->getSubject();

    $tableNames = [
        'rex_yf_table_1',
        'rex_yf_table_2',
    ];
    $tableName = $query->getTable()->getTableName();

    if (!in_array($tableName, $tableNames)) {
        return $query;
    }

    $ignoreFields = array(
        'created_at',
    …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@tyrant88
Comment options

tyrant88 Nov 14, 2025
Maintainer Author

@tbaddade
Comment options

@tyrant88
Comment options

tyrant88 Nov 14, 2025
Maintainer Author

Answer selected by tyrant88
Comment options

tyrant88
Nov 14, 2025
Maintainer Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants