29 $this->_oOnlineLicenseCheck = $oOnlineLicenseCheck;
39 if (!$this->_oOnlineLicenseCheck) {
41 $oCurl =
oxNew(
'oxCurl');
44 $oEmailBuilder =
oxNew(
'oxOnlineServerEmailBuilder');
47 $oSimpleXml =
oxNew(
'oxSimpleXml');
50 $oLicenseCaller =
oxNew(
'oxOnlineLicenseCheckCaller', $oCurl, $oEmailBuilder, $oSimpleXml);
53 $oUserCounter =
oxNew(
'oxUserCounter');
56 $oServerManager =
oxNew(
'oxServersManager');
59 $oOLC =
oxNew(
"oxOnlineLicenseCheck", $oLicenseCaller);
60 $oOLC->setServersManager($oServerManager);
61 $oOLC->setUserCounter($oUserCounter);
76 $this->_oOnlineModuleVersionNotifier = $oOnlineModuleVersionNotifier;
86 if (!$this->_oOnlineModuleVersionNotifier) {
88 $oCurl =
oxNew(
'oxCurl');
91 $oMailBuilder =
oxNew(
'oxOnlineServerEmailBuilder');
94 $oSimpleXml =
oxNew(
'oxSimpleXml');
97 $oOnlineModuleVersionNotifierCaller =
oxNew(
"oxOnlineModuleVersionNotifierCaller", $oCurl, $oMailBuilder, $oSimpleXml);
100 $oModuleList =
oxNew(
'oxModuleList');
104 $oOnlineModuleVersionNotifier =
oxNew(
"oxOnlineModuleVersionNotifier", $oOnlineModuleVersionNotifierCaller, $oModuleList);
143 $oProcessor->process();
162 $blSendData = (bool) $this->
_getConfig()->getConfigParam(
'blLoadDynContents');
174 $oOnlineLicenseCheck->validateShopSerials();
187 $blNeedToSend =
false;
190 $blNeedToSend =
true;
193 return $blNeedToSend;
203 return (
int) $this->
_getConfig()->getSystemConfigParameter(
'sOnlineLicenseNextCheckTime');
216 $iNextCheckTime = $oUtilsDate->formTime(
'tomorrow', $sHourToCheck);
218 $this->
_getConfig()->saveSystemConfigParameter(
'str',
'sOnlineLicenseNextCheckTime', $iNextCheckTime);
229 $sCheckTime = $this->
_getConfig()->getSystemConfigParameter(
'sOnlineLicenseCheckTime');
231 $iHourToCheck = rand(8, 23);
232 $iMinuteToCheck = rand(0, 59);
233 $iSecondToCheck = rand(0, 59);
235 $sCheckTime = $iHourToCheck .
':' . $iMinuteToCheck .
':' . $iSecondToCheck;
236 $this->
_getConfig()->saveSystemConfigParameter(
'str',
'sOnlineLicenseCheckTime', $sCheckTime);
251 $iCurrentTime = $oUtilsDate->getTime();
253 return $iCurrentTime;
291 $oServerNodesManager =
oxNew(
'oxServersManager');
294 $oServerNodeChecker =
oxNew(
'oxServerChecker');
297 $oUtilsServer =
oxNew(
'oxUtilsServer');
304 return oxNew(
'oxServerProcessor', $oServerNodesManager, $oServerNodeChecker, $oUtilsServer, $oUtilsDate);