28 public function init(): void
31 $this->user_id = $DIC->user()->getId();
38 $new_tab = $this->dom_doc->createElement(
"Tab");
39 if ($next_tab = $tab->nextSibling) {
40 $new_tab = $next_tab->parentNode->insertBefore($new_tab, $next_tab);
42 $parent_tabs = $tab->parentNode;
43 $new_tab = $parent_tabs->appendChild($new_tab);
50 $new_tab = $this->dom_doc->createElement(
"Tab");
51 $new_tab = $tab->parentNode->insertBefore($new_tab, $tab);
57 $tab->parentNode->removeChild($tab);
63 $next = $tab->nextSibling;
64 $next_copy = $next->cloneNode(
true);
65 $next_copy = $tab->parentNode->insertBefore($next_copy, $tab);
66 $next->parentNode->removeChild($next);
72 $prev = $tab->previousSibling;
73 $tab_copy = $tab->cloneNode(
true);
74 $tab_copy = $prev->parentNode->insertBefore($tab_copy, $prev);
75 $tab->parentNode->removeChild($tab);
84 bool $a_abstract_only =
false 88 $opened = $storage->getPropertyForIdStartsWith(
"ilc_accordion_" .
89 $this->
getPage()->
getId() .
"_", $this->user_id,
"opened");
91 if (!$a_abstract_only) {
93 foreach ($opened as
$id => $open) {
95 if (typeof ilAccordionsInits !==
'undefined') {
96 for (var i = 0; i < ilAccordionsInits.length; i++) {
97 if (ilAccordionsInits[i].
id ===
'$id') {
98 ilAccordionsInits[i].initial_opened =
'$open';
104 $script .=
"</script>";
107 return $a_output . $script;
setType(string $a_type)
Set Type.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Content object of ilPageObject (see ILIAS DTD).
modifyPageContentPostXsl(string $a_output, string $a_mode, bool $a_abstract_only=false)
Modify page content after xsl.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins