27    public function init(): void
 
   37        parent::setNode($a_node);               
 
   40    public function create(
ilPageObject $a_pg_obj, 
string $a_hier_id, 
string $a_pc_id, 
string $a_page_templ): void
 
   42        $source_id = explode(
":", $a_page_templ);
 
   44        $source_page->buildDom();
 
   45        $source_page->addHierIDs();
 
   46        $hier_ids = $source_page->getHierIds();
 
   51            if (!is_int(strpos(
$hier_id, 
"_"))) {
 
   59        foreach ($copy_ids as $copy_id) {
 
   60            $source_content = $source_page->getContentObject($copy_id);
 
   62            $source_node = $source_content->getNode();
 
   63            $clone_node = $source_node->clone_node(
true);
 
   64            $clone_node->unlink_node($clone_node);
 
   67            $source_content->setNode($clone_node);
 
   70            $xpath = 
new DOMXpath($this->
getPage()->getDomDoc());
 
   71            if ($clone_node->get_attribute(
"PCID") != 
"") {
 
   72                $clone_node->set_attribute(
"PCID", 
"");
 
   74            $els = $xpath->query(
".//*[@PCID]", $clone_node->myDOMNode);
 
   75            foreach ($els as $el) {
 
   76                $el->setAttribute(
"PCID", 
"");
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setNode(php4DOMElement $a_node)
Set node (in fact this will never be called, since these types of nodes do not exist.
 
create(ilPageObject $a_pg_obj, string $a_hier_id, string $a_pc_id, string $a_page_templ)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setType(string $a_type)
Set Type.
 
static getInstance(string $a_parent_type, int $a_id=0, int $a_old_nr=0, string $a_lang="-")
Get page object instance.
 
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)