Bugzilla – Attachment 103973 Details for
Bug 16371
Quote of the Day (QOTD) for the staff interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16371: Add Koha::Quote[s] classes
Bug-16371-Add-KohaQuotes-classes.patch (text/plain), 2.76 KB, created by
David Nind
on 2020-04-29 18:04:05 UTC
(
hide
)
Description:
Bug 16371: Add Koha::Quote[s] classes
Filename:
MIME Type:
Creator:
David Nind
Created:
2020-04-29 18:04:05 UTC
Size:
2.76 KB
patch
obsolete
>From b7c7a532050925c8725dc676b26e80291884cb0e Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@outlook.com> >Date: Fri, 17 Apr 2020 10:57:27 +0300 >Subject: [PATCH] Bug 16371: Add Koha::Quote[s] classes > >Sponsored-by: Koha-Suomi Oy > >Signed-off-by: David Nind <david@davidnind.com> >--- > Koha/Quote.pm | 43 +++++++++++++++++++++++++++++++++++++++++++ > Koha/Quotes.pm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 91 insertions(+) > create mode 100644 Koha/Quote.pm > create mode 100644 Koha/Quotes.pm > >diff --git a/Koha/Quote.pm b/Koha/Quote.pm >new file mode 100644 >index 0000000000..a16e2dd7e4 >--- /dev/null >+++ b/Koha/Quote.pm >@@ -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 >index 0000000000..0fe2e167f5 >--- /dev/null >+++ b/Koha/Quotes.pm >@@ -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 >-- >2.11.0
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 16371
:
102515
|
102516
|
102517
|
102969
|
103019
|
103329
|
103330
|
103331
|
103332
|
103333
|
103334
|
103732
|
103973
|
103974
|
103975
|
103976
|
103977
|
103978
|
103979
|
106818
|
106819
|
106820
|
106858
|
106859
|
106860
|
106861
|
106862
|
106863
|
106864
|
106865
|
106866
|
106867
|
106868
|
106894
|
106895
|
106896
|
106897
|
106898
|
106899
|
106900
|
106901
|
106902
|
106903
|
108097
|
108098
|
108160
|
108163