From a48c55cfdc6b45e44148754ed40e912ec4b28c2b 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 --- 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 00000000000..3c6c428c638 --- /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 00000000000..c6afb4aa0d7 --- /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.25.1