Base#

SYNOPSIS#

Base class for dashboard.

PUBLIC INTERFACE#

Preferences()#

Returns module preferences.

my @Params = $Object->Preferences();

Returns:

my @Params = (
    {
        Desc  => Translatable('Shown'),
        Name  => $Self->{PrefKeyShown},
        Block => 'Option',
        Data  => {
            5  => ' 5',
            10 => '10',
            15 => '15',
            20 => '20',
            25 => '25',
        },
        SelectedID  => $Self->{PageShown},
        Translation => 0,
    },
    {
        Desc  => Translatable('Refresh (minutes)'),
        Name  => $Self->{PrefKeyRefresh},
        Block => 'Option',
        Data  => {
            0  => Translatable('off'),
            1  => '1',
            2  => '2',
            5  => '5',
            7  => '7',
            10 => '10',
            15 => '15',
        },
        SelectedID  => $Self->{PageRefresh},
        Translation => 1,
    },
);

Config()#

Returns module config.

my %Config = $Object->Config();

Returns:

my %Config = (
    %{ $Self->{Config} },
    CacheKey => undef,
    CacheTTL => undef,
);

Run()#

Returns content of dashboard (HTML).

my $Content = $Object->Run();

Returns:

my $Content = 'HTML';