OXID eShop CE
4.9.6
|
Public Member Functions | |
__construct (oxCurl $oCurl, oxOnlineServerEmailBuilder $oEmailBuilder, oxSimpleXml $oSimpleXml) |
Public Attributes | |
const | ALLOWED_HTTP_FAILED_CALLS_COUNT = 4 |
const | CURL_EXECUTION_TIMEOUT = 5 |
Protected Member Functions | |
_getXMLDocumentName () | |
_getServiceUrl () | |
_formEmail ($oRequest) | |
_formXMLRequest ($oRequest) | |
_getSimpleXml () | |
_getCurl () | |
_getEmailBuilder () |
Private Member Functions | |
_executeCurlCall ($sUrl, $sXml) | |
_sendEmail ($sBody) | |
_resetFailedCallsCount ($iFailedOnlineCallsCount) | |
_increaseFailedCallsCount ($iFailedOnlineCallsCount) |
Private Attributes | |
$_oCurl | |
$_oEmailBuilder | |
$_oSimpleXml |
Class oxOnlineCaller makes call to given URL which is taken from child classes and sends request parameter.
Definition at line 11 of file oxonlinecaller.php.
oxOnlineCaller::__construct | ( | oxCurl | $oCurl, |
oxOnlineServerEmailBuilder | $oEmailBuilder, | ||
oxSimpleXml | $oSimpleXml | ||
) |
Sets dependencies.
oxCurl | $oCurl | |
oxOnlineServerEmailBuilder | $oEmailBuilder | |
oxSimpleXml | $oSimpleXml |
Definition at line 55 of file oxonlinecaller.php.
|
private |
Executes CURL call with given parameters.
string | $sUrl | |
string | $sXml |
Definition at line 157 of file oxonlinecaller.php.
|
protected |
Forms email.
oxOnlineRequest | $oRequest |
Reimplemented in oxOnlineLicenseCheckCaller.
Definition at line 102 of file oxonlinecaller.php.
|
protected |
Forms XML request.
oxOnlineRequest | $oRequest |
Definition at line 114 of file oxonlinecaller.php.
|
protected |
|
protected |
Gets email builder.
Definition at line 144 of file oxonlinecaller.php.
|
abstractprotected |
Gets service url.
Reimplemented in oxOnlineLicenseCheckCaller, and oxOnlineModuleVersionNotifierCaller.
|
protected |
|
abstractprotected |
Gets XML document name.
Reimplemented in oxOnlineLicenseCheckCaller, and oxOnlineModuleVersionNotifierCaller.
|
private |
increases failed calls count.
int | $iFailedOnlineCallsCount |
Definition at line 200 of file oxonlinecaller.php.
|
private |
Resets config parameter iFailedOnlineCallsCount if it's bigger than 0.
int | $iFailedOnlineCallsCount |
Definition at line 188 of file oxonlinecaller.php.
|
private |
Sends an email with server information.
string | $sBody |
Definition at line 177 of file oxonlinecaller.php.
|
private |
Definition at line 22 of file oxonlinecaller.php.
|
private |
Definition at line 27 of file oxonlinecaller.php.
|
private |
Definition at line 32 of file oxonlinecaller.php.
const oxOnlineCaller::ALLOWED_HTTP_FAILED_CALLS_COUNT = 4 |
Definition at line 14 of file oxonlinecaller.php.
const oxOnlineCaller::CURL_EXECUTION_TIMEOUT = 5 |
Amount of seconds for curl execution timeout.
Definition at line 17 of file oxonlinecaller.php.