__PACKAGE__->make_manager_methods;
-#
-# get the one/two character shortcut of the parts classification
-#
-sub get_abbreviation {
- my ($class,$id) = @_;
- my $obj = $class->get_first(query => [ id => $id ]);
- return '' unless $obj;
- return $obj->abbreviation?$obj->abbreviation:'';
-}
-
1;
SL::DB::Manager::PartClassification
-
-=head1 SYNOPSIS
-
-This class has wrapper methodes to get the shortcuts
-
-=head1 METHODS
-
-=head2 get_abbreviation
-
- $class->get_abbreviation($classification_id);
-
-get the one/two character shortcut of the parts classification
-
-=head2 get_separate_abbreviation
-
- $class->get_separate_abbreviation($classification_id);
-
-get the one/two character shortcut of the parts classification if it is a separate article
-
-=head1 AUTHOR
-
-Martin Helmling E<lt>martin.helmling@opendynamic.deE<gt>
-
=cut