5 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
35 $new_li =& $this->dom->create_element(
"ListItem");
36 if ($next_li =& $li->next_sibling())
38 $new_li =& $next_li->insert_before($new_li, $next_li);
42 $parent_list =& $li->parent_node();
43 $new_li =& $parent_list->append_child($new_li);
54 $new_li =& $this->dom->create_element(
"ListItem");
55 $new_li =& $li->insert_before($new_li, $li);
64 $parent_node = $this->
getNode()->parent_node();
65 $cnt = count($parent_node->child_nodes());
69 $grandma = $parent_node->parent_node();
70 $grandma->unlink($grandma);
85 $next =& $li->next_sibling();
86 $next_copy = $next->clone_node(
true);
87 $next_copy =& $li->insert_before($next_copy, $li);
97 $prev =& $li->previous_sibling();
98 $li_copy = $li->clone_node(
true);
99 $li_copy =& $prev->insert_before($li_copy, $prev);
moveItemUp()
move list item up
& getNode()
Get xml node of page content.
newItemAfter()
insert new list item after current one
setType($a_type)
Set Type.
init()
Init page content component.
newItemBefore()
insert new list item before current one
moveItemDown()
move list item down
deleteItem()
delete row of cell