OXID eShop CE
4.8.11
|
Public Member Functions | |
setUrl ($sUrl) | |
getUrl () | |
setQuery ($sQuery) | |
getQuery () | |
setParameters ($aParameters) | |
getParameters () | |
setHost ($sHost) | |
getHost () | |
setHeader ($aHeader=null) | |
getHeader () | |
setMethod ($sMethod) | |
getMethod () | |
setOption ($sName, $sValue) | |
getOptions () | |
execute () | |
setConnectionCharset ($sCharset) | |
getConnectionCharset () | |
getStatusCode () |
Protected Member Functions | |
_setResource ($rCurl) | |
_getResource () | |
_setOptions () | |
_execute () | |
_close () | |
_setOpt ($sName, $sValue) | |
_getErrorNumber () | |
_saveStatusCode () | |
_prepareQueryParameters ($aParams) | |
_htmlDecode ($mParam) |
Protected Attributes | |
$_rCurl = null | |
$_sUrl = null | |
$_sQuery = null | |
$_sMethod = 'POST' | |
$_aParameters = null | |
$_sConnectionCharset = "UTF-8" | |
$_aHeader = null | |
$_sHost = null | |
$_aOptions = array('CURLOPT_RETURNTRANSFER' => 1) | |
$_sStatusCode = null |
CURL request handler. Handles CURL calls
Definition at line 9 of file oxcurl.php.
|
protected |
|
protected |
|
protected |
Check if curl has errors. Set error message if has.
Definition at line 412 of file oxcurl.php.
|
protected |
|
protected |
Decode (if needed) html entity.
mixed | $mParam | query |
Definition at line 446 of file oxcurl.php.
|
protected |
Clears empty values from array and decodes html entities.
$aParams |
Definition at line 431 of file oxcurl.php.
|
protected |
Sets current request HTTP status code.
Definition at line 420 of file oxcurl.php.
|
protected |
Wrapper function to be mocked for testing.
string | $sName | curl option name to set value to. |
string | $sValue | curl option value to set. |
Definition at line 402 of file oxcurl.php.
|
protected |
Set Curl Options
Definition at line 355 of file oxcurl.php.
|
protected |
oxCurl::execute | ( | ) |
Executes curl call and returns response data as associative array.
oxException | on curl errors |
Definition at line 275 of file oxcurl.php.
oxCurl::getConnectionCharset | ( | ) |
oxCurl::getHeader | ( | ) |
oxCurl::getHost | ( | ) |
oxCurl::getMethod | ( | ) |
oxCurl::getOptions | ( | ) |
oxCurl::getParameters | ( | ) |
oxCurl::getQuery | ( | ) |
Builds query like "param1=value1¶m2=values2.."
Definition at line 118 of file oxcurl.php.
oxCurl::getStatusCode | ( | ) |
oxCurl::getUrl | ( | ) |
oxCurl::setConnectionCharset | ( | $sCharset | ) |
oxCurl::setHeader | ( | $aHeader = null | ) |
oxCurl::setHost | ( | $sHost | ) |
oxCurl::setMethod | ( | $sMethod | ) |
Set method to send (POST/GET)
string | $sMethod | method to send (POST/GET) |
Definition at line 218 of file oxcurl.php.
oxCurl::setOption | ( | $sName, | |
$sValue | |||
) |
Sets an option for a cURL transfer
string | $sName | curl option name to set value to. |
string | $sValue | curl option value to set. |
oxException | on curl errors |
Definition at line 243 of file oxcurl.php.
oxCurl::setParameters | ( | $aParameters | ) |
Sets parameters to be added to call url.
array | $aParameters | parameters |
Definition at line 137 of file oxcurl.php.
oxCurl::setQuery | ( | $sQuery | ) |
Set query like "param1=value1¶m2=values2.."
Definition at line 108 of file oxcurl.php.
oxCurl::setUrl | ( | $sUrl | ) |
Sets url to call
string | $sUrl | URL to call. |
oxException | if url is not valid |
Definition at line 87 of file oxcurl.php.
|
protected |
Definition at line 56 of file oxcurl.php.
|
protected |
Definition at line 69 of file oxcurl.php.
|
protected |
Definition at line 44 of file oxcurl.php.
|
protected |
Definition at line 16 of file oxcurl.php.
|
protected |
Definition at line 50 of file oxcurl.php.
|
protected |
Definition at line 62 of file oxcurl.php.
|
protected |
|
protected |
|
protected |
Definition at line 76 of file oxcurl.php.
|
protected |
Definition at line 23 of file oxcurl.php.