|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Collaboration diagram for ilECSResult: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 24 of file class.ilECSResult.php.
| ilECSResult::__construct | ( | string | $a_res, |
| int | $a_type = self::RESULT_TYPE_JSON |
||
| ) |
Constructor.
@access public
| string | result_string |
| int | result type |
| ilECSConnectorException |
Definition at line 44 of file class.ilECSResult.php.
References init().
Here is the call graph for this function:| ilECSResult::getHeaders | ( | ) |
get headers
Definition at line 100 of file class.ilECSResult.php.
| ilECSResult::getHTTPCode | ( | ) |
get HTTP code
@access public
Definition at line 68 of file class.ilECSResult.php.
References $http_code.
| ilECSResult::getResult | ( | ) |
get result
Definition at line 78 of file class.ilECSResult.php.
References $result.
| ilECSResult::getResultType | ( | ) |
|
private |
init result (json_decode)
Definition at line 108 of file class.ilECSResult.php.
References $result_type, parseUriList(), RESULT_TYPE_JSON, and RESULT_TYPE_URL_LIST.
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| string | $a_content |
Definition at line 130 of file class.ilECSResult.php.
Referenced by init().
Here is the caller graph for this function:| ilECSResult::setHeaders | ( | array | $a_headers | ) |
Set header.
| array | $a_headers |
Definition at line 92 of file class.ilECSResult.php.
| ilECSResult::setHTTPCode | ( | int | $a_code | ) |
set HTTP return code
@access public
| string | http code |
Definition at line 58 of file class.ilECSResult.php.
|
private |
Definition at line 33 of file class.ilECSResult.php.
|
private |
Definition at line 29 of file class.ilECSResult.php.
Referenced by getHTTPCode().
|
private |
Definition at line 31 of file class.ilECSResult.php.
Referenced by getResult().
|
private |
Definition at line 30 of file class.ilECSResult.php.
Referenced by getResultType(), and init().
| const ilECSResult::RESULT_TYPE_JSON = 1 |
Definition at line 26 of file class.ilECSResult.php.
Referenced by init().
| const ilECSResult::RESULT_TYPE_URL_LIST = 2 |
Definition at line 27 of file class.ilECSResult.php.
Referenced by ilECSDirectoryTreeConnector\getDirectoryTrees(), ilECSConnector\getResourceList(), and init().