26 public function init(): void
37 $new_li = $this->dom_doc->createElement(
"ListItem");
38 if ($next_li = $li->nextSibling) {
39 $new_li = $next_li->parentNode->insertBefore($new_li, $next_li);
41 $parent_list = $li->parentNode;
42 $new_li = $parent_list->appendChild($new_li);
53 $new_li = $this->dom_doc->createElement(
"ListItem");
54 $new_li = $li->parentNode->insertBefore($new_li, $li);
63 $parent_node = $this->
getDomNode()->parentNode;
64 $cnt = count($parent_node->childNodes);
67 $grandma = $parent_node->parentNode;
68 $grandma->parentNode->removeChild($grandma);
71 $li->parentNode->removeChild($li);
81 $next = $li->nextSibling;
82 $next_copy = $next->cloneNode(
true);
83 $next_copy = $li->parentNode->insertBefore($next_copy, $li);
84 $next->parentNode->removeChild($next);
93 $prev = $li->previousSibling;
94 $li_copy = $li->cloneNode(
true);
95 $li_copy = $prev->parentNode->insertBefore($li_copy, $prev);
96 $li->parentNode->removeChild($li);
setType(string $a_type)
Set Type.
moveItemUp()
move list item up
newItemAfter()
insert new list item after current one
Content object of ilPageObject (see ILIAS DTD).
newItemBefore()
insert new list item before current one
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
moveItemDown()
move list item down
deleteItem()
delete row of cell