Bug 36329: Add missing return codes
[koha.git] / C4 / Stats.pm
1 package C4::Stats;
2
3 # Copyright 2000-2002 Katipo Communications
4 #
5 # This file is part of Koha.
6 #
7 # Koha is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # Koha is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with Koha; if not, see <http://www.gnu.org/licenses>.
19
20 use Modern::Perl;
21
22 use Koha::Statistics;
23
24 our (@ISA, @EXPORT_OK);
25 BEGIN {
26     require Exporter;
27     @ISA    = qw(Exporter);
28     @EXPORT_OK = qw(
29       UpdateStats
30     );
31 }
32
33 =head1 NAME
34
35 C4::Stats - Update Koha statistics (log)
36
37 =head1 SYNOPSIS
38
39     use C4::Stats;
40
41 =head1 DESCRIPTION
42
43 The functions of this module deals with statistics table of Koha database.
44
45 =head1 FUNCTIONS
46
47 =head2 UpdateStats
48
49     C4::Stats::UpdateStats($params);
50
51     This is a (legacy) alias for Koha::Statistic->new($params)->store.
52     Please see Koha::Statistic module.
53
54 =cut
55
56 sub UpdateStats {
57     my $params = shift;
58     Koha::Statistic->new($params)->store;
59 }
60
61 1;
62 __END__
63
64 =head1 AUTHOR
65
66 Koha Development Team <http://koha-community.org/>
67
68 =cut