Ignore:
Timestamp:
05/10/09 18:06:27 (15 years ago)
Author:
nanardon
Message:
  • provide id functions to objects
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/objects.pm

    r79 r81  
    133133sub new { 
    134134    my ($class, $base, $id) = @_; 
    135     bless({ id => $id, _base => $base }, $class); 
     135    bless({ _id => $id, _base => $base }, $class); 
    136136} 
    137137 
     
    208208        ) 
    209209    ); 
    210     $sth->execute($self->{id}); 
     210    $sth->execute($self->id); 
    211211    my $res = $sth->fetchrow_hashref; 
    212212    $sth->finish; 
     
    219219            ) 
    220220        ); 
    221         $sth->execute($self->{id}, $field); 
     221        $sth->execute($self->id, $field); 
    222222        my $res = $sth->fetchrow_hashref; 
    223223        $sth->finish; 
     
    253253            ) 
    254254        ); 
    255         $sth->execute(@vals, $self->{id}); 
     255        $sth->execute(@vals, $self->id); 
    256256    } 
    257257     
     
    278278        foreach (keys %ext) { 
    279279            if ($ext{$_}) { 
    280                 $sthu->execute($ext{$_}, $self->{id}, $_) || 
    281                 $sthx->execute($self->{id}, $_, $ext{$_}) or return; 
     280                $sthu->execute($ext{$_}, $self->id, $_) || 
     281                $sthx->execute($self->id, $_, $ext{$_}) or return; 
    282282            } else { 
    283                 $sthd->execute($self->{id}, $_) or return; 
     283                $sthd->execute($self->id, $_) or return; 
    284284            } 
    285285        } 
Note: See TracChangeset for help on using the changeset viewer.