|
CaMykS 1.0-20261010
|
Public Member Functions | |
| __construct ($paylineAPI, $sdkDefaultLocation, $endpointsDirectoryLocation, $soapOptions=null, $params=null) | |
| log ($level, $message, array $context=[]) | |
| setFailoverOptions (array $options) | |
| setUseFailover ($use=true) | |
| setSdkDefaultLocation ($location) | |
| setSdkAPI ($api) | |
| setEndpointsDirectoryLocation ($location) | |
| getMinSoapTimeout () | |
| __call ($method, $args=null) | |
| retrieveSoapLastContent () | |
Public Attributes | |
| CONST | CALL_WITH_CURL = 'curl' |
| CONST | CALL_WITH_FILE_CONTENT = 'file_get_contents' |
| CONST | ERROR_CODE_TIMEOUT = 'TIMEOUT' |
Protected Member Functions | |
| setWebserviceProperty ($property, $value) | |
| getClientSDK ($method, $tryNum) | |
| buildClientSdk ($location, $extraOptions=array()) | |
| getCachePool () | |
| getUseEndpointsDirectory () | |
| getCallEndpointsDirectoryMethod () | |
| getAllFailoverServicesEndpoint () | |
| getFailoverServicesEndpoint ($tryNumber) | |
| switchSoapContext ($error='', $nextTryNum=0, $callDuration=0) | |
| saveCallData ($sdkClient) | |
| useSercicesEndpointsFailover ($method) | |
| switchSoapContextFailoverOnPaylineError ($method, $nextTryNum, $callStart, $response) | |
| switchSoapContextFailoverOnFault ($method, $nextTryNum, $callStart, $errorCode) | |
| switchSoapContextFailoverOnException ($method, $nextTryNum, $callStart, \Exception $e) | |
| array_merge_recursive_distinct (array &$array1, array &$array2) | |
| Payline\WebserviceClient::__construct | ( | $paylineAPI, | |
| $sdkDefaultLocation, | |||
| $endpointsDirectoryLocation, | |||
$soapOptions = null, |
|||
$params = null |
|||
| ) |
WebserviceClient constructor.
| $paylineAPI | |
| $sdkDefaultLocation | |
| $endpointsDirectoryLocation | |
| $soapOptions | |
| $params |
Exception
| Payline\WebserviceClient::log | ( | $level, | |
| $message, | |||
| array | $context = [] |
||
| ) |
Adds a log record at an arbitrary level.
This method allows for compatibility with common interfaces.
| $level | ||
| $message | ||
| array | $context |
| Payline\WebserviceClient::setFailoverOptions | ( | array | $options | ) |
Basic params
| array | $options |
|
protected |
| $property | |
| $value |
| Payline\WebserviceClient::setUseFailover | ( | $use = true | ) |
| bool | $use |
| Payline\WebserviceClient::setSdkDefaultLocation | ( | $location | ) |
| $location |
| Payline\WebserviceClient::setSdkAPI | ( | $api | ) |
| $api |
| Payline\WebserviceClient::setEndpointsDirectoryLocation | ( | $location | ) |
| $location |
| Payline\WebserviceClient::getMinSoapTimeout | ( | ) |
|
protected |
| $method | |
| $tryNum |
SoapFault
|
protected |
| $location | ||
| array | $extraOptions |
SoapFault
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| $error | |
| $nextTryNum | |
| $callDuration |
| Payline\WebserviceClient::__call | ( | $method, | |
$args = null |
|||
| ) |
| $method | |
| $args |
SoapFault
|
protected |
| SoapClient | $sdkClient |
|
protected |
| $method |
|
protected |
| $method | |
| $nextTryNum | |
| $callStart | |
| $response |
|
protected |
| $method | |
| $nextTryNum | |
| $callStart | |
| $errorCode |
|
protected |
|
protected |
array_merge_recursive does indeed merge arrays, but it converts values with duplicate keys to arrays rather than overwriting the value in the first array with the duplicate value in the second array, as array_merge does. I.e., with array_merge_recursive, this happens (documented behavior):
array_merge_recursive(array('key' => 'org value'), array('key' => 'new value')); => array('key' => array('org value', 'new value'));
array_merge_recursive_distinct does not change the datatypes of the values in the arrays. Matching keys' values in the second array overwrite those in the first array, as is the case with array_merge, i.e.:
array_merge_recursive_distinct(array('key' => 'org value'), array('key' => 'new value')); => array('key' => array('new value'));
Parameters are passed by reference, though only for performance reasons. They're not altered by this function.
| array | $array1 | |
| array | $array2 |
| Payline\WebserviceClient::retrieveSoapLastContent | ( | ) |
| CONST Payline\WebserviceClient::CALL_WITH_CURL = 'curl' |
| CONST Payline\WebserviceClient::CALL_WITH_FILE_CONTENT = 'file_get_contents' |
| CONST Payline\WebserviceClient::ERROR_CODE_TIMEOUT = 'TIMEOUT' |
|
private |
|
private |
|
private |
|
private |
Main Soap URL used for all SDK methods except method that can used failover endpoint ($servicesWithFailover)
|
private |
|
private |
|
private |
Headers SOAP
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |