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

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

Add support info on nethost page

File size: 1.8 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            webSite => {
54                label => ('Web Site'),
55            },
56        }
57    )
58}
59
601;
61
62__END__
63
64=head1 SEE ALSO
65
66L<LATMOS::Accounts::Bases::Sql::Netzones>, L<LATMOS::Accounts::Bases::Sql>
67
68=head1 AUTHOR
69
70Olivier Thauvin, E<lt>olivier.thauvin@latmos.ipsl.frE<gt>
71
72=head1 COPYRIGHT AND LICENSE
73
74Copyright (C) 2008, 2009, 2010, 2011, 2012 CNRS SA/CETP/LATMOS
75
76This library is free software; you can redistribute it and/or modify
77it under the same terms as Perl itself, either Perl version 5.10.0 or,
78at your option, any later version of Perl 5 you may have available.
79
80
81=cut
Note: See TracBrowser for help on using the repository browser.