51 include_once(
'Services/WebServices/ECS/classes/class.ilECSSettings.php');
52 include_once(
'Services/WebServices/ECS/classes/class.ilECSConnector.php');
53 include_once(
'Services/WebServices/ECS/classes/class.ilECSConnectorException.php');
54 include_once(
'Services/WebServices/ECS/classes/class.ilECSEContent.php');
55 include_once(
'Services/WebServices/ECS/classes/class.ilECSReaderException.php');
61 $this->econtent_id = $a_econtent_id;
72 return $this->econtent ? $this->econtent : array();
88 $res = $this->connector->getResources($this->econtent_id);
95 if(!is_array(
$res->getResult()))
97 $ilLog->write(__METHOD__.
': Error parsing result. Expected result of type array.');
105 $this->econtent[] = $tmp_content;
111 $ilLog->write(__METHOD__.
': Error connecting to ECS server. '.$e->getMessage());
116 $ilLog->write(__METHOD__.
': Error reading EContent. '.$e->getMessage());