source: LATMOS-Accounts/lib/LATMOS/Accounts/Bases.pm @ 2

Last change on this file since 2 was 2, checked in by nanardon, 15 years ago
  • add initial Bases work
  • Property svn:keywords set to Id Rev
File size: 1.7 KB
Line 
1package LATMOS::Accounts::Bases;
2
3use 5.010000;
4use strict;
5use warnings;
6use LATMOS::Accounts::Bases::Objects;
7
8our $VERSION = (q$Rev$ =~ /$Rev: (\d+) /)[0];
9
10sub new {
11    my ($class, $type, %options) = @_;
12
13    my $pclass = ucfirst(lc($type));
14    eval "require LATMOS::Accounts::Bases::$pclass;";
15    if ($@) { return } # error message ?
16    return "LATMOS::Accounts::Bases::$pclass"->new(%options);
17}
18
19sub get_object {
20    my ($self, $otype, $id) = @_;
21
22    return LATMOS::Accounts::Bases::Objects->new($self, $otype, $id);
23}
24
25
26# Preloaded methods go here.
27
281;
29__END__
30# Below is stub documentation for your module. You'd better edit it!
31
32=head1 NAME
33
34LATMOS::Accounts::Bases - Perl extension for blah blah blah
35
36=head1 SYNOPSIS
37
38  use LATMOS::Accounts::Bases;
39  blah blah blah
40
41=head1 DESCRIPTION
42
43Stub documentation for LATMOS::Accounts, created by h2xs. It looks like the
44author of the extension was negligent enough to leave the stub
45unedited.
46
47Blah blah blah.
48
49=head2 EXPORT
50
51None by default.
52
53
54
55=head1 SEE ALSO
56
57Mention other useful documentation such as the documentation of
58related modules or operating system documentation (such as man pages
59in UNIX), or any relevant external documentation such as RFCs or
60standards.
61
62If you have a mailing list set up for your module, mention it here.
63
64If you have a web site set up for your module, mention it here.
65
66=head1 AUTHOR
67
68Thauvin Olivier, E<lt>olivier@localdomainE<gt>
69
70=head1 COPYRIGHT AND LICENSE
71
72Copyright (C) 2009 by Thauvin Olivier
73
74This library is free software; you can redistribute it and/or modify
75it under the same terms as Perl itself, either Perl version 5.10.0 or,
76at your option, any later version of Perl 5 you may have available.
77
78
79=cut
Note: See TracBrowser for help on using the repository browser.