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