Bug 22453: Make TestBuilder generates dates taking into account the timezone
[koha.git] / Koha / Illcomment.pm
blob3b69e3d67313e3c4f0500c09609dcdfe5525d303
1 package Koha::Illcomment;
3 # Copyright Magnus Enger Libriotech 2017
5 # This file is part of Koha.
7 # Koha is free software; you can redistribute it and/or modify it under the
8 # terms of the GNU General Public License as published by the Free Software
9 # Foundation; either version 3 of the License, or (at your option) any later
10 # version.
12 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15 # details.
17 # You should have received a copy of the GNU General Public License along with
18 # Koha; if not, write to the Free Software Foundation, Inc., 51 Franklin
19 # Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 use Modern::Perl;
22 use Koha::Database;
23 use base qw(Koha::Object);
25 =head1 NAME
27 Koha::Illcomment - Koha Illcomment Object class
29 =head2 Class methods
31 =head3 patron
33 my $patron = Koha::Illcomment->patron;
35 Return the patron object associated with this comment
37 =cut
39 sub patron {
40 my ( $self ) = @_;
41 return Koha::Patron->_new_from_dbic(
42 scalar $self->_result->borrowernumber
46 =head2 Internal methods
48 =head3 _type
50 my $type = Koha::IllComment->_type;
52 Return this object's type
54 =cut
56 sub _type {
57 return 'Illcomment';
60 =head1 AUTHOR
62 Magnus Enger <magnus@libriotech.no>
64 =cut