41 $documentId = $event->getParameter(
'documentId');
42 $data = $event->getParameter(
'data');
44 $dbRes = Sale\Internals\CallbackRegistryTable::getList([
46 '=DOCUMENT_ID' => $documentId
50 if ($result = $dbRes->fetch())
52 if (!Main\ModuleManager::isModuleInstalled($result[
'MODULE_ID']))
57 Main\Loader::includeModule($result[
'MODULE_ID']);
59 $class = $result[
'CALLBACK_CLASS'];
60 $method = $result[
'CALLBACK_METHOD'];
62 $class::$method($data[
'value']);
64 Sale\Internals\CallbackRegistryTable::delete($result[
'ID']);