Description | manuals and libraries |
Kernel::Output::HTML::Statistics::View - View object for statistics
Provides several functions to generate statistics GUI elements.
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
);
my $StatCorrectlyConfigured = $StatsViewObject->StatsConfigurationValidate(
StatData => \%StatData,
Errors => \%Errors, # Hash to be populated with errors, if any
);
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.
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.