Bug 26265: (QA follow-up) Remove g option from regex, add few dirs
[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 use Carp;
20
21 use Koha::Database;
22
23 use base qw(Koha::Object);
24
25 =head1 NAME
26
27 Koha::AdvancedEditorMacro - Koha Advanced editor macro object class
28
29 =head1 API
30
31 =head2 Class methods
32
33 =head3 to_api_mapping
34
35 =cut
36
37 sub to_api_mapping {
38     return {
39         id                  => 'macro_id',
40         macro               => 'macro_text',
41         borrowernumber      => 'patron_id',
42     };
43 }
44
45
46 =head2 Internal methods
47
48 =head3 _type
49
50 =cut
51
52 sub _type {
53     return 'AdvancedEditorMacro';
54 }
55
56 1;