source: trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Employmentsummary.pm @ 2296

Last change on this file since 2296 was 2296, checked in by nanardon, 5 years ago

Add Employmentsummary objects (summarize user activity)

File size: 1.6 KB
Line 
1package LATMOS::Accounts::Bases::Sql::Employmentsummary;
2
3use 5.010000;
4use strict;
5use warnings;
6
7use base qw(LATMOS::Accounts::Bases::Sql::objects);
8use LATMOS::Accounts::Log;
9use LATMOS::Accounts::I18N;
10
11our $VERSION = (q$Rev: 341 $ =~ /^Rev: (\d+) /)[0];
12
13=head1 NAME
14
15LATMOS::Ad - Perl extension for blah blah blah
16
17=head1 SYNOPSIS
18
19  use LATMOS::Accounts::Bases;
20  my $base = LATMOS::Accounts::Bases->new('sql');
21  ...
22
23=head1 DESCRIPTION
24
25Account base access over standard unix file format.
26
27=head1 FUNCTIONS
28
29=cut
30
31=head2 new(%config)
32
33Create a new LATMOS::Ad object for windows AD $domain.
34
35domain / server: either the Ad domain or directly the server
36
37ldap_args is an optionnal list of arguments to pass to L<Net::LDAP>.
38
39=cut
40
41sub _object_table { 'employmentsum' }
42
43sub _key_field { 'name' }
44
45sub _has_extended_attributes { 0 }
46
47sub _get_attr_schema {
48    my ($class, $base) = @_;
49
50    $class->SUPER::_get_attr_schema($base,
51        {
52            name            => { reference => 'user', inline => 1, ro => 1 },
53            firstday        => { formtype => 'DATE',  inline => 1, ro => 1 },
54            lastday         => { formtype => 'DATE',  inline => 1, ro => 1 },
55            contrattype     => { inline => 1, ro => 1 },
56        }
57    )
58}
59
60
611;
62
63__END__
64
65=head1 SEE ALSO
66
67L<LATMOS::Accounts::Bases::Sql>
68
69=head1 AUTHOR
70
71Olivier Thauvin, E<lt>olivier.thauvin@latmos.ipsl.frE<gt>
72
73=head1 COPYRIGHT AND LICENSE
74
75Copyright (C) 2008, 2009 CNRS SA/CETP/LATMOS
76
77This library is free software; you can redistribute it and/or modify
78it under the same terms as Perl itself, either Perl version 5.10.0 or,
79at your option, any later version of Perl 5 you may have available.
80
81
82=cut
Note: See TracBrowser for help on using the repository browser.