Re: AsForm and accessor names
[prev]
[thread]
[next]
[Date index for 2004/12/30]
--- Peter Speltz <peterspeltz@xxxxx.xxx> wrote:
>
> --- Dave Howorth <dhoworth@xxxxxxx.xxx.xx.xx> wrote:
>
> > This breaks backward compatibility in the _to_*** call interfaces (why
> > are they exported into my namespace anyway?) so I imagine there might be
> > other opinions.
> >
>
> The _to_*** methods are exported because they are called by your class within
> AsForm . This is so current values for fields can be retrieved. So if they
> aren't exported AsForm won't work.
>
Actually its not so values can be returned for objects. Its so the _to_***
methods can be called by yor model classes , period. Your model classes are the
ones that call these methods within AsForm and if they are not exported, you'll
get a method not found error.
=====
pjs
__________________________________
Do you Yahoo!?
Dress up your holiday email, Hollywood style. Learn more.
http://celebrity.mail.yahoo.com