From c97ad04509d3f96fd9928d88eb191f4a84808f42 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Wed, 14 Mar 2007 18:09:59 +0000 Subject: More documentation to DBObject, changed constructor format to use named params, and consolidated conditionals in LedgerSMB::escape git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@898 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Employee.pm | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'LedgerSMB/Employee.pm') diff --git a/LedgerSMB/Employee.pm b/LedgerSMB/Employee.pm index 261d9578..0512cf64 100644 --- a/LedgerSMB/Employee.pm +++ b/LedgerSMB/Employee.pm @@ -29,22 +29,10 @@ your software. =cut package LedgerSMB::Employee; -use LedgerSMB; -use LedgerSMB::DBObject; +use base qw(LedgerSMB::DBObject); use strict; our $VERSION = '1.0.0'; -our @ISA = qw(LedgerSMB::DBObject); - -sub AUTOLOAD { - my $self = shift; - my $AUTOLOAD = $LedgerSMB::Employee::AUTOLOAD; - $AUTOLOAD =~ s/^.*:://; - my $procname = "employee_$AUTOLOAD"; - $self->exec_method(procname => "employee_$AUTOLOAD", args => \@_); - my @call_args; -} - sub save { my $self = shift; my $hashref = shift @{$self->exec_method(procname => "employee_save")}; -- cgit v1.2.3