package C4::Serials::Frequency;
-# Copyright 2000-2002 Biblibre SARL
+# Copyright 2011-2013 Biblibre SARL
#
# This file is part of Koha.
#
-# Koha is free software; you can redistribute it and/or modify it under the
-# terms of the GNU General Public License as published by the Free Software
-# Foundation; either version 2 of the License, or (at your option) any later
-# version.
+# Koha is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
#
-# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
-# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
-# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+# Koha is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# You should have received a copy of the GNU General Public License along
-# with Koha; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+# You should have received a copy of the GNU General Public License
+# along with Koha; if not, see <http://www.gnu.org/licenses>.
use strict;
use warnings;
);
}
-=head3 GetSubscriptionFrequencies
+
+=head1 NAME
+
+C4::Serials::Frequency - Serials Frequency module
+
+=head1 FUNCTIONS
+
+=head2 GetSubscriptionFrequencies
=over 4
return @$results;
}
-=head3 GetSubscriptionFrequency
+=head2 GetSubscriptionFrequency
=over 4
return $sth->fetchrow_hashref;
}
-=head3 AddSubscriptionFrequency
+=head2 AddSubscriptionFrequency
=over 4
my $frequency = shift;
unless(ref($frequency) eq 'HASH' && defined $frequency->{'description'} && $frequency->{'description'} ne '') {
- return undef;
+ return;
}
my @keys;
return $rv;
}
-=head3 ModSubscriptionFrequency
+=head2 ModSubscriptionFrequency
=over 4
|| !defined $frequency->{'description'}
)
) {
- return undef;
+ return;
}
my @keys;
return $sth->execute(@values, $frequency->{'id'});
}
-=head3 DelSubscriptionFrequency
+=head2 DelSubscriptionFrequency
=over 4
$sth->execute($frequencyid);
}
-=head3 GetSubscriptionsWithFrequency
+=head2 GetSubscriptionsWithFrequency
my @subs = GetSubscriptionsWithFrequency($frequencyid);