Classes are Capitilized, use camelcase, and have underscores to namespace them. Ex) TWP_Mapper_User.
Methods and properties are not capitilized and camel capped: getID()
I also believe that the camel case has higher precedence over the underscore. Do_SubmitPage has a logical division between Do and SubmitPage (which can be further divided into Submit Page).
Now, I wonder what I should do if a method references an object or something with underscores. If you where in this situation, which of the following would you do?
Code: Select all
function getMapperUser();
function getMapper_User();
function get_Mapper_User();
function get_MapperUser();