Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7cd6d451

Von Martin Helmling martin.helmling@octosoft.eu vor fast 7 Jahren hinzugefügt

  • ID 7cd6d451d97d1f1e7f3c0f9db2de03735dc8c8f0
  • Vorgänger 065cf8d5
  • Nachfolger 435a46b8

classification_filter ist nicht mehr für Partpicker notwendig

Unterschiede anzeigen:

SL/DB/Manager/PartClassification.pm
1
package SL::DB::Manager::PartClassification;
2

  
3
use strict;
4

  
5
use parent qw(SL::DB::Helper::Manager);
6
use SL::DB::Helper::Sorted;
7

  
8
sub object_class { 'SL::DB::PartClassification' }
9

  
10
__PACKAGE__->make_manager_methods;
11

  
12
sub classification_filter {
13
  my ($class, $classification, $prefix) = @_;
14

  
15
  return () unless $classification;
16

  
17
  $prefix //= '';
18

  
19
  my @classifications = grep { $_ } listify($classification);
20
  return ( $prefix . 'classification_id' => \@classifications );
21
}
22

  
23
1;
24

  
25

  
26
__END__
27

  
28
=encoding utf-8
29

  
30
=head1 NAME
31

  
32
SL::DB::Manager::PartClassification
33

  
34
=cut

Auch abrufbar als: Unified diff