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

Fires after saving a review.


Description

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


Parameters

$data

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

$isNew

(bool)  True in case the review has been created, false in case an existing review 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 review.
 *
 * @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 onAfterSaveReview($data, $isNew, $table)
{
    /**
     * @todo do something after saving a review
     */
}

Changelog

VersionDescription
1.7 Introduced.
Last Update: 2021-10-08 15:31
Helpful?
See Also: