Revision 5c5cbb9f
Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt
SL/DB/Language.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 | 1 |
package SL::DB::Language; |
5 | 2 |
|
6 | 3 |
use strict; |
7 | 4 |
|
8 | 5 |
use SL::DB::MetaSetup::Language; |
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
6 |
use SL::DB::Manager::Language; |
|
12 | 7 |
|
13 | 8 |
1; |
SL/DB/Manager/Language.pm | ||
---|---|---|
1 |
package SL::DB::Manager::Language; |
|
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::Language' } |
|
11 |
|
|
12 |
__PACKAGE__->make_manager_methods; |
|
13 |
|
|
14 |
sub _sort_spec { |
|
15 |
return ( default => [ 'description', 1 ], |
|
16 |
columns => { SIMPLE => 'ALL', |
|
17 |
map { ( $_ => "lower(language.${_})" ) } qw(description template_code article_code), |
|
18 |
}); |
|
19 |
} |
|
20 |
|
|
21 |
1; |
Auch abrufbar als: Unified diff
Standard-Sortierung für Language-Model
Conflicts: