[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [892] trunk/LedgerSMB
- Subject: SF.net SVN: ledger-smb: [892] trunk/LedgerSMB
- From: ..hidden..
- Date: Tue, 13 Mar 2007 19:56:06 -0700
Revision: 892
http://svn.sourceforge.net/ledger-smb/?rev=892&view=rev
Author: einhverfr
Date: 2007-03-13 19:56:06 -0700 (Tue, 13 Mar 2007)
Log Message:
-----------
Added AUTOLOAD function to LedgerSMB::DBObject for raw DBObjects (useful in custom scripting)
Modified Paths:
--------------
trunk/LedgerSMB/DBObject.pm
trunk/LedgerSMB/Setting.pm
Modified: trunk/LedgerSMB/DBObject.pm
===================================================================
--- trunk/LedgerSMB/DBObject.pm 2007-03-13 05:55:52 UTC (rev 891)
+++ trunk/LedgerSMB/DBObject.pm 2007-03-14 02:56:06 UTC (rev 892)
@@ -30,6 +30,13 @@
our @ISA = qw(LedgerSMB);
+our $AUTOLOAD;
+
+sub AUTOLOAD {
+ my ($self) = shift;
+ $self->exec_method($AUTOLOAD, @_);
+}
+
sub new {
my $self = shift @_;
my $lsmb = shift @_;
Modified: trunk/LedgerSMB/Setting.pm
===================================================================
--- trunk/LedgerSMB/Setting.pm 2007-03-13 05:55:52 UTC (rev 891)
+++ trunk/LedgerSMB/Setting.pm 2007-03-14 02:56:06 UTC (rev 892)
@@ -57,7 +57,7 @@
$self->merge($hashref, 'value');
}
-sub parse_incriment {
+sub parse_increment {
my $self = shift;
my $myconfig = shift;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.