X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=blobdiff_plain;f=SL%2FDev%2FALL.pm;fp=SL%2FDev%2FALL.pm;h=8bf30a55196918c76e7de9e371a624cef0474e2f;hp=0000000000000000000000000000000000000000;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44 diff --git a/SL/Dev/ALL.pm b/SL/Dev/ALL.pm new file mode 100644 index 000000000..8bf30a551 --- /dev/null +++ b/SL/Dev/ALL.pm @@ -0,0 +1,55 @@ +package SL::Dev::ALL; + +use strict; + +use Exporter; +use SL::Dev::Part; +use SL::Dev::CustomerVendor; +use SL::Dev::Inventory; +use SL::Dev::Record; +use SL::Dev::Payment; +use SL::Dev::Shop; +use SL::Dev::TimeRecording; + +sub import { + no strict "refs"; + for (qw(Part CustomerVendor Inventory Record Payment Shop TimeRecording)) { + Exporter::export_to_level("SL::Dev::$_", 1, @_); + } +} + + +1; + +__END__ + +=pod + +=head1 NAME + +SL::Dev::ALL: Dependency-only package for all SL::Dev::* modules + +=head1 SYNOPSIS + + use SL::Dev::ALL; + +=head1 DESCRIPTION + +This module depends on all modules in SL/Dev/*.pm for the convenience of being +able to write a simple C and having everything loaded. This +is supposed to be used only for test cases or in the kivitendo console. Normal +modules should C only the modules they actually need. + +To automatically include it in the console, add a line in the client section of +the kivitendo.config, e.g. + +[console] +autorun = require "bin/mozilla/common.pl"; + = use SL::DB::Helper::ALL; + = use SL::Dev::ALL; + +=head1 AUTHOR + +G. Richardson Egrichardson@kivitendo-premium.deE + +=cut