The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Test::Presenter::QueryTemplate - A submodule for Test::Presenter This module provides methods for opening and inputting both Template and Configuration files. The loaded files are then "merged" to create DBXml queries.

SYNOPSIS

    $report->open_template("/path/to/template/files", "report.tmpl");

    or

    $report->open_template("report");

    $report->open_config("/path/to/config/file", "report.config");
    $report->process();
    $report->query_with_template("doc_name");
    $report->save_query("/path/to/saved/query", "filename.query");
    $report->load_query("/path/to/loaded/query", "filename.query");

DESCRIPTION

Test::Presenter::QueryTemplate is a helper module to give Test::Presenter the ability to query a DBXml Container with the use of preexisting Query Template files and a configured Query Configuration file.

FUNCTIONS

open_template()

    Purpose: Read the Template file into the 'template' variable.
    Input: Template Path, Template Filename
    Output: 1

open_config()

    Purpose: Read the Configuration file into the 'config' variable.
    Input: Configuration Path, Configuration Filename
    Output: 1

process()

    Purpose: Merge the Configuration and Template files to produce
        Query Script.  The Query Script is then stored in the 'queries'
        variable.
    Input: NA
    Output: 1

query_with_template()

    Purpose: Execute the Query Script on the DBXml object. After being
        executed, the results will be pushed into the 'component' object.
    Input: NA
    Output: 1

save_query()

    Purpose: To save the processed query script to a file so that it
        may be used later
    Input: Pathname and Filename
    Output: 1 or undef

load_query()

    Purpose: To load a processed query script from a file
    Input: Pathname and Filename
    Output: 1 or undef