Bug 16371: Add Koha::Quote[s] classes
authorEmmi Takkinen <emmi.takkinen@outlook.com>
Fri, 17 Apr 2020 07:57:27 +0000 (10:57 +0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 13 Aug 2020 08:15:33 +0000 (10:15 +0200)
Sponsored-by: Koha-Suomi Oy

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Koha/Quote.pm [new file with mode: 0644]
Koha/Quotes.pm [new file with mode: 0644]

diff --git a/Koha/Quote.pm b/Koha/Quote.pm
new file mode 100644 (file)
index 0000000..a16e2dd
--- /dev/null
@@ -0,0 +1,43 @@
+package Koha::Quote;
+
+# 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 Carp;
+
+use Koha::Database;
+
+use base qw(Koha::Object);
+
+=head1 NAME
+
+Koha::Quote - Koha Quote object class
+
+=head1 API
+
+=head2 Class methods
+
+=cut
+
+=head3 _type
+
+=cut
+
+sub _type {
+    return 'Quote';
+}
+
+1;
\ No newline at end of file
diff --git a/Koha/Quotes.pm b/Koha/Quotes.pm
new file mode 100644 (file)
index 0000000..0fe2e16
--- /dev/null
@@ -0,0 +1,48 @@
+package Koha::Quotes;
+
+# 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 Carp;
+
+use Koha::Database;
+use Koha::Quote;
+
+use base qw(Koha::Objects);
+
+=head1 NAME
+
+Koha::Quote - Koha Quote object class
+
+=head1 API
+
+=head2 Class methods
+
+=cut
+
+=head3 type
+
+=cut
+
+sub _type {
+    return 'Quote';
+}
+
+sub object_class {
+    return 'Koha::Quote';
+}
+
+1;
\ No newline at end of file