OXID eShop CE
4.10.2
|
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 () |
Public Attributes | |
const | EXECUTION_TIMEOUT_OPTION = 'CURLOPT_TIMEOUT' |
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 |
Wrapper function to be mocked for testing.
Definition at line 389 of file oxcurl.php.
|
protected |
|
protected |
Check if curl has errors. Set error message if has.
Definition at line 411 of file oxcurl.php.
|
protected |
|
protected |
Decode (if needed) html entity.
mixed | $mParam | query |
Definition at line 446 of file oxcurl.php.
|
protected |
Decodes html entities.
array | $aParams | Parameters. |
Definition at line 431 of file oxcurl.php.
|
protected |
Sets current request HTTP status code.
Definition at line 419 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 401 of file oxcurl.php.
|
protected |
Set Curl Options
Definition at line 356 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 125 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 220 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 144 of file oxcurl.php.
oxCurl::setQuery | ( | $sQuery | ) |
Set query like "param1=value1¶m2=values2.."
string | $sQuery | Request query. |
Definition at line 115 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 91 of file oxcurl.php.
|
protected |
Definition at line 61 of file oxcurl.php.
|
protected |
Definition at line 75 of file oxcurl.php.
|
protected |
Definition at line 47 of file oxcurl.php.
|
protected |
Definition at line 19 of file oxcurl.php.
|
protected |
Definition at line 54 of file oxcurl.php.
|
protected |
Definition at line 68 of file oxcurl.php.
|
protected |
|
protected |
|
protected |
Definition at line 82 of file oxcurl.php.
|
protected |
Definition at line 26 of file oxcurl.php.
const oxCurl::EXECUTION_TIMEOUT_OPTION = 'CURLOPT_TIMEOUT' |
Curl option for setting the timeout of whole execution process.
Definition at line 12 of file oxcurl.php.