Bug 23192: Correct tab input on waiting_holds.inc
[koha.git] / Koha / Subscription / Routinglist.pm
1 package Koha::Subscription::Routinglist;
2
3 #
4 # This file is part of Koha.
5 #
6 # Koha is free software; you can redistribute it and/or modify it under the
7 # terms of the GNU General Public License as published by the Free Software
8 # Foundation; either version 3 of the License, or (at your option) any later
9 # version.
10 #
11 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
12 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License along
16 # with Koha; if not, write to the Free Software Foundation, Inc.,
17 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
19 use Modern::Perl;
20
21 use Carp;
22
23 use Koha::Database;
24 use Koha::Subscriptions;
25
26 use base qw(Koha::Object);
27
28 =head1 NAME
29
30 Koha::Subscription::Routinglist - Koha subscription routing list object class
31
32 =head1 API
33
34 =head2 Class methods
35
36 =cut
37
38 =head3 subscription
39
40 my $subscription = $routinglist->subscription
41
42 Returns the subscription for a routing list.
43
44 =cut
45
46 sub subscription {
47     my ( $self ) = @_;
48     return Koha::Subscription->_new_from_dbic($self->_result->subscriptionid);
49 }
50
51 =head2 Internal methods
52
53 =head3 _type
54
55 =cut
56
57 sub _type {
58     return 'Subscriptionroutinglist';
59 }
60
61 =head1 AUTHOR
62
63 Katrin Fischer <katrin.fischer@bsz-bw.de>
64
65 =cut
66
67 1;