Your cart is empty!
After Save
public function onAfterSaveOption(array $data, bool $isNew, JTable $table) : void
Fires after saving an option.
Description
This hook is triggered after creating or updating a service option record.
Parameters
- $data
-
(array) The properties of the option that have been saved.
- $isNew
-
(bool) True in case the option has been created, false in case an existing option was updated.
- $model
-
(JTable) The table instance that handles the saving process.
Return Value
Boolean. True on success, false otherwise.
Example
/**
* Trigger hook to allow the plugins to make something after
* saving a service option.
*
* @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 onAfterSaveOption($data, $isNew, $table)
{
/**
* @todo do something after saving a service option
*/
}
Changelog
Version | Description |
---|---|
1.7.0 | Added $table argument. |
1.6.4 | Introduced. |
Last Update: 2021-10-08 14:14
Helpful?