Bug 28386: Update contributors using script
[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
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # Koha is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with Koha; if not, see <http://www.gnu.org/licenses>.
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;