Bug 26310: (QA follow-up) koha-conf-site.xml.in tweaks
[koha.git] / Koha / Subscription / Routinglist.pm
blobede95b976a3ad17be7ac7b4270581efcf15399f7
1 package Koha::Subscription::Routinglist;
4 # This file is part of Koha.
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.
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.
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>.
19 use Modern::Perl;
21 use Carp;
23 use Koha::Database;
24 use Koha::Subscriptions;
26 use base qw(Koha::Object);
28 =head1 NAME
30 Koha::Subscription::Routinglist - Koha subscription routing list object class
32 =head1 API
34 =head2 Class methods
36 =cut
38 =head3 subscription
40 my $subscription = $routinglist->subscription
42 Returns the subscription for a routing list.
44 =cut
46 sub subscription {
47 my ( $self ) = @_;
48 return Koha::Subscription->_new_from_dbic($self->_result->subscriptionid);
51 =head2 Internal methods
53 =head3 _type
55 =cut
57 sub _type {
58 return 'Subscriptionroutinglist';
61 =head1 AUTHOR
63 Katrin Fischer <katrin.fischer@bsz-bw.de>
65 =cut