Open GoogleCodeExporter opened 9 years ago
I extended the new option "useGetSetMethods with some following features and
I also included the patch for the issue 13 (Date parsing writing):
- Set/Get methods now must have a capital letter after the 'set' (i.e.
setVar1/getVar1 but not setvar1/getvar1), though it is now conform with camel
case notation / Java Bean. This is done by using ucfirst and lcfirst functions.
Since lcfirst is first available in PHP 5.3, so I added it to HessianUtils.
- stdClass does now have higher priority than using set/get-method, so
attributes of stdClass are now always directly accessed.
Hessian2Parser.php:
- Set method is now only called, if there is a public set method available in the class, so it no longer crashes, when an object has only a get method for an attribute, but no set-method. So only attributes that have both public set and public get functions are transmitted.
I attach the patch as a file and would be pleased, if you would have a look on
it and apply it to the current code. Thanks a lot.
Original comment by ole...@gmx.net
on 23 Feb 2011 at 10:15
Attachments:
Original issue reported on code.google.com by
ole...@gmx.net
on 16 Feb 2011 at 3:51Attachments: