29     public function init(): void
    33         $this->db = $DIC->database();
    34         $this->
lng = $DIC->language();
    37         $request = $DIC->portfolio()
    42         $this->ref_id = $request->getRefId();
    47         return array(
"ed_insert_amdfrm", 
"pc_amdfrm");
    52         return ($this->
getPage()->getParentType() === 
"prtt");
    62         $amdfrm_node = $this->dom_doc->createElement(
"AMDForm");
    63         $this->
getDomNode()->appendChild($amdfrm_node);
    68         $this->
getChildNode()->setAttribute(
"RecordIds", implode(
",", $record_ids));
    74             return explode(
",", $this->
getChildNode()->getAttribute(
"RecordIds"));
    83         bool $a_abstract_only = 
false    86         $start = strpos($a_output, 
"[[[[[AMDForm;");
    88             $end = strpos($a_output, 
"]]]]]", $start);
    91             $parts = explode(
";", substr($a_output, $start + 13, $end - $start - 13));
    99             $mdgui->setRecordFilter(explode(
",", 
$parts[0]));
   100             $insert_html = $mdgui->getBlockHTML();
   102             $a_output = substr($a_output, 0, $start) .
   104                 substr($a_output, $end + 5);
   106             $start = strpos($a_output, 
"[[[[[AMDForm;", $start + 5);
   108             if (is_int($start)) {
   109                 $end = strpos($a_output, 
"]]]]]", $start);
   118         bool $a_self_ass = 
true,
   119         bool $a_clone_mobs = 
false,
   120         int $new_parent_id = 0,
   123         if ($obj_copy_id > 0) {
   125             $mappings = $cp_options->getMappings();
   126             $key = $new_parent_id . 
"_adv_rec";
   127             if (is_array($mappings) && isset($mappings[$key])) {
   129                 $nodes = $xpath->query(
"//AMDForm");
   130                 foreach ($nodes as $node) {
   131                     $old_ids = explode(
",", (
string) $node->getAttribute(
"RecordIds"));
   133                     $new_ids = 
array_map(
static function ($i) use ($mappings, $key) {
   134                         return $mappings[$key][(
int) $i] ?? $i;
   136                     $new_ids = implode(
",", $new_ids);
   137                     if ($new_ids !== 
"") {
   138                         $node->setAttribute(
"RecordIds", $new_ids);
 
setType(string $a_type)
Set Type. 
 
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
 
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...
 
Content object of ilPageObject (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 
 
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD) 
 
createPageContentNode(bool $a_set_this_node=true)
Create page content node (always use this method first when adding a new element) ...
 
static _getInstance(int $a_copy_id)