From 4e34ccc2ae36ee7a92f72eb1b5c3f334e1dbc05c 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 --- 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 0000000..b10ea6c --- /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 0000000..6b707b6 --- /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.1.4