SlimCD
abstract class SlimCD implements SlimCD
Class SlimCD.
Properties
string | $transactionUrl | Transaction URL. | |
string | $statsURL | Stats URL. | |
bool | $debug | Whether or not debug mode is on. Default is off. | |
protected | $send | Data to send. | |
protected | $receive | Data that is received. | |
protected int | $defaultTimeout | Curl timeout. | |
protected bool | $verifyPeer | Curl Verify Peer. |
Methods
object
buildError($url, $errorMessage)
Create an error using the URL and error message.
mixed|object
httpPost($urlString, $timeout, $nameValueArray)
Use curl to POST the request to SlimCd.
int
getTimeout($timeout)
Get current timeout value from property.
string
getVersion()
Get the current version of the client.
setVerifyPeer($verifyPeer)
You can disable verify peer, but it is not recommended.
Details
at line 73
protected object
buildError($url, $errorMessage)
Create an error using the URL and error message.
at line 100
protected mixed|object
httpPost($urlString, $timeout, $nameValueArray)
Use curl to POST the request to SlimCd.
at line 181
protected int
getTimeout($timeout)
Get current timeout value from property.
at line 197
string
getVersion()
Get the current version of the client.
at line 207
setVerifyPeer($verifyPeer)
You can disable verify peer, but it is not recommended.