[wp-hackers] Coding Standards: Functions vs. Classes
scribu at gmail.com
Sun Mar 18 10:40:19 UTC 2012
2012/3/18 Michał Środek <michal at srodek.info>
> I prefer full objective style of coding (take a look at Zend Framework
> - http://framework.zend.com/ )
I think Zend Framework is trying too hard to mimic Java, in an effort to
make PHP look more enterprisey:
> It's not so simple. There is also something called a visibility. Some
> functions should be visible outside the class, some not.
In WordPress, private function names begin with an underscore and have
private* in their docblock.
More information about the wp-hackers