Re: [CDBI] How do I add a method to a loaded class?

[prev] [thread] [next] [Date index for 2005/08/07]

From: Alex Aminoff
Subject: Re: [CDBI] How do I add a method to a loaded class?
Date: 20:34 on 07 Aug 2005
Well, I got it working for my purposes, but I had to pretty much treat all
columns as methods instead of columns. By which I mean, I could not use
$row->get($field), instead I had to use $row->$field(). But that syntax
seems to work so I suppose I am ok.

Thank you for the help. I have the sense that the correct way to do this has
to do with inheriting methods from a class that you pass as an argument to
Class::DBI::Loader, but my understanding of OO perl is not up to that.

 - Alex

----- Original Message ----- 
From: "Peter Speltz" <peterspeltz@xxxxx.xxx>
To: <classdbi@xxxxx.xxxxxxxxxxxxxxxx.xxx>
Sent: Sunday, August 07, 2005 12:18 PM
Subject: Re: [CDBI] How do I add a method to a loaded class?


>The columns method with no arguments returns 'ALL' columns.  This
>strangely does not return TEMP columns  in .96  (probably for good
>reason though).

By "return" I meant "include". :)  ALLcolumn does not include TEMP
columns in .96.

_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi


_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

(message missing)

[CDBI] How do I add a method to a loaded class?
Alex Aminoff 00:22 on 07 Aug 2005

Re: [CDBI] How do I add a method to a loaded class?
Alex Aminoff 20:34 on 07 Aug 2005

Generated at 09:40 on 09 Aug 2005 by mariachi v0.52