2009年6月4日星期四

Re: [fw-mvc] get and set accessors

> This of course depends on how you implement it. I typically will throw a
> BadMethodCallException or InvalidArgumentException for methods I'm not
> trapping or if the property is one I'm not handling. In the
> implementations I've done, I only allow virtual getters/setters and
> __get/__set access for protected methods defined in the class, and throw
> an exception for any others.

Could you share a copy of your implementation?

-Ed

没有评论: