b702b0f5b24dca73775c0ae689866fae65086095
[kivitendo-erp.git] / SL / Dev / ALL.pm
1 package SL::Dev::ALL;
2
3 use strict;
4
5 use Exporter;
6 use SL::Dev::Part;
7 use SL::Dev::CustomerVendor;
8 use SL::Dev::Inventory;
9 use SL::Dev::Record;
10 use SL::Dev::Payment;
11 use SL::Dev::Shop;
12
13 sub import {
14   no strict "refs";
15   for (qw(Part CustomerVendor Inventory Record Payment Shop)) {
16     Exporter::export_to_level("SL::Dev::$_", 1, @_);
17   }
18 }
19
20
21 1;
22
23 __END__
24
25 =pod
26
27 =head1 NAME
28
29 SL::Dev::ALL: Dependency-only package for all SL::Dev::* modules
30
31 =head1 SYNOPSIS
32
33   use SL::Dev::ALL;
34
35 =head1 DESCRIPTION
36
37 This module depends on all modules in SL/Dev/*.pm for the convenience of being
38 able to write a simple C<use SL::Dev::ALL> and having everything loaded. This
39 is supposed to be used only for test cases or in the kivitendo console. Normal
40 modules should C<use> only the modules they actually need.
41
42 To automatically include it in the console, add a line in the client section of
43 the kivitendo.config, e.g.
44
45 [console]
46 autorun = require "bin/mozilla/common.pl";
47         = use SL::DB::Helper::ALL;
48         = use SL::Dev::ALL;
49
50 =head1 AUTHOR
51
52 G. Richardson E<lt>grichardson@kivitendo-premium.deE<gt>
53
54 =cut