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

36 lines
1.3 KiB
PHP
Raw Normal View History

2016-11-22 18:02:37 +03:00
<?php
class RetailCRM extends def_module {
public function __construct()
{
parent::__construct();
if (cmsController::getInstance()->getCurrentMode() == 'admin') {
$this->__loadLib('__admin.php');
$this->__implement('__RetailCRM_adm');
2016-11-22 18:02:37 +03:00
}
// Подключаем модуль интернет магазина
cmsController::getInstance()->getModule("emarket");
2016-11-22 18:02:37 +03:00
// RetailCRM classes
$this->__loadLib('classes/retailcrm/RCrmActions.php');
$this->__loadLib('classes/retailcrm/RCrmApiClient.php');
$this->__loadLib('classes/retailcrm/RCrmApiResponse.php');
$this->__loadLib('classes/retailcrm/RCrmHistory.php');
$this->__loadLib('classes/retailcrm/RCrmHttpClient.php');
$this->__loadLib('classes/retailcrm/RCrmIcml.php');
$this->__loadLib('classes/retailcrm/RCrmProxy.php');
2016-11-22 18:02:37 +03:00
// Exceptions
$this->__loadLib('classes/retailcrm/RCrmCurlException.php');
$this->__loadLib('classes/retailcrm/RCrmJsonException.php');
2016-11-22 18:02:37 +03:00
// Helpers
$this->__loadLib('classes/retailcrm/RCrmHelpers.php');
$this->__implement('RCrmHelpers');
2016-11-22 18:02:37 +03:00
// Events
$this->__loadLib('__events.php');
$this->__implement('__RetailCRM_events');
2016-11-22 18:02:37 +03:00
}
}