Extensibility

J!Research has become extensible with plug-ins. This means that events are added to the whole component. This events will be described in this document.

Plugins created for J!Research must be in the group jresearch:

<install version="1.5" type="plugin" group="jresearch">

These plug-ins will be automatically loaded.

This events are added in the version >= 1.1.2.1. Any changes will be reported.

Backend

onBeforeEditJResearchEntity

arguments: string $controller, int $id = null

This event will be triggered before the form is rendered and ready to edit the specific item.

$controller values: cooperation, facility, financier, member, project, publication, thesis, researcharea

onAfterRenderJResearchEntityForm

arguments: string $controller, int $id = null

This event will be triggered after rendering the form to edit the specific item.

$controller values: cooperation, facility, financier, member, project, publication, thesis, researcharea

onBeforeListJResearchEntities

arguments: string $controller

This event will be triggered before listing J!Research entities of specific controller.

$controller values: cooperations, facilities, financiers, staff, projects, publications, theses, researchareas

onAfterListJResearchEntities

arguments: string $controller

This event will be triggered after listing and rendering J!Research entities.

$controller values: cooperations, facilities, financiers, staff, projects, publications, theses, researchareas

Frontend

onBeforeDisplayJResearchEntity

arguments: string $controller, int $id = null

This event is for the frontend and will be triggered before a single item of a specific controller is displayed.

$controller values: cooperation, facility, financier, member, project, publication, thesis

onAfterRenderJResearchEntity

arguments: string $controller, int $id = null

This event is for the frontend and will be triggered after the rendering of a single item.

$controller values: cooperation, facility, financier, member, project, publication, thesis

onBeforeListFrontendJResearchEntities

arguments: string $controller, string $layout

A frontend event which will be triggered before listing J!Research entities.

$controller values: cooperations, facilities, financiers, staff, projects, publications, theses

$layout values: Layout value from the view. ($this->getLayout())

onAfterListFrontendJResearchEntities

arguments: string $controller, string $layout

A frontend event which will be triggered after listing J!Research entities.

$controller values: cooperations, facilities, financiers, staff, projects, publications, theses

$layout values: Layout value from the view. ($this->getLayout())

onPrepareJResearchContent

arguments: string $controller, string $item

Triggered before a J!Research entity is displayed allowing developers to make modifications in the entity.

$controller values: cooperation, facility, financier, member, project, publication, thesis

Backend and frontend

onBeforeExecuteJResearchTask

arguments: none

Triggered before J!Research processes the request based on controller and task specification. Plugin should return true if it intends to handle the request (in that case J!Research will be not responsible of generating a response, the plugin will be in charge of it), false otherwise.

Return: boolean

onBeforeExecuteJResearchTask

arguments: none

Triggered after J!Research has processed the request based on controller and task specification but before the controller performs redirection.

OnAfterSaveJResearchEntity

arguments: string $controller, int $itemId

Triggered after a J!Research entity has been saved.

$controller values: cooperation, facility, financier, member, project, publication, thesis, researcharea