| 1 | # $Id: Provider.pm,v 1.5 2007-09-13 09:42:47 mike Exp $ | ||
| 2 | |||
| 3 | package Keystone::Resolver::DB::Provider; | ||
| 4 | |||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | use Keystone::Resolver::DB::Object; | ||
| 8 | |||
| 9 | use vars qw(@ISA); | ||
| 10 | @ISA = qw(Keystone::Resolver::DB::Object); | ||
| 11 | |||
| 12 | |||
| 13 | sub table { "provider" } | ||
| 14 | |||
| 15 | sub fields { (id => undef, | ||
| 16 | name => undef, | ||
| 17 | priority => undef, | ||
| 18 | contact => undef, | ||
| 19 | services => [ id => "Service", "provider_id", "name" ], | ||
| 20 | ) } | ||
| 21 | |||
| 22 | sub search_fields { (name => "t25", | ||
| 23 | priority => "n5", | ||
| 24 | ) } | ||
| 25 | |||
| 26 | sub sort_fields { ("priority", "name") } | ||
| 27 | |||
| 28 | sub display_fields { (name => "Lt", | ||
| 29 | priority => "n", | ||
| 30 | contact => "t", | ||
| 31 | ) } | ||
| 32 | |||
| 33 | sub fulldisplay_fields { (name => "Lt", | ||
| 34 | priority => "n", | ||
| 35 | contact => "t", | ||
| 36 | services => "t", | ||
| 37 | ) } | ||
| 38 | |||
| 39 | 1; |