Koha/Koha/ImportBatchProfile.pm
Agustin Moyano 9f5596afd6 Bug 23019: (follow-up) Fix other things
This patch:
* Fixes table name change
* Adds schema file
* Changes api parameter name
* Fixes string escaping
* Fixes error handling

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-11-11 15:55:49 +01:00

54 lines
No EOL
1.1 KiB
Perl

package Koha::ImportBatchProfile;
# This file is part of Koha.
#
# Copyright 2020 Koha Development Team
#
# 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 base qw(Koha::Object);
=head1 NAME
Koha::ImportBatchProfile - Koha ImportBatchProfile Object class
=head1 API
=head2 Class Methods
=head3 to_api_mapping
This method returns the mapping for representing a Koha::ImportBatchProfile object
on the API.
=cut
sub to_api_mapping {
return {
id => 'profile_id'
};
}
=head3 _type
=cut
sub _type {
return 'ImportBatchProfile';
}
1;