{{ !articles[0].partner.isSponsoringArticle ? "Platinum" : "Portal" }} Partner

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
{{ tag }}, {{tag}},

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

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks