If I wanted to expose private or protected members with Zend_Json::encode, I would implement a toJson method. But if I had an array of these objects, Zend_Json::encode only works on the array itself, but doesn't bother calling the toJson method of any of the items in that array. Is that intended behaviour, or is there a workaround for this?
2009年6月8日星期一
订阅:
博文评论 (Atom)
没有评论:
发表评论