Bug 35919: Add Koha::RecordSource(s) classes
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
5609cbdd9a
commit
47817e3bc5
2 changed files with 95 additions and 0 deletions
44
Koha/RecordSource.pm
Normal file
44
Koha/RecordSource.pm
Normal file
|
@ -0,0 +1,44 @@
|
|||
package Koha::RecordSource;
|
||||
|
||||
# This file is part of Koha.
|
||||
#
|
||||
# Copyright 2024 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);
|
||||
|
||||
use Koha::Patrons;
|
||||
use Koha::Token;
|
||||
|
||||
=head1 NAME
|
||||
|
||||
Koha::RecordSource - Koha RecordSource Object class
|
||||
|
||||
=head1 API
|
||||
|
||||
=head2 Internal methods
|
||||
|
||||
=head3 _type
|
||||
|
||||
=cut
|
||||
|
||||
sub _type {
|
||||
return 'RecordSource';
|
||||
}
|
||||
|
||||
1;
|
51
Koha/RecordSources.pm
Normal file
51
Koha/RecordSources.pm
Normal file
|
@ -0,0 +1,51 @@
|
|||
package Koha::RecordSources;
|
||||
|
||||
# This file is part of Koha.
|
||||
#
|
||||
# Copyright 2024 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::Objects);
|
||||
|
||||
use Koha::RecordSource;
|
||||
|
||||
=head1 NAME
|
||||
|
||||
Koha::RecordSources - Koha RecordSources Object class
|
||||
|
||||
=head1 API
|
||||
|
||||
=head2 Internal methods
|
||||
|
||||
=head3 _type
|
||||
|
||||
=cut
|
||||
|
||||
sub _type {
|
||||
return 'RecordSource';
|
||||
}
|
||||
|
||||
=head3 object_class
|
||||
|
||||
=cut
|
||||
|
||||
sub object_class {
|
||||
return 'Koha::RecordSource';
|
||||
}
|
||||
|
||||
1;
|
Loading…
Reference in a new issue