RT 5.0.7 Documentation

RT::Interface::Web::ReportsRegistry

NAME

    RT::Interface::Web::ReportsRegistry - helper functions for reports

Reports

Returns a list (array ref) of all registered reports. Reports are sorted by title. Every element is a hash ref with the following keys:

id - unique string identifier
title - human-readable title
path - path to the report relative to the root

Register

Registers a report that can be added to the Reports menu.

    use RT::Interface::Web::ReportsRegistry;
    RT::Interface::Web::ReportsRegistry->Register(
        id    => 'my_super_report',
        title => 'Super report',
        path  => 'MySuperReport.html',
    );

All reports are expected to be in the /Reports/ directory.

Note that using existing id will overwrite the record in the registry.

← Back to index