Over a million developers have joined DZone.

Make Netbeans Autogenerated PHP Getters And Setters Conform To Zend Naming Conventions

The Netbeans PHP plugin can generate getters and setters for class variables. Unfortunately the generated method names don't conform to the Zend naming conventions. The following combination of regular expressions and BeanShell snippet can be used in jEdit to make the method names conformant    

Regular Expression

function ([gs]et)_(.)([^\(]+)

BeanShell Snippet

"function "+_1+_2.toUpperCase()+_3

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}