NAME

App::MonM::Report - The MonM report manager

VERSION

Version 1.00

SYNOPSIS

use App::MonM::Report;

my $report = App::MonM::Report->new(
    name => "my report",
    configfile => $ctk->configfile
);

$report->title("My title");
$report->abstract("My lead");
$report->common(
    ["Field 1", "Foo"],
    ["Field 2", "Bar"],
);
$report->summary("All right!");
$report->errors("My error #1", "My error #2");
$report->footer($ctk->tms());

print $report->as_string;

DESCRIPTION

This is an extension for working with the monm reports

new

my $report = App::MonM::Report->new(
    name => "my report",
    configfile => $ctk->configfile
);

Create new report

abstract

$report->abstract("Paragraph 1", "Paragraph 2");

Sets the abstract part of report

as_string

print $report->as_string;

Returns report as string

clean

$report->clean;

Cleans the report

common

$report->common(
    ["Field 1", "Foo"],
    ["Field 2", "Bar"],
);

Sets the common part of report

errors

$report->errors("My error #1", "My error #2");

Sets the errors part of report

$report->footer();
$report->footer($ctk->tms());

Sets the footer of report

report_build

Internal method for building report

summary

$report->summary("Hi!", "All right!");

Sets the summary part of report

title

$report->title("My title");

Sets the title of report

HISTORY

See Changes file

TO DO

See TODO file

AUTHOR

Serż Minus (Sergey Lepenkov) https://www.serzik.com <abalama@cpan.org>

COPYRIGHT

Copyright (C) 1998-2022 D&D Corporation. All Rights Reserved

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See LICENSE file and https://dev.perl.org/licenses/