All source code files in the Mambo repository shall contain a "page-level" docblock at the top of each file and a "class-level" docblock immediately above each class. Below are examples of such docblocks.
NOTE: The docblock above is a Mambo requirement.
Examples of docblocks to be included immediately above each class:
Required Tags That Have Variable Content
Short Descriptions:
Short descriptions must be provided for all docblocks. They should be a quick sentence, not the name of the item.
@since
This tag is required when a file or class is added after the package's initial release. Do not use it in an initial release.
@deprecated
This tag is required when a file or class is no longer used but has been left in place for backwards compatibility.
Mambo's source code is read by thousands of people, from users to 3PD's, to future developers within the project. Therefore, it is important to make life easier for everyone by formatting the code and docblocks in standardized ways. People can then quickly find the information they are looking for because it is in the expected location. Your cooperation is appreciated.
Recommendation for 3PD's
Files not in the core Mambo repository should have a similar block stating the copyright, the license, and the authors. All files should include the modeline comments to encourage consistency.
Next: Example URL's