From fe5d410fd9d425457fbffb5162cf34bf367af0cb Mon Sep 17 00:00:00 2001 From: Emmi Takkinen Date: Fri, 17 Apr 2020 10:57:27 +0300 Subject: [PATCH] Bug 16371: Add Koha::Quote[s] classes Sponsored-by: Koha-Suomi Oy Signed-off-by: David Nind Signed-off-by: David Nind Signed-off-by: Katrin Fischer --- Koha/Quote.pm | 43 +++++++++++++++++++++++++++++++++++++++++++ Koha/Quotes.pm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 Koha/Quote.pm create mode 100644 Koha/Quotes.pm diff --git a/Koha/Quote.pm b/Koha/Quote.pm new file mode 100644 index 0000000000..a16e2dd7e4 --- /dev/null +++ b/Koha/Quote.pm @@ -0,0 +1,43 @@ +package Koha::Quote; + +# 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 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. +# +# You should have received a copy of the GNU General Public License +# along with Koha; if not, see . + +use Modern::Perl; +use Carp; + +use Koha::Database; + +use base qw(Koha::Object); + +=head1 NAME + +Koha::Quote - Koha Quote object class + +=head1 API + +=head2 Class methods + +=cut + +=head3 _type + +=cut + +sub _type { + return 'Quote'; +} + +1; \ No newline at end of file diff --git a/Koha/Quotes.pm b/Koha/Quotes.pm new file mode 100644 index 0000000000..0fe2e167f5 --- /dev/null +++ b/Koha/Quotes.pm @@ -0,0 +1,48 @@ +package Koha::Quotes; + +# 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 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. +# +# You should have received a copy of the GNU General Public License +# along with Koha; if not, see . + +use Modern::Perl; +use Carp; + +use Koha::Database; +use Koha::Quote; + +use base qw(Koha::Objects); + +=head1 NAME + +Koha::Quote - Koha Quote object class + +=head1 API + +=head2 Class methods + +=cut + +=head3 type + +=cut + +sub _type { + return 'Quote'; +} + +sub object_class { + return 'Koha::Quote'; +} + +1; \ No newline at end of file -- 2.11.0