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);
132 $oProcessor->process();
150 $blSendData = (bool) $this->
_getConfig()->getConfigParam(
'blLoadDynContents');
162 $oOnlineLicenseCheck->validateShopSerials();
175 $blNeedToSend =
false;
178 $blNeedToSend =
true;
181 return $blNeedToSend;
191 return (
int) $this->
_getConfig()->getSystemConfigParameter(
'sOnlineLicenseNextCheckTime');
204 $iNextCheckTime = $oUtilsDate->formTime(
'tomorrow', $sHourToCheck);
206 $this->
_getConfig()->saveSystemConfigParameter(
'str',
'sOnlineLicenseNextCheckTime', $iNextCheckTime);
217 $sCheckTime = $this->
_getConfig()->getSystemConfigParameter(
'sOnlineLicenseCheckTime');
219 $iHourToCheck = rand(8, 23);
220 $iMinuteToCheck = rand(0, 59);
221 $iSecondToCheck = rand(0, 59);
223 $sCheckTime = $iHourToCheck .
':' . $iMinuteToCheck .
':' . $iSecondToCheck;
224 $this->
_getConfig()->saveSystemConfigParameter(
'str',
'sOnlineLicenseCheckTime', $sCheckTime);
239 $iCurrentTime = $oUtilsDate->getTime();
241 return $iCurrentTime;
279 $oServerNodesManager =
oxNew(
'oxServersManager');
282 $oServerNodeChecker =
oxNew(
'oxServerChecker');
285 $oUtilsServer =
oxNew(
'oxUtilsServer');
292 return oxNew(
'oxServerProcessor', $oServerNodesManager, $oServerNodeChecker, $oUtilsServer, $oUtilsDate);