40 $pc->create($page,
"pg",
"");
42 '<PageObject HierId="pg"><PageContent><Tabs></Tabs></PageContent></PageObject>',
43 $page->getXMLFromDom()
51 $pc->create($page,
"pg",
"");
52 $pc->setTabType(
"Carousel");
59 $page->stripHierIDs();
62 <PageObject><PageContent><Tabs
Type=
"Carousel"></Tabs></PageContent></PageObject>
66 $page->getXMLFromDom()
74 $pc->create($page,
"pg",
"");
75 $pc->setContentWidth(
"100");
79 $pc->getContentWidth()
82 $page->stripHierIDs();
85 <PageObject><PageContent><Tabs ContentWidth=
"100"></Tabs></PageContent></PageObject>
89 $page->getXMLFromDom()
97 $pc->create($page,
"pg",
"");
98 $pc->setContentHeight(
"200");
102 $pc->getContentHeight()
105 $page->stripHierIDs();
108 <PageObject><PageContent><Tabs ContentHeight=
"200"></Tabs></PageContent></PageObject>
112 $page->getXMLFromDom()
120 $pc->create($page,
"pg",
"");
121 $pc->setHorizontalAlign(
"Right");
125 $pc->getHorizontalAlign()
128 $page->stripHierIDs();
131 <PageObject><PageContent><Tabs HorizontalAlign=
"Right"></Tabs></PageContent></PageObject>
135 $page->getXMLFromDom()
143 $pc->create($page,
"pg",
"");
144 $pc->setBehavior(
"AllClosed");
151 $page->stripHierIDs();
154 <PageObject><PageContent><Tabs Behavior=
"AllClosed"></Tabs></PageContent></PageObject>
158 $page->getXMLFromDom()
165 $pc->create($page,
"pg",
"");
166 $pc->setTabType(
"HorizontalAccordion");
169 $pc->addTab(
"Three");
185 $page->stripHierIDs();
188 <PageObject><PageContent><Tabs
Type=
"HorizontalAccordion"><Tab><TabCaption>One</TabCaption></Tab><Tab><TabCaption>Two</TabCaption></Tab><Tab><TabCaption>Three</TabCaption></Tab></Tabs></PageContent></PageObject>
192 $page->getXMLFromDom()
212 "caption" =>
"New 1",
218 "caption" =>
"New 2",
224 "caption" =>
"New 3",
234 $pc->getCaption(
"1_2",
"")
237 $page->stripHierIDs();
240 <PageObject><PageContent><Tabs
Type=
"HorizontalAccordion"><Tab><TabCaption>New 1</TabCaption></Tab><Tab><TabCaption>New 2</TabCaption></Tab><Tab><TabCaption>New 3</TabCaption></Tab></Tabs></PageContent></PageObject>
244 $page->getXMLFromDom()
260 $page->stripHierIDs();
263 <PageObject><PageContent><Tabs
Type=
"HorizontalAccordion"><Tab><TabCaption>Three</TabCaption></Tab><Tab><TabCaption>Two</TabCaption></Tab><Tab><TabCaption>One</TabCaption></Tab></Tabs></PageContent></PageObject>
267 $page->getXMLFromDom()
275 $pc->deleteTab(
"1_2",
"");
277 $page->stripHierIDs();
280 <PageObject><PageContent><Tabs
Type=
"HorizontalAccordion"><Tab><TabCaption>One</TabCaption></Tab><Tab><TabCaption>Three</TabCaption></Tab></Tabs></PageContent></PageObject>
284 $page->getXMLFromDom()
292 $pc->create($page,
"pg",
"");
293 $pc->setTemplate(
"MyTemplate");
300 $page->stripHierIDs();
303 <PageObject><PageContent><Tabs
Template=
"MyTemplate"></Tabs></PageContent></PageObject>
307 $page->getXMLFromDom()
315 $pc->create($page,
"pg",
"");
316 $pc->setAutoTime(20);
323 $page->stripHierIDs();
326 <PageObject><PageContent><Tabs AutoAnimWait=
"20"></Tabs></PageContent></PageObject>
330 $page->getXMLFromDom()
338 $pc->create($page,
"pg",
"");
340 $pc->setRandomStart(
false);
343 $pc->getRandomStart()
346 $pc->setRandomStart(
true);
349 $pc->getRandomStart()
352 $page->stripHierIDs();
355 <PageObject><PageContent><Tabs RandomStart=
"1"></Tabs></PageContent></PageObject>
359 $page->getXMLFromDom()
373 $pc->setDomNode($cont_node);
374 $pc->setHierId($hier_id);
375 $pc->setPcId($pc_id);
384 $tab->newItemAfter();
386 $page->stripHierIDs();
390 <PageObject><PageContent><Tabs
Type=
"HorizontalAccordion"><Tab><TabCaption>One</TabCaption></Tab><Tab></Tab><Tab><TabCaption>Two</TabCaption></Tab><Tab><TabCaption>Three</TabCaption></Tab></Tabs></PageContent></PageObject>
394 $page->getXMLFromDom()
403 $tab->newItemBefore();
405 $page->stripHierIDs();
409 <PageObject><PageContent><Tabs
Type=
"HorizontalAccordion"><Tab><TabCaption>One</TabCaption></Tab><Tab></Tab><Tab><TabCaption>Two</TabCaption></Tab><Tab><TabCaption>Three</TabCaption></Tab></Tabs></PageContent></PageObject>
413 $page->getXMLFromDom()
424 $page->stripHierIDs();
428 <PageObject><PageContent><Tabs
Type=
"HorizontalAccordion"><Tab><TabCaption>One</TabCaption></Tab><Tab><TabCaption>Three</TabCaption></Tab></Tabs></PageContent></PageObject>
432 $page->getXMLFromDom()
441 $tab->moveItemDown();
443 $page->stripHierIDs();
447 <PageObject><PageContent><Tabs
Type=
"HorizontalAccordion"><Tab><TabCaption>Two</TabCaption></Tab><Tab><TabCaption>One</TabCaption></Tab><Tab><TabCaption>Three</TabCaption></Tab></Tabs></PageContent></PageObject>
451 $page->getXMLFromDom()
462 $page->stripHierIDs();
466 <PageObject><PageContent><Tabs
Type=
"HorizontalAccordion"><Tab><TabCaption>Two</TabCaption></Tab><Tab><TabCaption>One</TabCaption></Tab><Tab><TabCaption>Three</TabCaption></Tab></Tabs></PageContent></PageObject>
470 $page->getXMLFromDom()
getContentDomNode(string $a_hier_id, string $a_pc_id="")
getPCIdForHierId(string $hier_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
insertPCIds()
Insert Page Content IDs.
getTabForHierId(ilPageObject $page, string $hier_id)
addHierIDs()
Add hierarchical ID (e.g.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getTabsWithTabs(ilPageObject $page)
assertXmlEquals(string $expected_xml_as_string, string $html_xml_string)