1 package SL::DB::Manager::PartClassification;
5 use parent qw(SL::DB::Helper::Manager);
6 use SL::DB::Helper::Sorted;
8 sub object_class { 'SL::DB::PartClassification' }
10 __PACKAGE__->make_manager_methods;
13 # get the one/two character shortcut of the parts classification
15 sub get_abbreviation {
17 my $obj = $class->get_first(query => [ id => $id ]);
18 return '' unless $obj;
19 return $obj->abbreviation?$obj->abbreviation:'';
31 SL::DB::Manager::PartClassification
36 This class has wrapper methodes to get the shortcuts
40 =head2 get_abbreviation
42 $class->get_abbreviation($classification_id);
44 get the one/two character shortcut of the parts classification
46 =head2 get_separate_abbreviation
48 $class->get_separate_abbreviation($classification_id);
50 get the one/two character shortcut of the parts classification if it is a separate article
54 Martin Helmling E<lt>martin.helmling@opendynamic.deE<gt>