1
0
mirror of synced 2024-12-04 19:06:03 +03:00
umi-module/classes/modules/RetailCRM/events.php
Vitaly Artemev 90bda4ea1d update module (#5)
* add delivery price

* Update events.php

* fix cron task

* fix cron task

* fix customer

* fix order number

* update module
2017-03-13 13:58:33 +03:00

19 lines
764 B
PHP
Executable File

<?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]]);
}
if (isset($_GET['action']) && isset($eventHandlers[$_GET['action']])) {
new umiEventListener('cron', 'RetailCRM', $eventHandlers[$_GET['action']]);
}
new umiEventListener('systemModifyPropertyValue', 'RetailCRM', 'onModifyProperty');
new umiEventListener('systemModifyObject', 'RetailCRM', 'onModifyObject');
new umiEventListener('order-status-changed', 'RetailCRM', 'onOrderStatusChanged');
?>