40 $pc->create($page,
"pg");
42 '<PageObject HierId="pg"><PageContent><FileList></FileList></PageContent></PageObject>',
43 $page->getXMLFromDom()
51 $pc->create($page,
"pg");
52 $pc->appendItem(
"10",
"file_loc",
"image/jpeg");
54 <PageObject HierId=
"pg"><PageContent><FileList><FileItem><
Identifier Catalog=
"ILIAS" Entry=
"il__file_10"></
Identifier><Location
Type=
"LocalFile">file_loc</Location><Format>image/jpeg</Format></FileItem></FileList></PageContent></PageObject>
59 $page->getXMLFromDom()
67 $pc->create($page,
"pg");
68 $pc->setListTitle(
"MyTitle",
"en");
70 <PageObject HierId=
"pg"><PageContent><FileList><
Title Language=
"en">MyTitle</
Title></FileList></PageContent></PageObject>
75 $page->getXMLFromDom()
93 $pc->create($page,
"pg");
94 $pc->appendItem(
"10",
"file_loc",
"image/jpeg");
99 [
"entry" =>
"il__file_10",
113 $pc->create($page,
"pg");
114 $pc->appendItem(
"10",
"file_loc",
"image/jpeg");
117 $pc->deleteFileItems([
"1_1:"]);
120 '<PageObject HierId="pg"><PageContent HierId="1"><FileList></FileList></PageContent></PageObject>',
121 $page->getXMLFromDom()
129 $pc->create($page,
"pg");
130 $pc->appendItem(
"10",
"file_loc",
"image/jpeg");
131 $pc->appendItem(
"20",
"file_loc2",
"image/png");
139 $page->stripHierIDs();
141 <PageObject><PageContent><FileList><FileItem><
Identifier Catalog=
"ILIAS" Entry=
"il__file_20"></
Identifier><Location
Type=
"LocalFile">file_loc2</Location><Format>image/png</Format></FileItem><FileItem><
Identifier Catalog=
"ILIAS" Entry=
"il__file_10"></
Identifier><Location Type=
"LocalFile">file_loc</Location><Format>image/jpeg</Format></FileItem></FileList></PageContent></PageObject>
145 $page->getXMLFromDom()
153 $pc->create($page,
"pg");
154 $pc->appendItem(
"10",
"file_loc",
"image/jpeg");
155 $pc->appendItem(
"20",
"file_loc2",
"image/png");
158 $pc->saveStyleClasses([
162 $classes = $pc->getAllClasses();
181 $pc->create($page,
"pg");
182 $pc->appendItem(
"10",
"file_loc",
"image/jpeg");
183 $pc->appendItem(
"20",
"file_loc2",
"image/png");
185 $page->insertPCIds();
195 $pc->setDomNode($cont_node);
196 $pc->setHierId($hier_id);
197 $pc->setPcId($pc_id);
205 $item->newItemAfter(
"30",
"file_loc3",
"image/gif");
206 $page->stripHierIDs();
210 <PageObject><PageContent><FileList><FileItem><
Identifier Catalog=
"ILIAS" Entry=
"il__file_10"/><Location
Type=
"LocalFile">file_loc</Location><Format>image/jpeg</Format></FileItem><FileItem><
Identifier Catalog=
"ILIAS" Entry=
"il__file_30"/><Location Type=
"LocalFile">file_loc3</Location><Format>image/gif</Format></FileItem><FileItem><
Identifier Catalog=
"ILIAS" Entry=
"il__file_20"/><Location Type=
"LocalFile">file_loc2</Location><Format>image/png</Format></FileItem></FileList></PageContent></PageObject>
215 $page->getXMLFromDom()
223 $item->newItemBefore(
"30",
"file_loc3",
"image/gif");
224 $page->stripHierIDs();
228 <PageObject><PageContent><FileList><FileItem><
Identifier Catalog=
"ILIAS" Entry=
"il__file_10"/><Location
Type=
"LocalFile">file_loc</Location><Format>image/jpeg</Format></FileItem><FileItem><
Identifier Catalog=
"ILIAS" Entry=
"il__file_30"/><Location Type=
"LocalFile">file_loc3</Location><Format>image/gif</Format></FileItem><FileItem><
Identifier Catalog=
"ILIAS" Entry=
"il__file_20"/><Location Type=
"LocalFile">file_loc2</Location><Format>image/png</Format></FileItem></FileList></PageContent></PageObject>
233 $page->getXMLFromDom()
242 $page->stripHierIDs();
246 <PageObject><PageContent><FileList><FileItem><
Identifier Catalog=
"ILIAS" Entry=
"il__file_10"/><Location
Type=
"LocalFile">file_loc</Location><Format>image/jpeg</Format></FileItem></FileList></PageContent></PageObject>
251 $page->getXMLFromDom()
259 $item->moveItemDown();
260 $page->stripHierIDs();
264 <PageObject><PageContent><FileList><FileItem><
Identifier Catalog=
"ILIAS" Entry=
"il__file_20"/><Location
Type=
"LocalFile">file_loc2</Location><Format>image/png</Format></FileItem><FileItem><
Identifier Catalog=
"ILIAS" Entry=
"il__file_10"/><Location Type=
"LocalFile">file_loc</Location><Format>image/jpeg</Format></FileItem></FileList></PageContent></PageObject>
269 $page->getXMLFromDom()
278 $page->stripHierIDs();
282 <PageObject><PageContent><FileList><FileItem><
Identifier Catalog=
"ILIAS" Entry=
"il__file_20"/><Location
Type=
"LocalFile">file_loc2</Location><Format>image/png</Format></FileItem><FileItem><
Identifier Catalog=
"ILIAS" Entry=
"il__file_10"/><Location Type=
"LocalFile">file_loc</Location><Format>image/jpeg</Format></FileItem></FileList></PageContent></PageObject>
287 $page->getXMLFromDom()
getContentDomNode(string $a_hier_id, string $a_pc_id="")
getPCIdForHierId(string $hier_id)
getItemForHierId(ilPageObject $page, string $hier_id)
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
assertXmlEquals(string $expected_xml_as_string, string $html_xml_string)