3 # This file is part of Koha.
5 # Koha is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # Koha is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with Koha; if not, see <http://www.gnu.org/licenses>.
26 use base
qw(Koha::Object);
30 Koha::Report - Koha Report Object class
38 =head3 get_search_info
46 my $sub_mana_info = { 'query' => shift };
47 return $sub_mana_info;
50 =head3 get_sharable_info
52 Return properties that can be shared.
56 sub get_sharable_info
{
58 my $shared_report_id = shift;
59 my $report = Koha
::Reports
->find($shared_report_id);
61 'savedsql' => $report->savedsql,
62 'report_name' => $report->report_name,
63 'notes' => $report->notes,
64 'report_group' => $report->report_group,
65 'type' => $report->type,
67 return $sub_mana_info;
72 Clear a Mana report to be imported in Koha?
80 $data->{mana_id
} = $data->{id
};
82 delete $data->{exportemail
};
83 delete $data->{kohaversion
};
84 delete $data->{creationdate
};
85 delete $data->{lastimport
};
87 delete $data->{nbofusers
};
88 delete $data->{language
};
90 Koha
::Report
->new($data)->store;
95 Returns name of corresponding DBIC resultset