2007-04-14 01:49:11 +04:00
|
|
|
|
2007-04-20 00:41:19 +04:00
|
|
|
* Function names may only contain alphanumeric characters. Underscores are not permitted. Numbers are permitted in function names but are discouraged.
|
2007-04-14 01:49:11 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-20 00:41:19 +04:00
|
|
|
* Function names must always start with a lowercase letter. When a function name consists of more than one word, the first letter of each new word must be capitalized. This is commonly called the "studlyCaps" or "camelCaps" method.
|
2007-04-14 01:49:11 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-20 00:41:19 +04:00
|
|
|
* Verbosity is encouraged. Function names should be as verbose as is practical to enhance the understandability of code.
|
2007-04-14 01:49:11 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-20 00:41:19 +04:00
|
|
|
* For object-oriented programming, accessors for objects should always be prefixed with either "get" or "set". This applies to all classes except for Doctrine_Record which has some accessor methods prefixed with 'obtain' and 'assign'. The reason
|
2007-04-14 01:49:11 +04:00
|
|
|
for this is that since all user defined ActiveRecords inherit Doctrine_Record, it should populate the get / set namespace as little as possible.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-20 00:41:19 +04:00
|
|
|
* Functions in the global scope ("floating functions") are NOT permmitted. All static functions should be wrapped in a static class.
|
2007-04-14 01:49:11 +04:00
|
|
|
|
2007-04-13 00:52:30 +04:00
|
|
|
|