|
ILIAS
Release_4_0_x_branch Revision 61816
|
Collaboration diagram for ilECSResult:Public Member Functions | |
| __construct ($a_res, $with_headers=false, $a_type=self::RESULT_TYPE_JSON) | |
| Constructor. | |
| setHTTPCode ($a_code) | |
| set HTTP return code | |
| getHTTPCode () | |
| get HTTP code | |
| getPlainResultString () | |
| get unformated result string | |
| getResult () | |
| get result | |
| getHeaders () | |
| get headers | |
Data Fields | |
| const | RESULT_TYPE_JSON = 1 |
Protected Attributes | |
| $log | |
| $result_string = '' | |
| $result_header = '' | |
| $http_code = '' | |
| $result | |
| $result_type | |
| $header_parsing = false | |
| $headers = array() | |
Private Member Functions | |
| init () | |
| init result (json_decode) private | |
| splitHeader () | |
| Split header and content. | |
| parseHeader () | |
| Parse header. | |
Definition at line 35 of file class.ilECSResult.php.
| ilECSResult::__construct | ( | $a_res, | |
$with_headers = false, |
|||
$a_type = self::RESULT_TYPE_JSON |
|||
| ) |
Constructor.
public
| string | result_string |
| int | result type |
| ilECSConnectorException |
Definition at line 59 of file class.ilECSResult.php.
References $ilLog, and init().
Here is the call graph for this function:| ilECSResult::getHeaders | ( | ) |
get headers
public
Definition at line 126 of file class.ilECSResult.php.
| ilECSResult::getHTTPCode | ( | ) |
| ilECSResult::getPlainResultString | ( | ) |
get unformated result string
public
Definition at line 104 of file class.ilECSResult.php.
References $result_string.
| ilECSResult::getResult | ( | ) |
get result
public
Definition at line 116 of file class.ilECSResult.php.
References $result.
|
private |
init result (json_decode) private
Definition at line 136 of file class.ilECSResult.php.
References parseHeader(), and splitHeader().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Parse header.
private
Definition at line 188 of file class.ilECSResult.php.
References $location.
Referenced by init().
Here is the caller graph for this function:| ilECSResult::setHTTPCode | ( | $a_code | ) |
set HTTP return code
public
| string | http code |
Definition at line 83 of file class.ilECSResult.php.
|
private |
Split header and content.
private
| ilECSConnectorException |
Definition at line 166 of file class.ilECSResult.php.
Referenced by init().
Here is the caller graph for this function:
|
protected |
Definition at line 46 of file class.ilECSResult.php.
|
protected |
Definition at line 48 of file class.ilECSResult.php.
|
protected |
Definition at line 43 of file class.ilECSResult.php.
Referenced by getHTTPCode().
|
protected |
Definition at line 39 of file class.ilECSResult.php.
|
protected |
Definition at line 44 of file class.ilECSResult.php.
Referenced by getResult().
|
protected |
Definition at line 42 of file class.ilECSResult.php.
|
protected |
Definition at line 41 of file class.ilECSResult.php.
Referenced by getPlainResultString().
|
protected |
Definition at line 45 of file class.ilECSResult.php.
| const ilECSResult::RESULT_TYPE_JSON = 1 |
Definition at line 37 of file class.ilECSResult.php.