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.
oxOnlineCaller._executeCurlCall | ( | $ | sUrl, | |
$ | sXml | |||
) | [private] |
Executes CURL call with given parameters.
string | $sUrl | |
string | $sXml |
Definition at line 157 of file oxonlinecaller.php.
oxOnlineCaller._formEmail | ( | $ | oRequest | ) | [protected] |
Forms email.
oxOnlineRequest | $oRequest |
Reimplemented in oxOnlineLicenseCheckCaller.
Definition at line 102 of file oxonlinecaller.php.
oxOnlineCaller._formXMLRequest | ( | $ | oRequest | ) | [protected] |
Forms XML request.
oxOnlineRequest | $oRequest |
Definition at line 114 of file oxonlinecaller.php.
oxOnlineCaller._getCurl | ( | ) | [protected] |
oxOnlineCaller._getEmailBuilder | ( | ) | [protected] |
Gets email builder.
Definition at line 144 of file oxonlinecaller.php.
oxOnlineCaller._getServiceUrl | ( | ) | [abstract, protected] |
Gets service url.
Reimplemented in oxOnlineLicenseCheckCaller, and oxOnlineModuleVersionNotifierCaller.
oxOnlineCaller._getSimpleXml | ( | ) | [protected] |
oxOnlineCaller._getXMLDocumentName | ( | ) | [abstract, protected] |
Gets XML document name.
Reimplemented in oxOnlineLicenseCheckCaller, and oxOnlineModuleVersionNotifierCaller.
oxOnlineCaller._increaseFailedCallsCount | ( | $ | iFailedOnlineCallsCount | ) | [private] |
increases failed calls count.
int | $iFailedOnlineCallsCount |
Definition at line 200 of file oxonlinecaller.php.
oxOnlineCaller._resetFailedCallsCount | ( | $ | iFailedOnlineCallsCount | ) | [private] |
Resets config parameter iFailedOnlineCallsCount if it's bigger than 0.
int | $iFailedOnlineCallsCount |
Definition at line 188 of file oxonlinecaller.php.
oxOnlineCaller._sendEmail | ( | $ | sBody | ) | [private] |
Sends an email with server information.
string | $sBody |
Definition at line 177 of file oxonlinecaller.php.
oxOnlineCaller.$_oCurl [private] |
Definition at line 22 of file oxonlinecaller.php.
oxOnlineCaller.$_oEmailBuilder [private] |
Definition at line 27 of file oxonlinecaller.php.
oxOnlineCaller.$_oSimpleXml [private] |
Definition at line 32 of file oxonlinecaller.php.
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.