Re: Accessing the object index

[prev] [thread] [next] [Date index for 2004/08/10]

From: Perrin Harkins
Subject: Re: Accessing the object index
Date: 18:09 on 10 Aug 2004
On Tue, 2004-08-10 at 09:25, Ian McDonald-ONLINE wrote:
> Are there any undocumented methods for examining the object index.

No.  It's a closure, so you'd need to add a method to Class/DBI.pm to
get access to it.

>  I'd like to be able to do:
> 
> foreach ($class->in_object_index) {
>         $_->update();
> }

The live object index will be empty unless you have objects currently in
scope in memory somewhere else.  You probably should be tracking the
ones you want to update in your own code rather than trying to use the
object index.

- Perrin

Accessing the object index
Ian McDonald-ONLINE 13:25 on 10 Aug 2004

Re: Accessing the object index
colm-cdbi 14:13 on 10 Aug 2004

Re: Accessing the object index
colm-cdbi 14:40 on 10 Aug 2004

Re: Accessing the object index
Perrin Harkins 18:09 on 10 Aug 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52