35 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': Begin read');
37 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSDirectoryTreeConnector.php';
41 $trees = $dir_reader->getDirectoryTrees();
42 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
' ' . print_r($trees,
true));
44 foreach ((array) $trees->getLinkIds() as $tree_id) {
45 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php';
46 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
49 $result = $dir_reader->getDirectoryTree($tree_id);
61 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php';
62 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
70 $data->setServerId($this->server_id);
71 $data->setMid($this->mid);
72 $data->setCmsId($cms_tree->rootID);
73 $data->setTreeId($tree_id);
74 $data->setTitle($node->directoryTitle);
75 $data->setTerm($node->term);
78 $tree->insertRootNode($tree_id,
$data->getObjId());
82 foreach ((array) $cms_tree->nodes as $node) {
85 $data->setServerId($this->server_id);
86 $data->setMid($this->mid);
87 $data->setCmsId($node->id);
88 $data->setTreeId($tree_id);
89 $data->setTitle($node->title);
90 $data->setTerm($node->term);
94 if ($node->parent->id) {
99 (
int) $node->parent->id
101 $tree->insertNode(
$data->getObjId(), $parent_id);
static getInstanceByServerId($a_server_id)
Get singleton instance per server.
static treeExists($a_server_id, $a_mid, $a_tree_id)
static lookupObjId($a_server_id, $a_mid, $a_tree_id, $cms_id)
read()
Read trees from ecs.
Presentation of ecs uril (http://...campusconnect/courselinks)
Reads and store cms tree in database.
__construct($server_id, $mid)
Constructor.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
storeTree($tree_id, $a_nodes)