Bugzilla – Attachment 160802 Details for
Bug 35536
Improve removal of Koha plugins in unit tests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35536: Add Koha object classes for plugin_data
Bug-35536-Add-Koha-object-classes-for-plugindata.patch (text/plain), 2.99 KB, created by
Marcel de Rooy
on 2024-01-11 08:20:29 UTC
(
hide
)
Description:
Bug 35536: Add Koha object classes for plugin_data
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-01-11 08:20:29 UTC
Size:
2.99 KB
patch
obsolete
>From d9f35a829aac465a3ac8aae3509d725ca0d9dbf3 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 13 Dec 2023 15:03:39 +0000 >Subject: [PATCH] Bug 35536: Add Koha object classes for plugin_data >Content-Type: text/plain; charset=utf-8 > >Test plan: >Read the patch. >The objects will be used in subsequent patches, and tested there. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > Koha/Plugins/Data.pm | 40 +++++++++++++++++++++++++++++++++ > Koha/Plugins/Datas.pm | 52 +++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 92 insertions(+) > create mode 100644 Koha/Plugins/Data.pm > create mode 100644 Koha/Plugins/Datas.pm > >diff --git a/Koha/Plugins/Data.pm b/Koha/Plugins/Data.pm >new file mode 100644 >index 0000000000..5b0974e94c >--- /dev/null >+++ b/Koha/Plugins/Data.pm >@@ -0,0 +1,40 @@ >+package Koha::Plugins::Data; >+ >+# Copyright 2023 Rijksmuseum >+# >+# 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 base qw(Koha::Object); >+ >+=head1 NAME >+ >+Koha::Plugin::Data - Koha plugin data (singular) object class >+ >+=head1 API >+ >+=head2 Class Methods >+ >+=head3 _type >+ >+=cut >+ >+sub _type { >+ return 'PluginData'; >+} >+ >+1; >diff --git a/Koha/Plugins/Datas.pm b/Koha/Plugins/Datas.pm >new file mode 100644 >index 0000000000..633d0405e4 >--- /dev/null >+++ b/Koha/Plugins/Datas.pm >@@ -0,0 +1,52 @@ >+package Koha::Plugins::Datas; >+ >+# Copyright 2023 Rijksmuseum >+# >+# 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 base qw(Koha::Objects); >+ >+use Koha::Plugins::Data; >+ >+=head1 NAME >+ >+Koha::Plugin::Datas - Koha plugin data (plural) object class >+ >+=head1 API >+ >+=head2 Class Methods >+ >+=cut >+ >+=head3 _type >+ >+=cut >+ >+sub _type { >+ return 'PluginData'; >+} >+ >+=head3 object_class >+ >+=cut >+ >+sub object_class { >+ return 'Koha::Plugins::Data'; >+} >+ >+1; >-- >2.30.2
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 35536
:
159804
|
159820
|
159821
|
159822
|
159823
|
159824
|
159825
|
159830
|
159839
|
159840
|
159841
|
159842
|
159843
|
159844
|
160024
|
160025
|
160026
|
160027
|
160028
|
160029
|
160030
|
160031
|
160032
|
160801
|
160802
|
160803
|
160804
|
160805
|
160806
|
160807
|
160808
|
160809
|
160817
|
160818
|
160819
|
160820
|
160821
|
160822
|
160823
|
160824
|
160825
|
160881
|
160882
|
160883
|
160884
|
160885
|
160886
|
160887
|
160888
|
160889
|
163701
|
163797