1 package SL::DB::Manager::Chart;
 
   5 use SL::DB::Helper::Manager;
 
   6 use base qw(SL::DB::Helper::Manager);
 
   8 use SL::DB::Helper::Sorted;
 
  10 sub object_class { 'SL::DB::Chart' }
 
  12 __PACKAGE__->make_manager_methods;
 
  15   my ($class, $link) = @_;
 
  17   return (or => [ link => $link,
 
  18                   link => { like => "${link}:\%"    },
 
  19                   link => { like => "\%:${link}"    },
 
  20                   link => { like => "\%:${link}:\%" } ]);
 
  33 SL::DB::Manager::Chart - Manager class for the model for the C<chart> table
 
  39 =item C<link_filter $link>
 
  41 Returns a query builder filter that matches charts whose 'C<link>'
 
  42 field contains C<$link>. Matching is done so that the exact value of
 
  43 C<$link> matches but not if C<$link> is only a substring of a
 
  44 match. Therefore C<$link = 'AR'> will match the column content 'C<AR>'
 
  45 or 'C<AR_paid:AR>' but not 'C<AR_amount>'.
 
  55 Moritz Bunkus E<lt>m.bunkus@linet-services.deE<gt>