Revision 86be4259
Von Kivitendo Admin vor etwa 8 Jahren hinzugefügt
SL/DB/Manager/PartsGroup.pm | ||
---|---|---|
1 |
package SL::DB::Manager::PartsGroup; |
|
2 |
|
|
3 |
use strict; |
|
4 |
|
|
5 |
use SL::DB::Helper::Manager; |
|
6 |
use base qw(SL::DB::Helper::Manager); |
|
7 |
|
|
8 |
use SL::DB::Helper::Sorted; |
|
9 |
|
|
10 |
sub object_class { 'SL::DB::PartsGroup' } |
|
11 |
|
|
12 |
__PACKAGE__->make_manager_methods; |
|
13 |
|
|
14 |
sub _sort_spec { |
|
15 |
return ( default => [ 'partsgroup', 1 ], |
|
16 |
columns => { SIMPLE => 'ALL' }); |
|
17 |
} |
|
18 |
|
|
19 |
1; |
SL/DB/PartsGroup.pm | ||
---|---|---|
6 | 6 |
use strict; |
7 | 7 |
|
8 | 8 |
use SL::DB::MetaSetup::PartsGroup; |
9 |
use SL::DB::Manager::PartsGroup; |
|
9 | 10 |
|
10 | 11 |
__PACKAGE__->meta->add_relationship( |
11 | 12 |
custom_variable_configs => { |
... | ... | |
16 | 17 |
|
17 | 18 |
__PACKAGE__->meta->initialize; |
18 | 19 |
|
19 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
20 |
__PACKAGE__->meta->make_manager_class; |
|
21 |
|
|
22 | 20 |
sub displayable_name { |
23 | 21 |
my $self = shift; |
24 | 22 |
|
Auch abrufbar als: Unified diff
Manager für PartsGroup mit sort_spec