OXID eShop CE
6.1.4
|
Public Member Functions | |
setAppServerExporter ($appServerExporter) | |
getAppServerExporter () | |
setUserCounter ($userCounter) | |
__construct ($caller) | |
getErrorMessage () | |
isException () | |
validateShopSerials () | |
validateNewSerial ($serial) | |
validate ($serials) | |
Public Attributes | |
const | CONFIG_VAR_NAME = 'iOlcSuccess' |
Protected Member Functions | |
getUserCounter () | |
setErrorMessage ($errorMessage) | |
getCaller () | |
validateResponse ($response) | |
formRequest ($serials) | |
formCounters () | |
logSuccess () | |
setIsException ($isException) | |
startGracePeriod () | |
Protected Attributes | |
$validResponseCode = 0 | |
$validResponseMessage = 'ACK' | |
$serialKeys = [] | |
$errorMessage = '' | |
$isException = false | |
$caller = null | |
$userCounter = null | |
$appServerExporter = null | |
Performs Online License Key check.
OxidEsales\EshopCommunity\Core\OnlineLicenseCheck::__construct | ( | $caller | ) |
Sets dependencies.
\OxidEsales\Eshop\Core\OnlineLicenseCheckCaller | $caller |
|
protected |
Forms shop counters array for sending to OXID server.
|
protected |
Builds request object with required parameters.
array | $serials | Array of serials to add to request. |
oxException |
OxidEsales\EshopCommunity\Core\OnlineLicenseCheck::getAppServerExporter | ( | ) |
Gets servers manager.
|
protected |
Gets caller.
OxidEsales\EshopCommunity\Core\OnlineLicenseCheck::getErrorMessage | ( | ) |
Get error message.
|
protected |
Gets user counter.
OxidEsales\EshopCommunity\Core\OnlineLicenseCheck::isException | ( | ) |
Indicates whether the exception was thrown
|
protected |
Registers the latest Successful Online License check.
OxidEsales\EshopCommunity\Core\OnlineLicenseCheck::setAppServerExporter | ( | $appServerExporter | ) |
Sets servers manager.
\OxidEsales\Eshop\Core\Service\ApplicationServerExporterInterface | $appServerExporter |
|
protected |
Set error message.
string | $errorMessage | Error message |
|
protected |
Sets exception flag.
bool | $isException | Exception flag. |
OxidEsales\EshopCommunity\Core\OnlineLicenseCheck::setUserCounter | ( | $userCounter | ) |
Sets user counter.
\OxidEsales\Eshop\Core\UserCounter | $userCounter |
|
protected |
Starts grace period. Sets to config options.
OxidEsales\EshopCommunity\Core\OnlineLicenseCheck::validate | ( | $serials | ) |
The Online shop license check is performed. Returns check result.
array | $serials | Serial keys to be checked. |
OxidEsales\EshopCommunity\Core\OnlineLicenseCheck::validateNewSerial | ( | $serial | ) |
The Online shop license check for the new serial is performed. Returns check result.
string | $serial | Serial to check. |
|
protected |
Performs a check of the response code and message.
\OxidEsales\Eshop\Core\OnlineLicenseCheckResponse | $response |
OxidEsales\EshopCommunity\Core\OnlineLicenseCheck::validateShopSerials | ( | ) |
Takes active serial key and performs online license check in case it has never been performed before. In case of invalid license key, eShop is declared as unlicensed. In case of validation exception (eg. service can not be reached) the check is postponed until the next call.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
const OxidEsales\EshopCommunity\Core\OnlineLicenseCheck::CONFIG_VAR_NAME = 'iOlcSuccess' |
Variable name to be used in oxConfig table