Actions

Talk

Developer Area/Coding guidelines

From Mahara Wiki

Revision as of 03:25, 20 July 2013 by Kabalin (talk | contribs) (Suggestions of guidelines changes.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

What needs to be added

Functions, Classes

  • Make sure function name starts from letter (no _ before function names).
  • Single whitespace between functions within the class and lib files
  • Double whitespace between classes

Variables

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

general

  • No closing php tag
  • No whitespaces at the end is required

Control statements

  • "case" multiline syntax