6 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
34 $new_item = $this->dom->create_element(
"FileItem");
35 if ($next_li =
$li->next_sibling())
37 $new_item = $next_li->insert_before($new_item, $next_li);
41 $parent_list =
$li->parent_node();
42 $new_item = $parent_list->append_child($new_item);
46 $id_node = $this->dom->create_element(
"Identifier");
47 $id_node = $new_item->append_child($id_node);
48 $id_node->set_attribute(
"Catalog",
"ILIAS");
49 $id_node->set_attribute(
"Entry",
"il__file_".$a_id);
52 $loc_node = $this->dom->create_element(
"Location");
53 $loc_node = $new_item->append_child($loc_node);
54 $loc_node->set_attribute(
"Type",
"LocalFile");
55 $loc_node->set_content($a_location);
58 $form_node = $this->dom->create_element(
"Format");
59 $form_node = $new_item->append_child($form_node);
60 $form_node->set_content($a_format);
70 $new_item = $this->dom->create_element(
"FileItem");
71 $new_item =
$li->insert_before($new_item,
$li);
74 $id_node = $this->dom->create_element(
"Identifier");
75 $id_node = $new_item->append_child($id_node);
76 $id_node->set_attribute(
"Catalog",
"ILIAS");
77 $id_node->set_attribute(
"Entry",
"il__file_".$a_id);
80 $loc_node = $this->dom->create_element(
"Location");
81 $loc_node = $new_item->append_child($loc_node);
82 $loc_node->set_attribute(
"Type",
"LocalFile");
83 $loc_node->set_content($a_location);
86 $form_node = $this->dom->create_element(
"Format");
87 $form_node = $new_item->append_child($form_node);
88 $form_node->set_content($a_format);
106 $next =
$li->next_sibling();
107 $next_copy = $next->clone_node(
true);
108 $next_copy =
$li->insert_before($next_copy,
$li);
109 $next->unlink($next);
118 $prev =
$li->previous_sibling();
119 $li_copy =
$li->clone_node(
true);
120 $li_copy = $prev->insert_before($li_copy, $prev);
deleteItem()
Delete file item.
newItemAfter($a_id, $a_location, $a_format)
insert new list item after current one
& getNode()
Get xml node of page content.
setType($a_type)
Set Type.
moveItemDown()
move list item down
newItemBefore($a_id, $a_location, $a_format)
insert new list item before current one
moveItemUp()
move list item up
init()
Init page content component.