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