OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



What's the purpose of HookRegistry::call

General inquiries about the PKP.

Moderators: jmacgreg, btbell, michael, bdgregg, vgabler, barbarah, John

Forum rules
Feel free to post general inquiries about the PKP Here. We'll also post notes of interest from time to time. You may also want to check out the PKP blog.

What's the purpose of HookRegistry::call

Postby edithlin » Fri Apr 03, 2009 12:48 am

Hi

I am quite new to PHP and now I am trying to add a new file upload page.

When I try to study the OCS codes, I found that HookRegistry::call must be excute first. May I know the purpose of this?

Could you ellobrate by this example?
uploadLayoutVersion function in classes\submission\trackDirector\TrackDirectorAction.inc.php
if ($paperFileManager->uploadedFileExists($fileName) && !HookRegistry::call('TrackDirectorAction::uploadLayoutVersion', array(&$submission))) {

Sorry for my silly question. :oops:
edithlin
 
Posts: 35
Joined: Fri Feb 29, 2008 3:05 am

Re: What's the purpose of HookRegistry::call

Postby asmecher » Mon Apr 06, 2009 8:52 am

Hi edithlin,

See http://pkp.sfu.ca/support/forum/viewtopic.php?f=3&t=4356&p=16968#p16968 -- please avoid duplicating threads, as it's easier for our team to manage.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8329
Joined: Wed Aug 10, 2005 12:56 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests