From 5cbb51a3bd466465b653c86501973db117e6bd43 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 27 Nov 2019 16:53:42 +0100 Subject: [PATCH] Bug 24151: Add Koha::Anonymized::Patron::Attribute[s] classes Sponsored-by: Association KohaLa - https://koha-fr.org/ --- Koha/Anonymized/Patron/Attribute.pm | 49 +++++++++++++++++++++++++++++++++ Koha/Anonymized/Patron/Attributes.pm | 52 ++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 Koha/Anonymized/Patron/Attribute.pm create mode 100644 Koha/Anonymized/Patron/Attributes.pm diff --git a/Koha/Anonymized/Patron/Attribute.pm b/Koha/Anonymized/Patron/Attribute.pm new file mode 100644 index 0000000000..68f6e571cd --- /dev/null +++ b/Koha/Anonymized/Patron/Attribute.pm @@ -0,0 +1,49 @@ +package Koha::Anonymized::Patron::Attribute; + +# 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, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +use Modern::Perl; + +use Carp; + +use Koha::Database; +use Koha::Anonymized; + +use base qw(Koha::Object); + +=head1 NAME + +Koha::Anonymized::Patron::Attribute - Koha Anonymized::Patron::Attribute Object class + +=head1 API + +=head2 Class methods + +=head3 new + +=cut + +=head2 Internal methods + +=head3 _type + +=cut + +sub _type { + return 'AnonymizedBorrowerAttribute'; +} + +1; diff --git a/Koha/Anonymized/Patron/Attributes.pm b/Koha/Anonymized/Patron/Attributes.pm new file mode 100644 index 0000000000..8594f68c09 --- /dev/null +++ b/Koha/Anonymized/Patron/Attributes.pm @@ -0,0 +1,52 @@ +package Koha::Anonymized::Patron::Attributes; + +# 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, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +use Modern::Perl; + +use Carp; + +use Koha::Database; + +use Koha::Anonymized::Patron::Attribute; + +use base qw(Koha::Objects); + +=head1 NAME + +Koha::Anonymized::Patron::Attributes - Koha Anonymized Patron Attribute Object set class + +=head1 API + +=cut + +=head2 Class Methods + +=cut + +=head3 type + +=cut + +sub _type { + return 'AnonymizedBorrowerAttribute'; +} + +sub object_class { + return 'Koha::Anonymized::Patron::Attribute'; +} + +1; -- 2.11.0