ILIAS
release_8 Revision v8.19
|
Public Member Functions | |
__construct (string $a_res, int $a_type=self::RESULT_TYPE_JSON) | |
Constructor. More... | |
setHTTPCode (int $a_code) | |
set HTTP return code More... | |
getHTTPCode () | |
get HTTP code More... | |
getResult () | |
get result More... | |
getResultType () | |
setHeaders (array $a_headers) | |
Set header. More... | |
getHeaders () | |
get headers More... | |
Data Fields | |
const | RESULT_TYPE_JSON = 1 |
const | RESULT_TYPE_URL_LIST = 2 |
Private Member Functions | |
init (string $result_string, int $result_type) | |
init result (json_decode) More... | |
parseUriList (string $a_content) | |
Private Attributes | |
int | $http_code = 0 |
int | $result_type |
$result | |
array | $headers = array() |
Definition at line 23 of file class.ilECSResult.php.
ilECSResult::__construct | ( | string | $a_res, |
int | $a_type = self::RESULT_TYPE_JSON |
||
) |
Constructor.
public
string | result_string |
int | result type |
ilECSConnectorException |
Definition at line 43 of file class.ilECSResult.php.
References init().
ilECSResult::getHeaders | ( | ) |
get headers
Definition at line 99 of file class.ilECSResult.php.
ilECSResult::getHTTPCode | ( | ) |
ilECSResult::getResult | ( | ) |
get result
Definition at line 77 of file class.ilECSResult.php.
References $result.
ilECSResult::getResultType | ( | ) |
|
private |
init result (json_decode)
Definition at line 107 of file class.ilECSResult.php.
References parseUriList().
Referenced by __construct().
|
private |
string | $a_content |
Definition at line 129 of file class.ilECSResult.php.
Referenced by init().
ilECSResult::setHeaders | ( | array | $a_headers | ) |
ilECSResult::setHTTPCode | ( | int | $a_code | ) |
set HTTP return code
public
string | http code |
Definition at line 57 of file class.ilECSResult.php.
|
private |
Definition at line 32 of file class.ilECSResult.php.
|
private |
Definition at line 28 of file class.ilECSResult.php.
Referenced by getHTTPCode().
|
private |
Definition at line 30 of file class.ilECSResult.php.
Referenced by getResult().
|
private |
Definition at line 29 of file class.ilECSResult.php.
Referenced by getResultType().
const ilECSResult::RESULT_TYPE_JSON = 1 |
Definition at line 25 of file class.ilECSResult.php.
const ilECSResult::RESULT_TYPE_URL_LIST = 2 |
Definition at line 26 of file class.ilECSResult.php.
Referenced by ilECSDirectoryTreeConnector\getDirectoryTrees(), and ilECSConnector\getResourceList().