24 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
54 $new_item =& $this->dom->create_element(
"FileItem");
55 if ($next_li =&
$li->next_sibling())
57 $new_item =& $next_li->insert_before($new_item, $next_li);
61 $parent_list =&
$li->parent_node();
62 $new_item =& $parent_list->append_child($new_item);
66 $id_node =& $this->dom->create_element(
"Identifier");
67 $id_node =& $new_item->append_child($id_node);
68 $id_node->set_attribute(
"Catalog",
"ILIAS");
69 $id_node->set_attribute(
"Entry",
"il__file_".$a_id);
72 $loc_node =& $this->dom->create_element(
"Location");
73 $loc_node =& $new_item->append_child($loc_node);
74 $loc_node->set_attribute(
"Type",
"LocalFile");
75 $loc_node->set_content($a_location);
78 $form_node =& $this->dom->create_element(
"Format");
79 $form_node =& $new_item->append_child($form_node);
80 $form_node->set_content($a_format);
90 $new_item =& $this->dom->create_element(
"FileItem");
91 $new_item =&
$li->insert_before($new_item,
$li);
94 $id_node =& $this->dom->create_element(
"Identifier");
95 $id_node =& $new_item->append_child($id_node);
96 $id_node->set_attribute(
"Catalog",
"ILIAS");
97 $id_node->set_attribute(
"Entry",
"il__file_".$a_id);
100 $loc_node =& $this->dom->create_element(
"Location");
101 $loc_node =& $new_item->append_child($loc_node);
102 $loc_node->set_attribute(
"Type",
"LocalFile");
103 $loc_node->set_content($a_location);
106 $form_node =& $this->dom->create_element(
"Format");
107 $form_node =& $new_item->append_child($form_node);
108 $form_node->set_content($a_format);
126 $next =&
$li->next_sibling();
127 $next_copy = $next->clone_node(
true);
128 $next_copy =&
$li->insert_before($next_copy,
$li);
129 $next->unlink($next);
138 $prev =&
$li->previous_sibling();
139 $li_copy =
$li->clone_node(
true);
140 $li_copy =& $prev->insert_before($li_copy, $prev);