From 9cef83726c839c1b508037b5ca7c8dd4bbaf3894 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 24 Feb 2022 16:52:22 +0100 Subject: [PATCH] Bug 32030: ERM - Koha::ERM::Agreement[s] objects Signed-off-by: Jonathan Field Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- Koha/ERM/Agreement.pm | 44 +++++++++++++++++++++++++++++++++++ Koha/ERM/Agreements.pm | 53 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 Koha/ERM/Agreement.pm create mode 100644 Koha/ERM/Agreements.pm diff --git a/Koha/ERM/Agreement.pm b/Koha/ERM/Agreement.pm new file mode 100644 index 0000000000..d17cd7ccf8 --- /dev/null +++ b/Koha/ERM/Agreement.pm @@ -0,0 +1,44 @@ +package Koha::ERM::Agreement; + +# 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 Koha::Database; + +use base qw(Koha::Object); + +=head1 NAME + +Koha::ERM::Agreement - Koha ErmAgreement Object class + +=head1 API + +=head2 Class Methods + +=cut + +=head2 Internal methods + +=head3 _type + +=cut + +sub _type { + return 'ErmAgreement'; +} + +1; diff --git a/Koha/ERM/Agreements.pm b/Koha/ERM/Agreements.pm new file mode 100644 index 0000000000..9773db4180 --- /dev/null +++ b/Koha/ERM/Agreements.pm @@ -0,0 +1,53 @@ +package Koha::ERM::Agreements; + +# 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 Koha::Database; + +use Koha::ERM::Agreement; + +use base qw(Koha::Objects); + +=head1 NAME + +Koha::ERM::Agreements- Koha ErmAgreement Object set class + +=head1 API + +=head2 Class Methods + +=cut + +=head3 type + +=cut + +sub _type { + return 'ErmAgreement'; +} + +=head3 object_class + +=cut + +sub object_class { + return 'Koha::ERM::Agreement'; +} + +1; -- 2.39.5