Inheritance diagram for oxOnlineCaller:
Collaboration diagram for oxOnlineCaller:Public Member Functions | |
| __construct (oxCurl $oCurl, oxOnlineServerEmailBuilder $oEmailBuilder, oxSimpleXml $oSimpleXml) | |
Public Attributes | |
| const | ALLOWED_HTTP_FAILED_CALLS_COUNT = 4 |
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 52 of file oxonlinecaller.php.
| oxOnlineCaller._executeCurlCall | ( | $ | sUrl, | |
| $ | sXml | |||
| ) | [private] |
Executes CURL call with given parameters.
| string | $sUrl | |
| string | $sXml |
Definition at line 154 of file oxonlinecaller.php.
| oxOnlineCaller._formEmail | ( | $ | oRequest | ) | [protected] |
Forms email.
| oxOnlineRequest | $oRequest |
Reimplemented in oxOnlineLicenseCheckCaller.
Definition at line 99 of file oxonlinecaller.php.
| oxOnlineCaller._formXMLRequest | ( | $ | oRequest | ) | [protected] |
Forms XML request.
| oxOnlineRequest | $oRequest |
Definition at line 111 of file oxonlinecaller.php.
| oxOnlineCaller._getCurl | ( | ) | [protected] |
| oxOnlineCaller._getEmailBuilder | ( | ) | [protected] |
Gets email builder.
Definition at line 141 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 193 of file oxonlinecaller.php.
| oxOnlineCaller._resetFailedCallsCount | ( | $ | iFailedOnlineCallsCount | ) | [private] |
Resets config parameter iFailedOnlineCallsCount if it's bigger than 0.
| int | $iFailedOnlineCallsCount |
Definition at line 181 of file oxonlinecaller.php.
| oxOnlineCaller._sendEmail | ( | $ | sBody | ) | [private] |
Sends an email with server information.
| string | $sBody |
Definition at line 170 of file oxonlinecaller.php.
oxOnlineCaller.$_oCurl [private] |
Definition at line 19 of file oxonlinecaller.php.
oxOnlineCaller.$_oEmailBuilder [private] |
Definition at line 24 of file oxonlinecaller.php.
oxOnlineCaller.$_oSimpleXml [private] |
Definition at line 29 of file oxonlinecaller.php.
Definition at line 14 of file oxonlinecaller.php.
1.7.1