
####
View
####


****
NAME
****


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


***********
DESCRIPTION
***********


Provides several functions to generate statistics GUI elements.


****************
PUBLIC INTERFACE
****************


StatsParamsWidget()
===================


generate HTML for statistics run widget.


.. code-block:: perl

     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()
============================



.. code-block:: perl

     my $StatCorrectlyConfigured = $StatsViewObject->StatsConfigurationValidate(
         StatData => \%StatData,
         Errors   => \%Errors,   # Hash to be populated with errors, if any
     );





