Currently the only plugins supported are import/export plugins, although this will be greatly expanded in a future release.
Generally, you should use the "import" function to bring a new class into OJS. For example,
- Code: Select all
import('mail/MailTemplate');
would load the file
- Code: Select all
classes/mail/MailTemplate.inc.php
However, most of the system uses a few common design patterns, such as DAOs and DataObjects; see
http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html. Following these patterns, including using the DAORegistry when appropriate, will result in better consistency with the codebase and easier maintenance.