cvs: php-gtk / CODING_STANDARDS
| From: | Steph Fox | Date: | Wed, 26 Oct 2005 13:28:52 +0000 |
| Subject: | cvs: php-gtk / CODING_STANDARDS | ||
| Groups: | php.gtk.cvs | ||
| Request: | Send a blank email to php-gtk-cvs+get-1962@lists.php.net to get a copy of this message | ||
sfox Wed Oct 26 09:28:52 2005 EDT
Modified files:
/php-gtk CODING_STANDARDS
Log:
Clarification
http://cvs.php.net/diff.php/php-gtk/CODING_STANDARDS?r1=1.2&r2=1.3&ty=u
Index: php-gtk/CODING_STANDARDS
diff -u php-gtk/CODING_STANDARDS:1.2 php-gtk/CODING_STANDARDS:1.3
--- php-gtk/CODING_STANDARDS:1.2 Wed Oct 26 09:22:16 2005
+++ php-gtk/CODING_STANDARDS Wed Oct 26 09:28:49 2005
@@ -84,9 +84,10 @@
MyClass::init()). Structurally we need to divert from PEAR guidelines here,
as we don't have an equivalent hierarchy to reflect: class 'words' should
also begin with an uppercase letter, e.g. GtkWindow, TheClassThatDoesStuff.
- Functions and methods: GTK+ or PHP internal methods should be lower-cased,
- except in static method calls (see above). Functions and methods written
- as part of your PHP code should use the studlyCaps() convention.
+ Functions and methods: GTK+ or PHP internal methods should be lowercase,
+ excepting the class name in static method calls (see above). Functions
+ and methods written as part of your PHP code should use the studlyCaps()
+ convention.
Private class members: single underscore prefix.
Constants: true, false and null are lowercase.
This is where we leave PEAR guidelines completely. In PHP-GTK, the
@@ -98,4 +99,4 @@
your PHP code), stay with the PEAR format: MYCLASS_CONSTANT_NAME.
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 uppercased identifier, e.g. $_MYCLASS_global_varname.
+ an uppercase identifier, e.g. $_MYCLASS_global_varname.