Talk:Developer Area/Coding guidelines

From Mahara Wiki
Revision as of 21:09, 6 September 2013 by Kabalin (talk | contribs) (declare as added to page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

What needs to be added

Functions, Classes

  • Make sure function name starts from letter (no _ before function names, private should be declared as private, php4 time is gone :).
  • Single empty line between functions and between function and code
  • Double empty line between classes


  • No hardcoded binary (security reasons)
  • No hardcoded serialised data (security reasons)


  • No closing php tag
  • No whitespaces at the end is required (currently it is just recommend)

Control statements

  • "case" multiline syntax:
   a = 25;
   b = 100;


case: a = 25; b = 100; break;

All above added to page 06/09/13