| Lines 34-44
          This object represents a set of holds that have been filled or canceled
      
      
        Link Here | 
        
          | 34 |  | 34 |  | 
        
          | 35 | =head1 API | 35 | =head1 API | 
        
          | 36 |  | 36 |  | 
          
            
              | 37 | =head2 Class Methods | 37 | =head2 Class methods | 
            
              |  |  | 38 |  | 
            
              | 39 | =head3 anonymize | 
            
              | 40 |  | 
            
              | 41 |     $patron->old_holds->anonymize(); | 
            
              | 42 |  | 
            
              | 43 | Anonymize the given I<Koha::Old::Holds> resultset. | 
        
          | 38 |  | 44 |  | 
        
          | 39 | =cut | 45 | =cut | 
        
          | 40 |  | 46 |  | 
          
            
              | 41 | =head3 type | 47 | sub anonymize { | 
            
              |  |  | 48 |     my ( $self, $params ) = @_; | 
            
              | 49 |  | 
            
              | 50 |     my $anonymous_id = C4::Context->preference('AnonymousPatron') || undef; | 
            
              | 51 |  | 
            
              | 52 |     return $self->update( { borrowernumber => $anonymous_id }, { no_triggers => 1 } ); | 
            
              | 53 | } | 
            
              | 54 |  | 
            
              | 55 | =head2 Internal methods | 
            
              | 56 |  | 
            
              | 57 | =head3 _type | 
        
          | 42 |  | 58 |  | 
        
          | 43 | =cut | 59 | =cut | 
        
          | 44 |  | 60 |  | 
            
              | 45 | -  |  |  |