21 require_once(
"./components/ILIAS/MediaObjects/ImageMap/class.ilMapArea.php");
33 $object_adapter = $this->getMockBuilder(\
ILIAS\Repository\
Object\ObjectAdapter::class)
34 ->disableOriginalConstructor()
36 $object_adapter->method(
"getTypeForObjId")
37 ->willReturnCallback(fn() =>
"dummy");
38 return $object_adapter;
46 ilPCMediaObject::class,
55 $pc->create($page,
"pg");
57 '<PageObject HierId="pg"></PageObject>',
58 $page->getXMLFromDom()
67 $pc->createAlias($page,
"pg");
69 $page->stripHierIDs();
72 <PageObject><PageContent><MediaObject><MediaAlias OriginId=
"il__mob_0"></MediaAlias><MediaAliasItem Purpose=
"Standard"><Layout HorizontalAlign=
"Left"></Layout></MediaAliasItem><MediaAliasItem Purpose=
"Fullscreen"><Layout Width=
"100" Height=
"50"></Layout></MediaAliasItem></MediaObject></PageContent></PageObject>
77 $page->getXMLFromDom()
85 $pc->createAlias($page,
"pg");
90 $pc->setDomNode($pc->getDomNode());
99 $page->stripHierIDs();
103 <PageContent><MediaObject><MediaAlias OriginId=
"il__mob_0"/><MediaAliasItem Purpose=
"Standard"><Layout HorizontalAlign=
"Left"/></MediaAliasItem><MediaAliasItem Purpose=
"Fullscreen"><Layout Width=
"100" Height=
"50"/></MediaAliasItem></MediaObject></PageContent>
117 $pc->setClass(
"MyClass");
124 $page->stripHierIDs();
128 <PageObject><PageContent><MediaObject><MediaAlias OriginId=
"il__mob_0" Class=
"MyClass"/><MediaAliasItem Purpose=
"Standard"><Layout HorizontalAlign=
"Left"/></MediaAliasItem><MediaAliasItem Purpose=
"Fullscreen"><Layout Width=
"100" Height=
"50"/></MediaAliasItem></MediaObject></PageContent></PageObject>
133 $page->getXMLFromDom()
142 $pc->setCaptionClass(
"MyCaptionClass");
146 $pc->getCaptionClass()
149 $page->stripHierIDs();
153 <PageObject><PageContent><MediaObject><MediaAlias OriginId=
"il__mob_0" CaptionClass=
"MyCaptionClass"/><MediaAliasItem Purpose=
"Standard"><Layout HorizontalAlign=
"Left"/></MediaAliasItem><MediaAliasItem Purpose=
"Fullscreen"><Layout Width=
"100" Height=
"50"/></MediaAliasItem></MediaObject></PageContent></PageObject>
158 $page->getXMLFromDom()
166 ?
string $expected =
null 170 $ma = $pc->getStandardMediaAliasItem();
174 $page->stripHierIDs();
177 if (!is_null($expected)) {
180 $page->getXMLFromDom()
204 <PageObject><PageContent><MediaObject><MediaAlias OriginId=
"il__mob_0"/><MediaAliasItem Purpose=
"Standard"><Layout HorizontalAlign=
"Left" Width=
"222"/></MediaAliasItem><MediaAliasItem Purpose=
"Fullscreen"><Layout Width=
"100" Height=
"50"/></MediaAliasItem></MediaObject></PageContent></PageObject>
220 <PageObject><PageContent><MediaObject><MediaAlias OriginId=
"il__mob_0"/><MediaAliasItem Purpose=
"Standard"><Layout HorizontalAlign=
"Left" Height=
"11"/></MediaAliasItem><MediaAliasItem Purpose=
"Fullscreen"><Layout Width=
"100" Height=
"50"/></MediaAliasItem></MediaObject></PageContent></PageObject>
246 <PageObject><PageContent><MediaObject><MediaAlias OriginId=
"il__mob_0"/><MediaAliasItem Purpose=
"Standard"><Layout HorizontalAlign=
"Left"/></MediaAliasItem><MediaAliasItem Purpose=
"Fullscreen"><Layout Width=
"100" Height=
"50"/></MediaAliasItem></MediaObject></PageContent></PageObject>
270 <PageObject><PageContent><MediaObject><MediaAlias OriginId=
"il__mob_0"></MediaAlias><MediaAliasItem Purpose=
"Standard"><Layout HorizontalAlign=
"Left"></Layout><Caption Align=
"bottom">My Caption</Caption></MediaAliasItem><MediaAliasItem Purpose=
"Fullscreen"><Layout Width=
"100" Height=
"50"></Layout></MediaAliasItem></MediaObject></PageContent></PageObject>
291 <PageObject><PageContent><MediaObject><MediaAlias OriginId=
"il__mob_0"></MediaAlias><MediaAliasItem Purpose=
"Standard"><Layout HorizontalAlign=
"Left"></Layout></MediaAliasItem><MediaAliasItem Purpose=
"Fullscreen"><Layout Width=
"100" Height=
"50"></Layout></MediaAliasItem></MediaObject></PageContent></PageObject>
315 <PageObject><PageContent><MediaObject><MediaAlias OriginId=
"il__mob_0"></MediaAlias><MediaAliasItem Purpose=
"Standard"><Layout HorizontalAlign=
"Left"></Layout><TextRepresentation>My Text</TextRepresentation></MediaAliasItem><MediaAliasItem Purpose=
"Fullscreen"><Layout Width=
"100" Height=
"50"></Layout></MediaAliasItem></MediaObject></PageContent></PageObject>
336 <PageObject><PageContent><MediaObject><MediaAlias OriginId=
"il__mob_0"></MediaAlias><MediaAliasItem Purpose=
"Standard"><Layout HorizontalAlign=
"Left"></Layout></MediaAliasItem><MediaAliasItem Purpose=
"Fullscreen"><Layout Width=
"100" Height=
"50"></Layout></MediaAliasItem></MediaObject></PageContent></PageObject>
352 <PageObject><PageContent><MediaObject><MediaAlias OriginId=
"il__mob_0"></MediaAlias><MediaAliasItem Purpose=
"Standard"><Layout HorizontalAlign=
"Right"></Layout></MediaAliasItem><MediaAliasItem Purpose=
"Fullscreen"><Layout Width=
"100" Height=
"50"></Layout></MediaAliasItem></MediaObject></PageContent></PageObject>
381 'par1="val1", par2="val2"',
386 <PageObject><PageContent><MediaObject><MediaAlias OriginId=
"il__mob_0"></MediaAlias><MediaAliasItem Purpose=
"Standard"><Layout HorizontalAlign=
"Left"></Layout><
Parameter Name=
"par1" Value=
"val1"></
Parameter><
Parameter Name=
"par2" Value=
"val2"></
Parameter></MediaAliasItem><MediaAliasItem Purpose=
"Fullscreen"><Layout Width=
"100" Height=
"50"></Layout></MediaAliasItem></MediaObject></PageContent></PageObject>
406 <PageObject><PageContent><MediaObject><MediaAlias OriginId=
"il__mob_0"></MediaAlias><MediaAliasItem Purpose=
"Standard"><Layout HorizontalAlign=
"Left"></Layout></MediaAliasItem><MediaAliasItem Purpose=
"Fullscreen"><Layout Width=
"100" Height=
"50"></Layout></MediaAliasItem></MediaObject></PageContent></PageObject>
421 "Href" =>
"http://www.ilias.de" 430 "Coords" =>
"10,10,100,100",
431 "HighlightMode" =>
"",
432 "HighlightClass" =>
"",
435 "LinkType" =>
"ExtLink",
436 "Href" =>
"http://www.ilias.de",
437 "Title" =>
"Area Title" 444 "http://www.ilias.de",
449 <PageObject><PageContent><MediaObject><MediaAlias OriginId=
"il__mob_0"></MediaAlias><MediaAliasItem Purpose=
"Standard"><Layout HorizontalAlign=
"Left"></Layout><MapArea Shape=
"Rect" Coords=
"10,10,100,100" Id=
"One"><ExtLink Href=
"http://www.ilias.de">Area
Title</ExtLink></MapArea></MediaAliasItem><MediaAliasItem Purpose=
"Fullscreen"><Layout Width=
"100" Height=
"50"></Layout></MediaAliasItem></MediaObject></PageContent></PageObject>
464 "Href" =>
"http://www.ilias.de" 474 "Href" =>
"http://ilias.de" 481 <PageObject><PageContent><MediaObject><MediaAlias OriginId=
"il__mob_0"></MediaAlias><MediaAliasItem Purpose=
"Standard"><Layout HorizontalAlign=
"Left"></Layout><MapArea Shape=
"Rect" Coords=
"11,11,101,101" Id=
"Two"><ExtLink Href=
"http://ilias.de">Area
Title 2</ExtLink></MapArea></MediaAliasItem><MediaAliasItem Purpose=
"Fullscreen"><Layout Width=
"100" Height=
"50"></Layout></MediaAliasItem></MediaObject></PageContent></PageObject>
496 "Href" =>
"http://www.ilias.de" 506 "Href" =>
"http://ilias.de" 513 <PageObject><PageContent><MediaObject><MediaAlias OriginId=
"il__mob_0"></MediaAlias><MediaAliasItem Purpose=
"Standard"><Layout HorizontalAlign=
"Left"></Layout><MapArea Shape=
"Rect" Coords=
"11,11,101,101" Id=
"Two"><ExtLink Href=
"http://ilias.de">Area
Title 2</ExtLink></MapArea></MediaAliasItem><MediaAliasItem Purpose=
"Fullscreen"><Layout Width=
"100" Height=
"50"></Layout></MediaAliasItem></MediaObject></PageContent></PageObject>
528 "Href" =>
"http://www.ilias.de" 538 "Href" =>
"http://ilias.de" 545 <PageObject><PageContent><MediaObject><MediaAlias OriginId=
"il__mob_0"></MediaAlias><MediaAliasItem Purpose=
"Standard"><Layout HorizontalAlign=
"Left"></Layout></MediaAliasItem><MediaAliasItem Purpose=
"Fullscreen"><Layout Width=
"100" Height=
"50"></Layout></MediaAliasItem></MediaObject></PageContent></PageObject>
561 "Target" =>
"ltarget",
562 "TargetFrame" =>
"ltargetframe"
Interface Observer Contains several chained tasks and infos about them.
getPCIdForHierId(string $hier_id)
const IL_AREA_RECT
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
insertPCIds()
Insert Page Content IDs.
addHierIDs()
Add hierarchical ID (e.g.
assertXmlEquals(string $expected_xml_as_string, string $html_xml_string)