Bugzilla – Attachment 139719 Details for
Bug 31095
Remove Koha::Patron::Debarment::GetDebarments and use $patron->restrictions in preference
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31095: Add Koha::Patron::Restriction(s)
Bug-31095-Add-KohaPatronRestrictions.patch (text/plain), 2.98 KB, created by
Martin Renvoize (ashimema)
on 2022-08-24 15:24:27 UTC
(
hide
)
Description:
Bug 31095: Add Koha::Patron::Restriction(s)
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-08-24 15:24:27 UTC
Size:
2.98 KB
patch
obsolete
>From d427d7cd74ecaf1fca581261c489620ad5547760 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 22 Aug 2022 14:06:31 -0300 >Subject: [PATCH] Bug 31095: Add Koha::Patron::Restriction(s) > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > Koha/Patron/Restriction.pm | 42 ++++++++++++++++++++++++++++++ > Koha/Patron/Restrictions.pm | 52 +++++++++++++++++++++++++++++++++++++ > 2 files changed, 94 insertions(+) > create mode 100644 Koha/Patron/Restriction.pm > create mode 100644 Koha/Patron/Restrictions.pm > >diff --git a/Koha/Patron/Restriction.pm b/Koha/Patron/Restriction.pm >new file mode 100644 >index 0000000000..e1f54315e4 >--- /dev/null >+++ b/Koha/Patron/Restriction.pm >@@ -0,0 +1,42 @@ >+package Koha::Patron::Restriction; >+ >+# 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 <http://www.gnu.org/licenses>. >+ >+use Modern::Perl; >+ >+use Koha::Database; >+ >+use base qw(Koha::Object); >+ >+=head1 NAME >+ >+Koha::Patron::Restriction - Koha Patron::Restriction Object class >+ >+=head1 API >+ >+=head2 Class methods >+ >+=head2 Internal methods >+ >+=head3 _type >+ >+=cut >+ >+sub _type { >+ return 'BorrowerDebarment'; >+} >+ >+1; >diff --git a/Koha/Patron/Restrictions.pm b/Koha/Patron/Restrictions.pm >new file mode 100644 >index 0000000000..8db4614911 >--- /dev/null >+++ b/Koha/Patron/Restrictions.pm >@@ -0,0 +1,52 @@ >+package Koha::Patron::Restrictions; >+ >+# 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 <http://www.gnu.org/licenses>. >+ >+use Modern::Perl; >+ >+use Koha::Database; >+ >+use Koha::Patron::Restriction; >+ >+use base qw(Koha::Objects); >+ >+=head1 NAME >+ >+Koha::Patron::Restrictions - Koha Patron Restriction Object set class >+ >+=head1 API >+ >+=head2 Class methods >+ >+=head2 Internal methods >+ >+=head3 _type >+ >+=cut >+ >+sub _type { >+ return 'BorrowerDebarment'; >+} >+ >+=head3 object_class >+ >+=cut >+ >+sub object_class { >+ return 'Koha::Patron::Restriction'; >+} >+ >+1; >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31095
:
139614
|
139719
|
139720
|
139721
|
139722
|
139723
|
139724
|
139725
|
139726
|
139727
|
139728
|
139742
|
139743
|
139744
|
139745
|
139746
|
139747
|
139748
|
139749
|
139750
|
139751
|
139752
|
139753
|
139754
|
139755
|
139756
|
139757
|
139758
|
140714
|
140715
|
140716
|
140717
|
140718
|
140719
|
140720
|
140721
|
140722
|
140723
|
140724
|
140725
|
140726
|
140727
|
140728
|
140729
|
140730
|
140731
|
142059
|
142060
|
142061
|
142062
|
142063
|
142064
|
142065
|
142066
|
142067
|
142068
|
142069
|
142070
|
142071
|
142072
|
142073
|
142074
|
142075
|
142076
|
143745
|
143746
|
143747
|
143748
|
143749
|
143750
|
143751
|
143752
|
143753
|
143754
|
143755
|
143756
|
143757
|
143758
|
143759
|
143760
|
143761
|
143762
|
143763
|
144903
|
144904
|
144905
|
144906
|
144907
|
144908
|
144909
|
144910
|
144911
|
144912
|
144913
|
144914
|
144915
|
144916
|
144917
|
144918
|
144919
|
144920
|
144921
|
145800
|
145801
|
145803
|
145845