OTRS 5.0 API Reference Perl

Description manuals and libraries
OTRS 5.0 API Reference Perl > Perl Modules > Kernel::Output::HTML::Statistics::View

NAME

Kernel::Output::HTML::Statistics::View - View object for statistics

SYNOPSIS

Provides several functions to generate statistics GUI elements.

PUBLIC INTERFACE

StatsParamsWidget()

generate HTML for statistics run widget.

    my $HTML = $StatsViewObject->StatsParamsWidget(
        StatID => $StatID,

        Formats => {            # optional, limit the available formats
            Print => 'Print',
        }

        OutputCounter => 1,     # optional, counter to append to ElementIDs
                                # This is needed if there is more than one stat on the page.

        AJAX          => 0,     # optional, keep script tags for AJAX responses
    );
StatsConfigurationValidate()
    my $StatCorrectlyConfigured = $StatsViewObject->StatsConfigurationValidate(
        StatData => \%StatData,
        Errors   => \%Errors,   # Hash to be populated with errors, if any
    );
_ColumnAndRowTranslation()

DEPRECATED: This function will be removed in further versions of OTRS. The function do nothing at the moment, because the functionality was moved in the backend module (Stats.pm) and the statistic results will always be translated in the "StatsRun" function.

TERMS AND CONDITIONS

This software is part of the OTRS project (https://otrs.org/).

This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.