Skip to content

Commit

Permalink
Private members don't have to be functions.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/pear-core/pear/pear-core/trunk@51710 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
jon committed Jul 18, 2001
1 parent 621270e commit 04b4099
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CODING_STANDARDS
Expand Up @@ -129,11 +129,12 @@ and each letter that starts a new "word" is capitalized. Some examples:

connect() getData() buildSomeWidget()

Private methods (meaning methods that an intented to be called only from
within the same class; PHP does not yet support truly-enforceable private
namespaces) are preceeded by a single underscore. For example:
Private class members (meaning class members that an intented to be used
only from within the same class in which they are declared; PHP does not yet
support truly-enforceable private namespaces) are preceeded by a single
underscore. For example:

_sort() _initTree() _validateInput()
_sort() _initTree() $_status


------------
Expand Down

0 comments on commit 04b4099

Please sign in to comment.