From abe0050ad6f68f0a6f87912ff5635a2f5411899a Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Mon, 18 Feb 2019 13:28:34 +0000 Subject: [PATCH] Bug 22363: Add Koha::ActionLog[s] objects Signed-off-by: Andrew Isherwood Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- Koha/ActionLog.pm | 44 +++++++++++++++++++++++++++++++++++++++ Koha/ActionLogs.pm | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 Koha/ActionLog.pm create mode 100644 Koha/ActionLogs.pm diff --git a/Koha/ActionLog.pm b/Koha/ActionLog.pm new file mode 100644 index 0000000000..b10ea6c7a6 --- /dev/null +++ b/Koha/ActionLog.pm @@ -0,0 +1,44 @@ +package Koha::ActionLog; + +# Copyright 2015 Koha Development team +# +# 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 C4::Context; + +use base qw(Koha::Object); + +=head1 NAME + +Koha::ActionLog - Koha ActionLog Object class + +=head1 API + +=head2 Class methods + +=head2 Internal methods + +=head3 _type + +=cut + +sub _type { + return 'ActionLog'; +} + +1; diff --git a/Koha/ActionLogs.pm b/Koha/ActionLogs.pm new file mode 100644 index 0000000000..6b707b6088 --- /dev/null +++ b/Koha/ActionLogs.pm @@ -0,0 +1,52 @@ +package Koha::ActionLogs; + +# Copyright 2019 Koha Development team +# +# 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 C4::Context; + +use base qw(Koha::Objects); + +use Koha::ActionLog; + +=head1 NAME + +Koha::ActionLogs - Koha ActionLog Object set class + +=head1 API + +=head2 Class Methods + +=cut + +=head2 Internal Methods + +=head3 _type + +=cut + +sub _type { + return 'ActionLog'; +} + +sub object_class { + return 'Koha::ActionLog'; +} + +1; -- 2.39.5