CODETRACK NAMING CONVENTIONS EXPLAINED
or
"It's not so important to be rational, just consistent!"
o CodeTrack internal PHP constants (i.e., DEFINEs)
All caps with CT_ prefix: if ( sizeof($hits) == CT_MAX_SEARCH_RESULTS ) ...
o CodeTrack internal PHP lookup array constant construction (analagous to SQL static lookup tables)
Comma-separated list with *no* spaces between entries!
1) DEFINE ("CT_ACCESS_LEVELS", "Developer,Analyst,QA,Manager,Admin");
2) DEFINE ("CT_DEVELOPER_RESPONSES", ",Fixed,Analyzing,As Designed,Enhancement,Duplicate Bug,Not Fixed");
^
Note: Null entries are created via "empty" opening comma
o CodeTrack PHP Global variables
All lowercase, separated by underscores sufficed with _g: $current_session_g
o CodeTrack PHP function names
All lowercase, separated by underscores: FUNCTION save_password( $foo, $bar )
o CodeTrack PHP variables storing array lengths (i.e., sizeof($big_array))
All lowercase, separated by underscores sufficed with _cnt: $project_cnt = sizeof($project_table);
o All CodeTrack PHP page names (i.e., destination in main switch case block for $page)
All lowercase, no separator between words
1) if ($page == "newuser") ...
2) case "savebug": ...
o PHP internal Boolean constants
All caps: $force_attachment = FALSE;
o Apache and PHP built-in variables
All caps (including array elements) separated by underscores:
1) $HTTP_SERVER_VARS["REQUEST_METHOD"]
2) $page = $HTTP_POST_VARS["page"];
o XML elements or other entities which will "become" XML downstream
Leading caps, separated by underscores if multi-word
1) XML entries: