What's the purpose of HookRegistry::call

General inquiries about the PKP.

Moderators: jmacgreg, btbell, michael, bdgregg, vgabler, barbarah, 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.
Posts: 35
Joined: Fri Feb 29, 2008 3:05 am

What's the purpose of HookRegistry::call

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


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:

Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

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.

Alec Smecher
Public Knowledge Project Team

Return to “General Discussion”

Who is online

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