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
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
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.
23 use base
qw(Koha::Object);
27 Koha::Illcomment - Koha Illcomment Object class
33 my $patron = Koha::Illcomment->patron;
35 Return the patron object associated with this comment
41 return Koha
::Patron
->_new_from_dbic(
42 scalar $self->_result->borrowernumber
46 =head2 Internal methods
50 my $type = Koha::IllComment->_type;
52 Return this object's type
62 Magnus Enger <magnus@libriotech.no>