ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilPageComponentPluginImporter.php
Go to the documentation of this file.
1<?php
2
25{
34 protected static array $pc_properties = array();
35
41 protected static array $pc_version = array();
42
43
48 public static function setPCProperties(
49 string $a_id,
50 array $a_properties
51 ): void {
52 self::$pc_properties[$a_id] = $a_properties;
53 }
54
58 public static function getPCProperties(string $a_id): ?array
59 {
60 return self::$pc_properties[$a_id] ?? null;
61 }
62
67 public static function setPCVersion(
68 string $a_id,
69 string $a_version
70 ): void {
71 self::$pc_version[$a_id] = $a_version;
72 }
73
77 public static function getPCVersion(string $a_id): ?string
78 {
79 return self::$pc_version[$a_id] ?? null;
80 }
81
82
89 public static function getPCMapping(string $a_id, ilImportMapping $a_mapping): string
90 {
91 $parts = explode(':', $a_id);
92 $old_page_id = $parts[0] . ':' . $parts[1];
93 $new_page_id = $a_mapping->getMapping("components/ILIAS/COPage", 'pg', $old_page_id);
94
95 return $new_page_id . ':' . $parts[2] . ':' . $parts[3];
96 }
97}
getMapping(string $a_comp, string $a_entity, string $a_old_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getPCProperties(string $a_id)
Get the properties of a plugged page content.
static getPCVersion(string $a_id)
Get the version of a plugged page content.
static setPCVersion(string $a_id, string $a_version)
Set the version of a plugged page content This method is used by ilCOPageExporter to provide the vers...
static setPCProperties(string $a_id, array $a_properties)
Set the properties of a plugged page content This method is used by ilCOPageExporter to provide the p...
static getPCMapping(string $a_id, ilImportMapping $a_mapping)
Get the id of the mapped page content The id structure should be irrelevant to child classes The mapp...
Xml importer class.
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Definition: ltitoken.php:61