18 declare(strict_types=1);
    43     public function __construct(
string $a_res, 
int $a_type = self::RESULT_TYPE_JSON)
    45         $this->result_type = $a_type;
    47         $this->
init($a_res, $a_type);
    59         $this->http_code = $a_code;
    93         $this->headers = $a_headers;
   101         return $this->headers ?: [];
   107     private function init(
string $result_string, 
int $result_type): void
   109         switch ($result_type) {
   110             case self::RESULT_TYPE_JSON:
   111                 if ($result_string) {
   112                     $this->result = json_decode($result_string, 
false, 512, JSON_THROW_ON_ERROR);
   118             case self::RESULT_TYPE_URL_LIST:
   132         $lines = explode(
"\n", $a_content);
   133         foreach ($lines as $line) {
   138             $uri_parts = explode(
"/", $line);
   139             $list->add($line, (
int) array_pop($uri_parts));
 const RESULT_TYPE_URL_LIST
 
init(string $result_string, int $result_type)
init result (json_decode) 
 
Presentation of ecs uril (http://...campusconnect/courselinks) 
 
setHeaders(array $a_headers)
Set header. 
 
parseUriList(string $a_content)
 
__construct(string $a_res, int $a_type=self::RESULT_TYPE_JSON)
Constructor. 
 
getHTTPCode()
get HTTP code 
 
setHTTPCode(int $a_code)
set HTTP return code