package LATMOS::Accounts::Bases::Sql::Support; use 5.010000; use strict; use warnings; use base qw(LATMOS::Accounts::Bases::Sql::objects); use LATMOS::Accounts::Log; use LATMOS::Accounts::Utils; use LATMOS::Accounts::I18N; use Net::IP; our $VERSION = (q$Rev: 2104 $ =~ /^Rev: (\d+) /)[0]; =head1 NAME LATMOS::Accounts::Bases::Sql::Nethost - A Network Host entry =cut sub _object_table { 'support' } sub _key_field { 'name' } sub _has_extended_attributes { 1 } sub _get_attr_schema { my ($class, $base) = @_; $class->SUPER::_get_attr_schema($base, { name => { ro => 1, inline => 1, }, cn => { ro => 1, inline => 1, iname => 'name' }, date => { ro => 1, inline => 1, }, create => { ro => 1, inline => 1, }, exported => { formtype => 'CHECKBOX', }, comment => { label => l('Comment'), }, description => { label => l('Description'), }, address => { label => l('Address'), formtype => 'TEXTAREA', }, phone => { label => l('Phone'), }, mail => { label => l('Mail'), } } ) } 1; __END__ =head1 SEE ALSO L, L =head1 AUTHOR Olivier Thauvin, Eolivier.thauvin@latmos.ipsl.frE =head1 COPYRIGHT AND LICENSE Copyright (C) 2008, 2009, 2010, 2011, 2012 CNRS SA/CETP/LATMOS This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available. =cut