30    public function init(): void
 
   34        $this->db = 
$DIC->database();
 
   35        $this->
lng = $DIC->language();
 
   38        $request = 
$DIC->portfolio()
 
   43        $this->ref_id = $request->getRefId();
 
   48        return array(
"ed_insert_amdfrm", 
"pc_amdfrm");
 
   53        parent::setNode($a_node);               
 
   59        return ($this->
getPage()->getParentType() === 
"prtt");
 
   69        $this->amdfrm_node = $this->dom->create_element(
"AMDForm");
 
   70        $this->amdfrm_node = $this->node->append_child($this->amdfrm_node);
 
   75        $this->amdfrm_node->set_attribute(
"RecordIds", implode(
",", $record_ids));
 
   80        if (is_object($this->amdfrm_node)) {
 
   81            return explode(
",", $this->amdfrm_node->get_attribute(
"RecordIds"));
 
   90        bool $a_abstract_only = 
false 
   93        $start = strpos($a_output, 
"[[[[[AMDForm;");
 
   95            $end = strpos($a_output, 
"]]]]]", $start);
 
   98            $parts = explode(
";", substr($a_output, $start + 13, $end - $start - 13));
 
   99            if ($this->isTemplate()) {
 
  102                $portfolio = 
new ilObjPortfolio($this->getPage()->getPortfolioId(), 
false);
 
  106            $mdgui->setRecordFilter(explode(
",", 
$parts[0]));
 
  107            $insert_html = $mdgui->getBlockHTML();
 
  109            $a_output = substr($a_output, 0, $start) .
 
  111                substr($a_output, $end + 5);
 
  113            $start = strpos($a_output, 
"[[[[[AMDForm;", $start + 5);
 
  115            if (is_int($start)) {
 
  116                $end = strpos($a_output, 
"]]]]]", $start);
 
  124        DOMDocument $a_domdoc,
 
  125        bool $a_self_ass = 
true,
 
  126        bool $a_clone_mobs = 
false,
 
  127        int $new_parent_id = 0,
 
  130        if ($obj_copy_id > 0) {
 
  132            $mappings = $cp_options->getMappings();
 
  133            $key = $new_parent_id . 
"_adv_rec";
 
  134            if (is_array($mappings) && isset($mappings[
$key])) {
 
  135                $xpath = 
new DOMXPath($a_domdoc);
 
  136                $nodes = $xpath->query(
"//AMDForm");
 
  137                foreach ($nodes as $node) {
 
  138                    $old_ids = explode(
",", (
string) $node->getAttribute(
"RecordIds"));
 
  140                    $new_ids = array_map(
static function (
$i) use ($mappings, 
$key) {
 
  143                    $new_ids = implode(
",", $new_ids);
 
  144                    if ($new_ids !== 
"") {
 
  145                        $node->setAttribute(
"RecordIds", $new_ids);
 
static _getInstance(int $a_copy_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
createPageContentNode(bool $a_set_this_node=true)
Create page content node (always use this method first when adding a new element)
 
setType(string $a_type)
Set Type.
 
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
 
insertContent(ilPageContent $a_cont_obj, string $a_pos, int $a_mode=IL_INSERT_AFTER, string $a_pcid="", bool $remove_placeholder=true)
insert a content node before/after a sibling or as first child of a parent
 
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts