cvs: php-gtk / CODING_STANDARDS
| From: | Steph Fox | Date: | Thu, 27 Oct 2005 12:34:19 +0000 |
| Subject: | cvs: php-gtk / CODING_STANDARDS | ||
| Groups: | php.gtk.cvs | ||
| Request: | Send a blank email to php-gtk-cvs+get-1964@lists.php.net to get a copy of this message | ||
sfox Thu Oct 27 08:34:19 2005 EDT
Modified files:
/php-gtk CODING_STANDARDS
Log:
Hopefully this is the final change.
http://cvs.php.net/diff.php/php-gtk/CODING_STANDARDS?r1=1.3&r2=1.4&ty=u
Index: php-gtk/CODING_STANDARDS
diff -u php-gtk/CODING_STANDARDS:1.3 php-gtk/CODING_STANDARDS:1.4
--- php-gtk/CODING_STANDARDS:1.3 Wed Oct 26 09:28:49 2005
+++ php-gtk/CODING_STANDARDS Thu Oct 27 08:34:18 2005
@@ -96,7 +96,8 @@
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.