Koha/C4/ClassSplitRoutine.pm
Jonathan Druart 69513449db
Bug 29951: Fix EXPORT for C4::ClassS*Routine modules
Can't locate object method "subclasses" via package "C4::ClassSplitRoutine" at /kohadevbox/koha/C4/ClassSplitRoutine.pm line 53

Certainly from bug 17600.

Test plan:
Home -> Administration -> Classification sources -> New splitting rule

And create classification sources and filing rules.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-07-08 15:29:56 -03:00

63 lines
1.3 KiB
Perl

package C4::ClassSplitRoutine;
# Copyright 2022 Koha Development Team
#
# This file is part of Koha.
#
# 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 Class::Factory::Util;
our (@ISA, @EXPORT_OK);
BEGIN {
require Exporter;
@ISA = qw(Exporter);
@EXPORT_OK = qw(
GetSplitRoutineNames
);
}
=head1 NAME
C4::ClassSplitRoutine - base object for creation of classification splitting routines
=head1 SYNOPSIS
use C4::ClassSplitRoutine;
=head1 FUNCTIONS
=cut
=head2 GetSplitRoutineNames
my @routines = GetSplitRoutineNames();
Get names of all modules under C4::ClassSplitRoutine::*.
=cut
sub GetSplitRoutineNames {
return C4::ClassSplitRoutine->subclasses();
}
1;
=head1 AUTHOR
Koha Development Team <http://koha-community.org/>
=cut