Details
Description
provide two templates in examples/ directory or something to use to create new sourcefiles. libtemplate and scripttemplate. libtemplate just contains:
- gpl header
- appropriate phpdocs
scripttemplate contains the same as libtemplate, but additionally has example require_once(dirname(_FILE_)) . '/config.php); and require_login and require_caps or whatever with comments above them describing which ones to leave and which to comment out.
assigning to eloy since petr says he was tweaking headers recently.
Issue Links
| This issue will be resolved by: | ||||
| MDL-19235 | Clean up and rationalise phpdocs and copyright statements across Moodle |
|
|
|
starting point: http://paste.dollyfish.net.nz/92a184