source: trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Support.pm @ 2413

Last change on this file since 2413 was 2413, checked in by nanardon, 4 years ago

Add object support feature

File size: 1.7 KB
Line 
1package LATMOS::Accounts::Bases::Sql::Support;
2
3use 5.010000;
4use strict;
5use warnings;
6
7use base qw(LATMOS::Accounts::Bases::Sql::objects);
8use LATMOS::Accounts::Log;
9use LATMOS::Accounts::Utils;
10use LATMOS::Accounts::I18N;
11use Net::IP;
12
13our $VERSION = (q$Rev: 2104 $ =~ /^Rev: (\d+) /)[0];
14
15=head1 NAME
16
17LATMOS::Accounts::Bases::Sql::Nethost - A Network Host entry
18
19=cut
20
21sub _object_table { 'support' }
22
23sub _key_field { 'name' }
24
25sub _has_extended_attributes { 1 }
26
27sub _get_attr_schema {
28    my ($class, $base) = @_;
29
30    $class->SUPER::_get_attr_schema($base,
31        {
32            name    => { ro => 1, inline => 1, },
33            cn      => { ro => 1, inline => 1, iname => 'name' },
34            date    => { ro => 1, inline => 1, },
35            create  => { ro => 1, inline => 1, },
36            exported => { formtype => 'CHECKBOX', },
37            comment => {
38                label => l('Comment'),
39            },
40            description => {
41                label => l('Description'),
42            },
43            address => {
44                label => l('Address'),
45                formtype => 'TEXTAREA',
46            },
47            phone => {
48                label => l('Phone'),
49            },
50            mail => {
51                label => l('Mail'),
52            }
53        }
54    )
55}
56
571;
58
59__END__
60
61=head1 SEE ALSO
62
63L<LATMOS::Accounts::Bases::Sql::Netzones>, L<LATMOS::Accounts::Bases::Sql>
64
65=head1 AUTHOR
66
67Olivier Thauvin, E<lt>olivier.thauvin@latmos.ipsl.frE<gt>
68
69=head1 COPYRIGHT AND LICENSE
70
71Copyright (C) 2008, 2009, 2010, 2011, 2012 CNRS SA/CETP/LATMOS
72
73This library is free software; you can redistribute it and/or modify
74it under the same terms as Perl itself, either Perl version 5.10.0 or,
75at your option, any later version of Perl 5 you may have available.
76
77
78=cut
Note: See TracBrowser for help on using the repository browser.