com gtk/php-gtk: Hopefully this is the final change.: CODING_STANDARDS
[email protected] (David Soria Parra) Thu, 27 Oct 2005 12:34:18 +0000
| Newsgroups | php.gtk.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit: f5c44b80d1bfcd68f86d53c58f8ea5252af141a2 Author: Steph Fox <[email protected]> Thu, 27 Oct 2005 12:34:18 +0000 Parents: e4d9b9042d6d1172e0935a46e5f6171efdd55749 Branches: master Link: http://git.php.net/?p=gtk/php-gtk.git;a=commitdiff;h=f5c44b80d1bfcd68f86d53c58f8ea5252af141a2 Log: Hopefully this is the final change. Changed paths: M CODING_STANDARDS Diff: f5c44b80d1bfcd68f86d53c58f8ea5252af141a2 diff --git a/CODING_STANDARDS b/CODING_STANDARDS index 82e3f8f..6ec9680 100644 --- a/CODING_STANDARDS +++ b/CODING_STANDARDS @@ -96,7 +96,8 @@ Naming conventions: constants, enumerated values and flags throughout. PHP's own internal constants (e.g. PHP_OS) are not affected. For other constants in the global namespace (that is, constants in - your PHP code), stay with the PEAR format: MYCLASS_CONSTANT_NAME. + your PHP code), class constants should follow the MyClass::CONSTANT_NAME + format. Global constants should be uppercase throughout. Global variables: We can't emulate PEAR completely here, but we can stay with the idea of prefixing global variable names with an underscore and an uppercase identifier, e.g. $_MYCLASS_global_varname.