◆ getItemForHierId()
| PCFileListTest::getItemForHierId |
( |
ilPageObject |
$page, |
|
|
string |
$hier_id |
|
) |
| |
|
protected |
◆ getPageWithFileList()
| PCFileListTest::getPageWithFileList |
( |
| ) |
|
|
protected |
Definition at line 177 of file PCFileListTest.php.
References COPageTestBase\getEmptyPageWithDom().
Referenced by testDeleteItem(), testMoveItemDown(), testMoveItemUp(), testNewItemAfter(), and testNewItemBefore().
181 $pc->create($page,
"pg");
182 $pc->appendItem(
"10",
"file_loc",
"image/jpeg");
183 $pc->appendItem(
"20",
"file_loc2",
"image/png");
185 $page->insertPCIds();
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...
◆ testAppendItem()
| PCFileListTest::testAppendItem |
( |
| ) |
|
Definition at line 47 of file PCFileListTest.php.
References COPageTestBase\assertXmlEquals(), and COPageTestBase\getEmptyPageWithDom().
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()
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)
◆ testClasses()
| PCFileListTest::testClasses |
( |
| ) |
|
Definition at line 149 of file PCFileListTest.php.
References COPageTestBase\getEmptyPageWithDom().
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();
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ testConstruction()
| PCFileListTest::testConstruction |
( |
| ) |
|
◆ testCreate()
| PCFileListTest::testCreate |
( |
| ) |
|
Definition at line 36 of file PCFileListTest.php.
References COPageTestBase\assertXmlEquals(), and COPageTestBase\getEmptyPageWithDom().
40 $pc->create($page,
"pg");
42 '<PageObject HierId="pg"><PageContent><FileList></FileList></PageContent></PageObject>',
43 $page->getXMLFromDom()
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)
◆ testDeleteFileItem()
| PCFileListTest::testDeleteFileItem |
( |
| ) |
|
Definition at line 109 of file PCFileListTest.php.
References COPageTestBase\assertXmlEquals(), and COPageTestBase\getEmptyPageWithDom().
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()
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)
◆ testDeleteItem()
| PCFileListTest::testDeleteItem |
( |
| ) |
|
Definition at line 237 of file PCFileListTest.php.
References COPageTestBase\assertXmlEquals(), getItemForHierId(), and getPageWithFileList().
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()
getItemForHierId(ilPageObject $page, string $hier_id)
assertXmlEquals(string $expected_xml_as_string, string $html_xml_string)
◆ testFileList()
| PCFileListTest::testFileList |
( |
| ) |
|
Definition at line 89 of file PCFileListTest.php.
References COPageTestBase\getEmptyPageWithDom().
93 $pc->create($page,
"pg");
94 $pc->appendItem(
"10",
"file_loc",
"image/jpeg");
99 [
"entry" =>
"il__file_10",
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ testListTitle()
| PCFileListTest::testListTitle |
( |
| ) |
|
Definition at line 63 of file PCFileListTest.php.
References COPageTestBase\assertXmlEquals(), and COPageTestBase\getEmptyPageWithDom().
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()
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)
◆ testMoveItemDown()
| PCFileListTest::testMoveItemDown |
( |
| ) |
|
Definition at line 255 of file PCFileListTest.php.
References COPageTestBase\assertXmlEquals(), getItemForHierId(), and getPageWithFileList().
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()
getItemForHierId(ilPageObject $page, string $hier_id)
assertXmlEquals(string $expected_xml_as_string, string $html_xml_string)
◆ testMoveItemUp()
| PCFileListTest::testMoveItemUp |
( |
| ) |
|
Definition at line 273 of file PCFileListTest.php.
References COPageTestBase\assertXmlEquals(), getItemForHierId(), and getPageWithFileList().
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()
getItemForHierId(ilPageObject $page, string $hier_id)
assertXmlEquals(string $expected_xml_as_string, string $html_xml_string)
◆ testNewItemAfter()
| PCFileListTest::testNewItemAfter |
( |
| ) |
|
Definition at line 201 of file PCFileListTest.php.
References COPageTestBase\assertXmlEquals(), getItemForHierId(), and getPageWithFileList().
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()
getItemForHierId(ilPageObject $page, string $hier_id)
assertXmlEquals(string $expected_xml_as_string, string $html_xml_string)
◆ testNewItemBefore()
| PCFileListTest::testNewItemBefore |
( |
| ) |
|
Definition at line 219 of file PCFileListTest.php.
References COPageTestBase\assertXmlEquals(), getItemForHierId(), and getPageWithFileList().
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()
getItemForHierId(ilPageObject $page, string $hier_id)
assertXmlEquals(string $expected_xml_as_string, string $html_xml_string)
◆ testPositions()
| PCFileListTest::testPositions |
( |
| ) |
|
Definition at line 125 of file PCFileListTest.php.
References COPageTestBase\assertXmlEquals(), and COPageTestBase\getEmptyPageWithDom().
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()
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)
The documentation for this class was generated from the following file: