| ILIAS
    Release_4_4_x_branch Revision 61816
    | 
 Collaboration diagram for ilECSResult:
 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 | |
| setHeaders ($a_headers) | |
| Set header. | |
| getHeaders () | |
| get headers | |
| 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 | |
| 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 63 of file class.ilECSResult.php.
References $ilLog, and init().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilECSResult::getHeaders | ( | ) | 
get headers
public
Definition at line 139 of file class.ilECSResult.php.
| ilECSResult::getHTTPCode | ( | ) | 
| ilECSResult::getPlainResultString | ( | ) | 
get unformated result string
public
Definition at line 108 of file class.ilECSResult.php.
References $result_string.
Referenced by parseUriList().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilECSResult::getResult | ( | ) | 
get result
public
Definition at line 120 of file class.ilECSResult.php.
References $result.
| 
 | private | 
init result (json_decode) private
Definition at line 149 of file class.ilECSResult.php.
References parseHeader(), parseUriList(), and splitHeader().
Referenced by __construct().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Parse header.
private
Definition at line 207 of file class.ilECSResult.php.
References $location, and HEADER_ECS_SENDER.
Referenced by init().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
| <type> | $a_content | 
Definition at line 238 of file class.ilECSResult.php.
References getPlainResultString().
Referenced by init().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilECSResult::setHeaders | ( | $a_headers | ) | 
Set header.
| array | $a_headers | 
Definition at line 129 of file class.ilECSResult.php.
| ilECSResult::setHTTPCode | ( | $a_code | ) | 
set HTTP return code
public
| string | http code | 
Definition at line 87 of file class.ilECSResult.php.
| 
 | private | 
Split header and content.
private
| ilECSConnectorException | 
Definition at line 185 of file class.ilECSResult.php.
Referenced by init().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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.
Referenced by parseHeader().
| 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().