|
From: Barry H. <ba...@tr...> - 2003-07-21 00:11:03
|
I'm using SPOPS on a new project, and there are times where I want to
check whether an object has a certain value in a links_to list. Because
I don't want to cycle through all of if to check each time, I wanted to
create a private value, like
$self->{_feature_hash}
to store a hash for easy checking, but that doesn't work. (I was doing
it in post_fetch_action). It gets cleared out, so that I can't use it.
I'm using SPOPS::Tool::DBI::DiscoverField to set up the fields in the
database, and I set strict_field => 0 while I was testing.
What's the best way to do something like this? Use Class::Accessor?
Barry Hoggard
Tristan Media LLC
e: ba...@tr...
w: www.tristanmedia.com
aim: hoggardb
|