<<

NAME

Koha::Report - Koha Report Object class

API

Class Methods

is_sql_valid

my ( $is_sql_valid, $errors ) = $report->is_sql_valid;

$errors is a arrayref of hashrefs, keys can be sqlerr or queryerr.

Validate SQL query string so it only contains a select, not any of the harmful queries.

check_columns

    $self->check_columns('SELECT password from borrowers');
    $self->check_columns( undef, [qw(password token)] );

    Check if passed sql statement or column_names arrayref contains
    forbidden column names (credentials etc.).
    Returns all bad column names or empty list.

get_search_info

Return search info

get_sharable_info

Return properties that can be shared.

new_from_mana

Clear a Mana report to be imported in Koha?

prep_report

Prep the report and return executable sql with parameters embedded and a list of header types for building batch action links in the template

_might_add_limit

    $sql = $self->_might_add_limit($sql);

Depending on pref ReportsExportLimit. If there is a limit defined and the report does not contain a limit already, this routine adds a LIMIT to $sql.

_type

Returns name of corresponding DBIC resultset

<<