This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This is based on a user request: http://blogs.sun.com/netbeansphp/entry/netbeans_ide_6_5_beta1#comment-1225807965000 The getter and setter feature is really nice... but there is a problem if you follow Zend Framework coding standards...the private and protected properties of a class are prefixed with an underscore '_'...in that case, the getter and setter method names generated by netbeans use underscore instead of camel case notation...for example if the property name is $_name then the getter method name generated is get_name(), not get getName()...is there a way to customise this feature... It should be simple to implement.
C'mon guys, please implement this small feature, almost a year has passed. Because of it's absence i have to edit the generated setters and getters every time.
Any update on this issue? I tried the latest nightly build (200910170201), and it still has not supported this feature. Thank you.
Unfortunately I haven't time to do it. But I can do now small change. Just check, whether the name property starts with underscore and in such case it would be the underscore ignored. It will be sufficient for now?
Hi, I to suffer from this issue. Any chance a patch? Given the popularity of Zend Framework I can imagine many others would like this feature as well. Thanks, Ben
Still not enough time:(. Do you need full customization or what behavior is sufficient for Zend framework developers.
Private and protected variables are prefixed with an underscore. Getters and setters should not contain an underscore the get or set should be lower case an the variable names should be capitalised. See below: Variables: protected $_variable protected $_variableTwo protected $_variableTwentyTwo Getters and Setters: public function getVariable(){ } public function getVariableTwo(){ } public function getVariableTwentyTwo(){ } public function setVariable($variable){ } public function setVariableTwo($variableTwo){ } public function setVariableTwentyTwo($variableTwentyTwo){ } Hope this helps, thanks for your attention to the issue. Ben
*** Bug 187964 has been marked as a duplicate of this bug. ***
Works for me in NB 7.0.1.