Develop Events Booking plugin

Events Booking allows you to develop plugins to extend it's features. Infact, it has many plugins come with it by defualt which you can see in the foldder plugins/eventbooking on your site.

Events Booking supports the following events trigger which you can write plugin to handle to add more features to the extension:

onEditEvent

This event is triggered on add/edit event form. It usually used to allows you to display a form to allow admin control the necessary settings for your event. A sample is the Joomla Groups plugin which allows admin to select which user groups registrants of the event will be added to when he registers and make payment for the event.

public function onEditEvent($row)
{
}

onAfterSaveEvent

This event is triggered after the event is saved to database. It is usually used to save the settings data which you displayed on event add/edit screen so that you can used that settings data later

public function onAfterSaveEvent($row, $data, $isNew)
{

}

onAfterStoreRegistrant

This event is triggered after the registration record record is saved to database (before payment is processed)

public onAfterStoreRegistrant($row)
{

}

onAfterPaymentSuccess

This event is triggered when status of the registration record changed from Pending to Paid (after payment is completed or admin change status of registration record from Pending to Paid in case registrant using offline payment method for the registration)

public onAfterPaymentSuccess($row)
{

}

onEventDisplay

This event is triggered on frontend event detail page. You can write a plugin to handle this event to display more information of the event on event details page if needed. Look at jcomments plugin in the package to see how this event can be used.

public onEventDisplay($row)
{

}