You are viewing the PKP Support Forum | PKP Home Wiki

creating new classes in OJS 2.0.1

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

creating new classes in OJS 2.0.1

Postby bunswo » Mon Sep 05, 2005 1:51 pm

What is the process for adding new classes in OJS 2.0.1 ? There seems to be more to it than just adding a reference to the new class name in the DAOregistry.ini.php file. Is it something to do with the new pluggin folder?
Thanks in advance!
Posts: 6
Joined: Mon Aug 15, 2005 1:57 pm

Re: creating new classes in OJS 2.0.1

Postby asmecher » Tue Sep 06, 2005 8:53 am

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
would load the file
Code: Select all
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.
Posts: 7717
Joined: Wed Aug 10, 2005 12:56 pm

Return to OJS Development

Who is online

Users browsing this forum: No registered users and 1 guest