/** * Parse campusconnect */ public function parse() { include_once './Services/WebServices/ECS/classes/Mapping/class.ilECSMappingUtils.php'; include_once './Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php'; include_once './Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php'; $data = array(); $counter = 0; foreach (ilECSCmsData::lookupTreeIds($this->getServer()->getServerId(), $this->getMid()) as $tree_id) { $root = new ilECSCmsTree($tree_id); $node = new ilECSCmsData($root->getRootId()); $data[$counter]['id'] = $tree_id; $data[$counter]['status'] = ilECSMappingUtils::lookupMappingStatus($this->getServer()->getServerId(), $this->getMid(), $tree_id); $data[$counter]['title'] = $node->getTitle(); $data[$counter]['term'] = ilECSCmsData::lookupTopTerm($this->getServer()->getServerId(), $this->getMid(), $tree_id); $counter++; } $this->setData($data); }