public function onAfterSaveReservation(array $data, bool $isNew, JTable $table) : void

Fires after saving an appointment.


Description

This hook is triggered after creating or updating an appointment record.


Parameters

$data

(array)  The properties of the appointment that have been saved.

$isNew

(bool)  True in case the appointment has been created, false in case an existing appointment was updated.

$table

(JTable)  The table instance that handles the saving process.

Return Value

None.


Example

/**
 * Trigger hook to allow the plugins to make something after
 * saving an appointment.
 *
 * @param   mixed    $data    The saved record.
 * @param   boolean  $isNew   True if new, false in case of update.
 * @param   JTable   $table   The table instance.
 *
 * @return  void
 */
public function onAfterSaveReservation($data, $isNew, $table)
{
    /**
     * @todo do something after saving an appointment
     */
}

Changelog

VersionDescription
1.7.0 Added $table argument.
1.6.4 Introduced.
Last Update: 2021-10-05 16:49
Helpful?