Bug 20256: DBIC schema
[koha.git] / Koha / AdvancedEditorMacro.pm
1 package Koha::AdvancedEditorMacro;
2
3 # This file is part of Koha.
4 #
5 # Koha is free software; you can redistribute it and/or modify it under the
6 # terms of the GNU General Public License as published by the Free Software
7 # Foundation; either version 3 of the License, or (at your option) any later
8 # version.
9 #
10 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
11 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with Koha; if not, see <http://www.gnu.org/licenses>.
16
17 use Modern::Perl;
18
19
20 use Koha::Database;
21
22 use base qw(Koha::Object);
23
24 =head1 NAME
25
26 Koha::AdvancedEditorMacro - Koha Advanced editor macro object class
27
28 =head1 API
29
30 =head2 Class methods
31
32 =head3 to_api_mapping
33
34 =cut
35
36 sub to_api_mapping {
37     return {
38         id                  => 'macro_id',
39         macro               => 'macro_text',
40         borrowernumber      => 'patron_id',
41     };
42 }
43
44
45 =head2 Internal methods
46
47 =head3 _type
48
49 =cut
50
51 sub _type {
52     return 'AdvancedEditorMacro';
53 }
54
55 1;