Abstract parent class for all page component plugin importer classes.
More...
Abstract parent class for all page component plugin importer classes.
- Author
- Fred Neumann fred..nosp@m.neum.nosp@m.ann@g.nosp@m.mx.d.nosp@m.e
- Version
- $Id$
Definition at line 15 of file class.ilPageComponentPluginImporter.php.
◆ getPCMapping()
static ilPageComponentPluginImporter::getPCMapping |
( |
|
$a_id, |
|
|
|
$a_mapping |
|
) |
| |
|
static |
Get the id of the mapped page content The id structure should be irrelevant to child classes The mapped ID shold be used both for getPCProperties() and setPCProperties() when being called in their importXmlRepresentation()
- Parameters
-
Definition at line 99 of file class.ilPageComponentPluginImporter.php.
100 {
101 $parts = explode(':', $a_id);
102 $old_page_id = $parts[0] . ':' . $parts[1];
103 $new_page_id = $a_mapping->getMapping("Services/COPage", 'pg', $old_page_id);
104
105 return $new_page_id . ':' . $parts[2] . ':' . $parts[3];
106 }
◆ getPCProperties()
static ilPageComponentPluginImporter::getPCProperties |
( |
|
$a_id | ) |
|
|
static |
Get the properties of a plugged page content.
- Parameters
-
- Returns
- mixed|null
Definition at line 53 of file class.ilPageComponentPluginImporter.php.
54 {
55 if (isset(self::$pc_properties[$a_id])) {
56 return self::$pc_properties[$a_id];
57 } else {
58 return null;
59 }
60 }
◆ getPCVersion()
static ilPageComponentPluginImporter::getPCVersion |
( |
|
$a_id | ) |
|
|
static |
Get the version of a plugged page content.
- Parameters
-
- Returns
- string|null
Definition at line 80 of file class.ilPageComponentPluginImporter.php.
81 {
82 if (isset(self::$pc_version[$a_id])) {
83 return self::$pc_version[$a_id];
84 } else {
85 return null;
86 }
87 }
◆ setPCProperties()
static ilPageComponentPluginImporter::setPCProperties |
( |
|
$a_id, |
|
|
|
$a_properties |
|
) |
| |
|
static |
◆ setPCVersion()
static ilPageComponentPluginImporter::setPCVersion |
( |
|
$a_id, |
|
|
|
$a_version |
|
) |
| |
|
static |
◆ $pc_properties
ilPageComponentPluginImporter::$pc_properties = array() |
|
staticprotected |
◆ $pc_version
ilPageComponentPluginImporter::$pc_version = array() |
|
staticprotected |
The documentation for this class was generated from the following file: