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