You are viewing the PKP Support Forum | PKP Home Wiki

Creating a new class

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Creating a new class

Postby bunswo » Mon Aug 15, 2005 2:04 pm

I would like to create a new class called expertise to associtate users with multiple areas of expertise to be used while searching users.

I am having trouble making it work properly.

This is what I have done so far:

1. created a new directory in classes called expertise
2. created two files in that directory Expertise.inc.php, ExpertiseDAO.inc.php
3. I based these two files on User.inc.php and UserDAO.inc.php and modified them to correspond to my new expertise table in the database
4. I added an entry in DAORegistry.inc.php like this:
Code: Select all
case 'ExpertiseDAO': return 'expertise.ExpertiseDAO';

5. When I use this following line in ManagerHandler.inc.php I get a blank screen:
Code: Select all
$expertiseDao = &DAORegistry::getDAO('ExpertiseDAO');

Is there anything else I have to do to register this new class?

Thanks in advance.

Last edited by bunswo on Tue Aug 16, 2005 11:17 am, edited 1 time in total.
Posts: 6
Joined: Mon Aug 15, 2005 1:57 pm

Creating a New Class

Postby bunswo » Tue Aug 16, 2005 11:16 am

Can anybody direct me documentation on how to add a new class?

Or just check to see what else I have to do here?


Posts: 6
Joined: Mon Aug 15, 2005 1:57 pm

Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest