Your cart is empty!
After Save
public function onAfterSaveConfig(array $config, bool $changed, JModel model) : void
Fires after saving the configuration.
Description
This hook is triggered after updating the global configuration of VikAppointments. It can be used to apply further changes by using the new configuration settings.
In addition to this one, it is possible to use the following hooks to respectively handle the configuration of the employees, the closing days, the SMS APIs, the CRON jobs and the applications (API and WebHooks):
onAfterSaveConfigemp
onAfterSaveConfigClosingDays
onAfterSaveConfigSmsApi
onAfterSaveConfigCron
onAfterSaveConfigApp
Parameters
- $config
-
(array) An associative array containing the settings to save.
- $changed
-
(bool) True in case something has changed, false otherwise.
- $model
-
(JModel) The configuration model used to save the settings.
Return Value
None.
Example
/**
* Trigger event to allow the plugins to make something after saving
* a record in the database.
*
* @param array $config The configuration array.
* @param boolean $changed True in case something has changed. (added @since 1.7)
* @param JModel $model The model instance. (added @since 1.7)
*
* @return void
*/
public function onAfterSaveConfig($config, $changed $model)
{
/**
* @todo do stuff after saving the configuration
*/
}
Changelog
Version | Description |
---|---|
1.7.0 |
Introduced |
1.6.6 | Introduced. |
Last Update: 2021-10-06 16:58
Helpful?