mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-26 16:18:47 +00:00
20 lines
518 B
PHP
20 lines
518 B
PHP
<?php
|
|
/*************************************
|
|
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
************************************/
|
|
class MyExtensionHandler extends VTEventHandler {
|
|
|
|
function handleEvent($eventName, $data) {
|
|
|
|
if($eventName == 'vte.entity.beforesave') {//crmv@207852
|
|
// Entity is about to be saved, take required action
|
|
}
|
|
|
|
if($eventName == 'vte.entity.aftersave') {
|
|
// Entity has been saved, take next action
|
|
}
|
|
}
|
|
}
|
|
|
|
?>
|