|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Collaboration diagram for ilCurlConnection:Public Member Functions | |
| __construct ($a_url='') | |
| Constructor. More... | |
| getResponseHeader () | |
| Get response header as string. More... | |
| getResponseHeaderArray () | |
| Get response header as array. More... | |
| init () | |
| Init curl connection. More... | |
| setOpt ($a_option, $a_value) | |
| Wrapper for curl_setopt. More... | |
| exec () | |
| Wrapper for curl_exec. More... | |
| parseResponse ($a_response) | |
| parse response body More... | |
| getResponseBody () | |
| Get responce body. More... | |
| getInfo ($opt=0) | |
| Get informations about a specific transfer. More... | |
| close () | |
| Close connection. More... | |
| __destruct () | |
| Destructor @access public. More... | |
Static Public Member Functions | |
| static | _isCurlExtensionLoaded () |
| Check if curl extension is loaded. More... | |
Protected Attributes | |
| $url = '' | |
| $ch = null | |
Private Member Functions | |
| parseHeader ($handle, $header) | |
| Parse respone header. More... | |
Private Attributes | |
| $header_plain = '' | |
| $header_arr = array() | |
| $response_body = '' | |
Definition at line 38 of file class.ilCurlConnection.php.
| ilCurlConnection::__construct | ( | $a_url = '' | ) |
Constructor.
@access public
| string | url for connection |
| ilCurlConnectionException |
Definition at line 56 of file class.ilCurlConnection.php.
| ilCurlConnection::__destruct | ( | ) |
Destructor @access public.
Definition at line 237 of file class.ilCurlConnection.php.
References close().
Here is the call graph for this function:
|
staticfinal |
Check if curl extension is loaded.
@access public
Definition at line 72 of file class.ilCurlConnection.php.
Referenced by ilLinkChecker\__validateLinks(), ilMediaImageUtil\getImageSize(), and ilClient\updateNIC().
Here is the caller graph for this function:
|
final |
Close connection.
@access public
Definition at line 224 of file class.ilCurlConnection.php.
Referenced by __destruct().
Here is the caller graph for this function:
|
final |
Wrapper for curl_exec.
@access public
Definition at line 147 of file class.ilCurlConnection.php.
References $res.
| ilCurlConnection::getInfo | ( | $opt = 0 | ) |
Get informations about a specific transfer.
@access public
| int | option e.g CURLINFO_EFFECTIVE_URL |
Definition at line 190 of file class.ilCurlConnection.php.
References $res.
Referenced by parseResponse().
Here is the caller graph for this function:| ilCurlConnection::getResponseBody | ( | ) |
Get responce body.
Definition at line 177 of file class.ilCurlConnection.php.
References $response_body.
| ilCurlConnection::getResponseHeader | ( | ) |
Get response header as string.
Definition at line 84 of file class.ilCurlConnection.php.
References $header_plain.
Referenced by parseHeader().
Here is the caller graph for this function:| ilCurlConnection::getResponseHeaderArray | ( | ) |
Get response header as array.
Definition at line 93 of file class.ilCurlConnection.php.
References $header_arr.
|
final |
Init curl connection.
@access public
| ilCurlConnectionException | on error |
Definition at line 105 of file class.ilCurlConnection.php.
|
private |
Parse respone header.
| mixed | $handle | |
| string | $header |
Definition at line 206 of file class.ilCurlConnection.php.
References $header, $name, and getResponseHeader().
Here is the call graph for this function:| ilCurlConnection::parseResponse | ( | $a_response | ) |
parse response body
| type | $a_response |
Definition at line 165 of file class.ilCurlConnection.php.
References getInfo().
Here is the call graph for this function:
|
final |
Wrapper for curl_setopt.
@access public
| int | CURL_OPTION |
| mixed | bool string or resource |
| ilCurlConnectionException | on error |
Definition at line 132 of file class.ilCurlConnection.php.
|
protected |
Definition at line 41 of file class.ilCurlConnection.php.
|
private |
Definition at line 44 of file class.ilCurlConnection.php.
Referenced by getResponseHeaderArray().
|
private |
Definition at line 43 of file class.ilCurlConnection.php.
Referenced by getResponseHeader().
|
private |
Definition at line 46 of file class.ilCurlConnection.php.
Referenced by getResponseBody().
|
protected |
Definition at line 40 of file class.ilCurlConnection.php.