3 declare(strict_types=1);
    40         if ($manager !== null) {
    41             foreach ($manager->getItemBlockSequence()->getBlocks() as $block) {
    42                 if (!$block->getPageEmbedded()) {
    53         $ids = $manager->getPageEmbeddedBlockIds();
    55         foreach ($manager->getItemBlockSequence()->getBlocks() as $block) {
    56             $block_ids[] = $block->getId();
    58         foreach ($ids as 
$id) {
    59             if (!in_array($id, $block_ids)) {
    63                 if (is_numeric($id)) {
    64                     $igs = $xpath_temp->query(
"//Resources/ItemGroup");
    65                     foreach ($igs as $ig_node) {
    66                         $ref_id = $ig_node->getAttribute(
"RefId");
    67                         if ((
int) 
$ref_id === (
int) $id) {
    68                             $pc_node = $ig_node->parentNode->parentNode;
    69                             $node = $pc_node->parentNode->removeChild($pc_node);
    73                     $igs = $xpath_temp->query(
"//Resources/ResourceList");
    74                     foreach ($igs as $ig_node) {
    75                         $type = $ig_node->getAttribute(
"Type");
    77                             $pc_node = $ig_node->parentNode->parentNode;
    78                             $node = $pc_node->parentNode->removeChild($pc_node);
    93         $parent_hier_id = 
"pg";
    95         $nodes = $xpath->query(
"//PageObject/PageContent[last()]");
    96         foreach ($nodes as 
$node) {
    97             $parent_hier_id = $node->getAttribute(
"HierId");
    98             $parent_pc_id = $node->getAttribute(
"PCID");
   101         $pc_resources->create($this, $parent_hier_id, $parent_pc_id);
   103         if ($block instanceof \
ILIAS\Container\Content\TypeBlock) {
   104             $pc_resources->setResourceListType($id);
   105         } elseif ($block instanceof \
ILIAS\Container\Content\ItemGroupBlock) {
   106             $pc_resources->setItemGroupRefId((
int) $id);
   107         } elseif ($block instanceof \
ILIAS\Container\Content\OtherBlock) {
   108             $pc_resources->setResourceListType(
"_other");
   109         } elseif ($block instanceof \
ILIAS\Container\Content\SessionBlock) {
   110             $pc_resources->setResourceListType(
"sess");
   111         } elseif ($block instanceof \
ILIAS\Container\Content\ObjectivesBlock) {
   112             $pc_resources->setResourceListType(
"_lobj");
   114             throw new ilException(
"unknown type " . get_class($block));
 
buildDom(bool $a_force=false)
 
Interface Observer  Contains several chained tasks and infos about them. 
 
update(bool $a_validate=true, bool $a_no_history=false)
update complete page content in db (dom xml content is used) 
 
getDomDoc()
Get dom doc (DOMDocument) 
 
addRepositoryBlockToPage(string $id, \ILIAS\Container\Content\Block $block)
 
addMissingContainerBlocks(?\ILIAS\Container\Content\ItemPresentationManager $manager)
 
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) 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
addHierIDs()
Add hierarchical ID (e.g. 
 
removeUnsupportedBlockIds(\ILIAS\Container\Content\ItemPresentationManager $manager)
 
getParentType()
Get parent type.