Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision feef731c

Von Moritz Bunkus vor fast 14 Jahren hinzugefügt

  • ID feef731c40b0b06fd7b566f4dcce322bc68b7946
  • Vorgänger 7ade1b95
  • Nachfolger 606e7e25

Sortierfunktion für Pricegroup-Model

Unterschiede anzeigen:

SL/DB/Manager/Pricegroup.pm
1
package SL::DB::Manager::Pricegroup;
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::Pricegroup' }
11

  
12
__PACKAGE__->make_manager_methods;
13

  
14
sub _sort_spec {
15
  return ( default => [ 'pricegroup', 1 ],
16
           columns => { SIMPLE => 'ALL',
17
                        map { ( $_ => "lower(pricegroup.${_})" ) } qw(pricegroup),
18
                      });
19
}
20

  
21
1;
SL/DB/Pricegroup.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::Pricegroup;
5 2

  
6 3
use strict;
7 4

  
8 5
use SL::DB::MetaSetup::Pricegroup;
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::Pricegroup;
12 7

  
13 8
1;

Auch abrufbar als: Unified diff