From 684307a83438a96ed4dd96968f2958f760a9ff06 Mon Sep 17 00:00:00 2001 From: Jonathan Ernst Date: Wed, 28 Jun 2006 17:21:58 +0000 Subject: [PATCH] Update coding standards to specify function prefix that should match the module name and 'sh' a new variable prefix that means 'string html' --- CODING_STANDARD | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CODING_STANDARD b/CODING_STANDARD index ffd483e..bba722d 100644 --- a/CODING_STANDARD +++ b/CODING_STANDARD @@ -22,6 +22,7 @@ Scalar types: i for integers f for floats s for strings +sh for html strings b for booleans Compound types: a for arrays @@ -41,7 +42,7 @@ $hResult /** * Functions naming */ -1)functions name should be declarative (i.e. put a declarative verb as the first word like in do_someting()) +1)functions name should be declarative and be prefixed with the name of the module (=file) where it is stored (for example image_show_thumbnail()) 2)methods (functions inside a class) are named like this: setMyName() (i.e. words separated with an upper case character) 3)normal functions (outside a class) are named like this: query_appdb() (i.e. words separated with an underscore)