ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($a_res, $with_headers=false, $a_type=self::RESULT_TYPE_JSON) | |
Constructor. More... | |
setHTTPCode ($a_code) | |
set HTTP return code More... | |
getHTTPCode () | |
get HTTP code More... | |
getPlainResultString () | |
get unformated result string More... | |
getResult () | |
get result More... | |
setHeaders ($a_headers) | |
Set header. More... | |
getHeaders () | |
get headers More... | |
Data Fields | |
const | RESULT_TYPE_JSON = 1 |
const | RESULT_TYPE_URL_LIST = 2 |
const | HEADER_ECS_SENDER = 'X-EcsSender' |
Protected Attributes | |
$log | |
$result_string = '' | |
$result_header = '' | |
$http_code = '' | |
$result | |
$result_type | |
$header_parsing = false | |
$headers = array() | |
$header_map = array() | |
Private Member Functions | |
init () | |
init result (json_decode) private More... | |
splitHeader () | |
Split header and content. More... | |
parseHeader () | |
Parse header. More... | |
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 63 of file class.ilECSResult.php.
References $a_type, $DIC, $ilLog, and init().
ilECSResult::getHeaders | ( | ) |
ilECSResult::getHTTPCode | ( | ) |
ilECSResult::getPlainResultString | ( | ) |
get unformated result string
public
Definition at line 109 of file class.ilECSResult.php.
References $result_string.
Referenced by parseUriList().
ilECSResult::getResult | ( | ) |
get result
public
Definition at line 121 of file class.ilECSResult.php.
References $result.
|
private |
init result (json_decode) private
Definition at line 150 of file class.ilECSResult.php.
References parseHeader(), parseUriList(), and splitHeader().
Referenced by __construct().
|
private |
Parse header.
private
Definition at line 200 of file class.ilECSResult.php.
References $location.
Referenced by init().
|
private |
<type> | $a_content |
Definition at line 229 of file class.ilECSResult.php.
References $list, and getPlainResultString().
Referenced by init().
ilECSResult::setHeaders | ( | $a_headers | ) |
ilECSResult::setHTTPCode | ( | $a_code | ) |
set HTTP return code
public
string | http code |
Definition at line 88 of file class.ilECSResult.php.
|
private |
Split header and content.
private
ilECSConnectorException |
Definition at line 181 of file class.ilECSResult.php.
Referenced by init().
|
protected |
Definition at line 52 of file class.ilECSResult.php.
|
protected |
Definition at line 49 of file class.ilECSResult.php.
|
protected |
Definition at line 51 of file class.ilECSResult.php.
|
protected |
Definition at line 46 of file class.ilECSResult.php.
Referenced by getHTTPCode().
|
protected |
Definition at line 42 of file class.ilECSResult.php.
|
protected |
Definition at line 47 of file class.ilECSResult.php.
Referenced by getResult().
|
protected |
Definition at line 45 of file class.ilECSResult.php.
|
protected |
Definition at line 44 of file class.ilECSResult.php.
Referenced by getPlainResultString().
|
protected |
Definition at line 48 of file class.ilECSResult.php.
const ilECSResult::HEADER_ECS_SENDER = 'X-EcsSender' |
Definition at line 40 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 ilECSDirectoryTreeConnector\getDirectoryTrees(), and ilECSConnector\getResourceList().