From 07576588fff20919f4fcc9c0305f69eb77cced4c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 1 Mar 2023 15:17:56 +0100 Subject: [PATCH] Bug 33103: Koha classes Signed-off-by: Jonathan Field Signed-off-by: Tomas Cohen Arazi --- Koha/Acquisition/Bookseller/Alias.pm | 40 +++++++++++++++++++++ Koha/Acquisition/Bookseller/Aliases.pm | 50 ++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 Koha/Acquisition/Bookseller/Alias.pm create mode 100644 Koha/Acquisition/Bookseller/Aliases.pm diff --git a/Koha/Acquisition/Bookseller/Alias.pm b/Koha/Acquisition/Bookseller/Alias.pm new file mode 100644 index 0000000000..3c6c428c63 --- /dev/null +++ b/Koha/Acquisition/Bookseller/Alias.pm @@ -0,0 +1,40 @@ +package Koha::Acquisition::Bookseller::Alias; + +# 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 base qw( Koha::Object ); + +=head1 NAME + +Koha::Acquisition::Bookseller::Alias - Koha Bookseller alias Object class + +=head1 API + +=head2 Class Methods + +=cut + +=head3 _type + +=cut + +sub _type { + return 'AqbooksellerAlias'; +} + +1; diff --git a/Koha/Acquisition/Bookseller/Aliases.pm b/Koha/Acquisition/Bookseller/Aliases.pm new file mode 100644 index 0000000000..c6afb4aa0d --- /dev/null +++ b/Koha/Acquisition/Bookseller/Aliases.pm @@ -0,0 +1,50 @@ +package Koha::Acquisition::Bookseller::Aliases; + +# 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 base qw( Koha::Objects ); + +use Koha::Acquisition::Bookseller::Alias; + +=head1 NAME + +Koha::Acquisition::Bookseller::Aliases - Koha Bookseller alias Object class + +=head1 API + +=head2 Class Methods + +=cut + +=head3 _type + +=cut + +sub _type { + return 'AqbooksellerAlias'; +} + +=head3 object_class + +=cut + +sub object_class { + return 'Koha::Acquisition::Bookseller::Alias'; +} + +1; -- 2.39.5