1
0
mirror of synced 2024-12-05 03:16:04 +03:00
umi-module/classes/modules/RetailCRM/events.php

19 lines
764 B
PHP
Raw Permalink Normal View History

2016-11-22 18:02:37 +03:00
<?php
$eventHandlers = array(
'icml' => 'onCronGenerateICML',
'history' => 'onCronSyncHistory',
);
if (isset($_SERVER['argv']) && (isset($_SERVER['argv'][2]) || isset($eventHandlers[$_SERVER['argv'][2]]))) {
new umiEventListener('cron', 'RetailCRM', $eventHandlers[$_SERVER['argv'][2]]);
2016-11-22 18:02:37 +03:00
}
if (isset($_GET['action']) && isset($eventHandlers[$_GET['action']])) {
new umiEventListener('cron', 'RetailCRM', $eventHandlers[$_GET['action']]);
2016-11-22 18:02:37 +03:00
}
2016-11-22 18:02:37 +03:00
new umiEventListener('systemModifyPropertyValue', 'RetailCRM', 'onModifyProperty');
new umiEventListener('systemModifyObject', 'RetailCRM', 'onModifyObject');
new umiEventListener('order-status-changed', 'RetailCRM', 'onOrderStatusChanged');
?>