...
Some existing code uses direct access so code sniffer will warn about it. However, new files will be expected to follow this and we should attempt to update existing code where possible.
Auto-loading
In order to be autoloaded classes must:
- use the file extenstion '.class.php'
- be located in any of the following locations:
- <base dir>/classes
- <base dir>/*/classes
- <base dir>/plugins/*/classes
- the main name of the file must be a lowercase version of the class name, for exmple if your class is called MyClass the filename would be myclass.class.php
Files
PHP files should only contain php code.
...