ILIAS
Release_4_2_x_branch Revision 61807
|
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 | |
setHeaders ($a_headers) | |
Set header. | |
getHeaders () | |
get headers |
Data Fields | |
const | RESULT_TYPE_JSON = 1 |
const | RESULT_TYPE_URL_LIST = 2 |
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. | |
parseUriList ($a_content) |
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 60 of file class.ilECSResult.php.
References $ilLog, and init().
ilECSResult::getHeaders | ( | ) |
get headers
public
Definition at line 136 of file class.ilECSResult.php.
Referenced by ilECSEContentReader\parseSenderHeader().
ilECSResult::getHTTPCode | ( | ) |
ilECSResult::getPlainResultString | ( | ) |
get unformated result string
public
Definition at line 105 of file class.ilECSResult.php.
References $result_string.
Referenced by parseUriList().
ilECSResult::getResult | ( | ) |
get result
public
Definition at line 117 of file class.ilECSResult.php.
References $result.
|
private |
init result (json_decode) private
Definition at line 146 of file class.ilECSResult.php.
References parseHeader(), parseUriList(), and splitHeader().
Referenced by __construct().
|
private |
Parse header.
private
Definition at line 202 of file class.ilECSResult.php.
References $location.
Referenced by init().
|
private |
<type> | $a_content |
Definition at line 222 of file class.ilECSResult.php.
References getPlainResultString().
Referenced by init().
ilECSResult::setHeaders | ( | $a_headers | ) |
Set header.
array | $a_headers |
Definition at line 126 of file class.ilECSResult.php.
ilECSResult::setHTTPCode | ( | $a_code | ) |
set HTTP return code
public
string | http code |
Definition at line 84 of file class.ilECSResult.php.
|
private |
Split header and content.
private
ilECSConnectorException |
Definition at line 180 of file class.ilECSResult.php.
Referenced by init().
|
protected |
Definition at line 47 of file class.ilECSResult.php.
|
protected |
Definition at line 49 of file class.ilECSResult.php.
|
protected |
Definition at line 44 of file class.ilECSResult.php.
Referenced by getHTTPCode().
|
protected |
Definition at line 40 of file class.ilECSResult.php.
|
protected |
Definition at line 45 of file class.ilECSResult.php.
Referenced by getResult().
|
protected |
Definition at line 43 of file class.ilECSResult.php.
|
protected |
Definition at line 42 of file class.ilECSResult.php.
Referenced by getPlainResultString().
|
protected |
Definition at line 46 of file class.ilECSResult.php.
const ilECSResult::RESULT_TYPE_JSON = 1 |
Definition at line 37 of file class.ilECSResult.php.
const ilECSResult::RESULT_TYPE_URL_LIST = 2 |
Definition at line 38 of file class.ilECSResult.php.
Referenced by ilECSConnector\getResourceList().