19 declare(strict_types=1);
33 protected function setUp(): void
41 $pc = new \ilPCGrid($page);
42 $pc->create($page,
"pg");
53 $id_manager->insertPCIds();
56 <PageObject HierId=
"pg"><PageContent PCID=
"00000000000000000000000000000001"><Grid><GridCell WIDTH_XS=
"" WIDTH_S=
"12" WIDTH_M=
"6" WIDTH_L=
"6" WIDTH_XL=
"6" PCID=
"00000000000000000000000000000002"/><GridCell WIDTH_XS=
"" WIDTH_S=
"12" WIDTH_M=
"6" WIDTH_L=
"6" WIDTH_XL=
"6" PCID=
"00000000000000000000000000000003"/></Grid></PageContent></PageObject>
61 $page->getXMLFromDom()
72 $id_manager->insertPCIds();
75 $id_manager->insertPCIds();
79 $id_manager->hasDuplicatePCIds()
85 $id_manager->insertPCIds();
88 [0 =>
"00000000000000000000000000000002"],
89 $id_manager->getDuplicatePCIds()
94 $id_manager->hasDuplicatePCIds()
105 $id_manager->insertPCIds();
107 $id_manager->stripPCIDs();
110 <PageObject HierId=
"pg"><PageContent HierId=
"1"><Paragraph Language=
"en"/></PageContent><PageContent HierId=
"2"><Paragraph Language=
"en"/></PageContent></PageObject>
115 $page->getXMLFromDom()
127 $id_manager->insertPCIds();
129 $hier_ids = $id_manager->getHierIdsForPCIds([
130 "00000000000000000000000000000001",
"00000000000000000000000000000002" 135 "00000000000000000000000000000001" =>
"1",
136 "00000000000000000000000000000002" =>
"2" 150 $id_manager->insertPCIds();
154 $id_manager->getHierIdForPCId(
"00000000000000000000000000000002")
166 $id_manager->insertPCIds();
168 $hier_ids = $id_manager->getPCIdsForHierIds([
174 "1" =>
"00000000000000000000000000000001",
175 "2" =>
"00000000000000000000000000000002" 189 $id_manager->insertPCIds();
192 "00000000000000000000000000000002",
193 $id_manager->getPCIdForHierId(
"2")
208 $id_manager->checkPCIds()
211 $id_manager->insertPCIds();
215 $id_manager->checkPCIds()
227 $id_manager->insertPCIds();
231 "00000000000000000000000000000001",
232 "00000000000000000000000000000002",
233 "00000000000000000000000000000003" 235 $id_manager->getAllPCIds()
insertParagraphAt(\ilPageObject $page, string $hier_id, string $text="")
const TEMPLATE_TWO_COLUMN
getIDManager(\ilPageObject $page)
assertXmlEquals(string $expected_xml_as_string, string $html_xml_string)