Actions

Talk

Difference between revisions of "Coding style and standards"

From Joomla! Documentation

(Studly caps exception?)
Line 1: Line 1:
 +
Under 'Functions and Methods', is the "protected function _sort()" an error (i.e., can protected methods begin with an underscore or is this meant to be "private function_sort()")?
 +
 
Shouldn't the JText not have spaces?
 
Shouldn't the JText not have spaces?
  

Revision as of 09:13, 26 April 2011

Under 'Functions and Methods', is the "protected function _sort()" an error (i.e., can protected methods begin with an underscore or is this meant to be "private function_sort()")?

Shouldn't the JText not have spaces?

Studly caps exception?

jImport() is given as an example. But the entire codebase is littered with jimport(), as well as lots of 3PD extensions. Do you mean to designate jImport() as the new canonical name for this method, or should we carry this as an exception?