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

Fires after saving a service.


Description

This hook is triggered after creating or updating a service record.


Parameters

$data

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

$isNew

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

$model

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

Return Value

None.


Example

/**
 * Trigger hook to allow the plugins to make something after
 * saving a service.
 *
 * @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 onAfterSaveService($data, $isNew, $table)
{
    /**
     * @todo do something after saving a service
     */
}

Changelog

VersionDescription
1.7.0 Added $table argument.
1.6.4 Introduced.
Last Update: 2021-10-08 15:38
Helpful?
See Also: