ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilForumImporter Class Reference
+ Inheritance diagram for ilForumImporter:
+ Collaboration diagram for ilForumImporter:

Public Member Functions

 init ()
 
 finalProcessing (ilImportMapping $a_mapping)
 
- Public Member Functions inherited from ilXmlImporter
 __construct ()
 
 setImport (ilImport $a_val)
 
 getImport ()
 
 init ()
 
 setInstallId (string $a_val)
 
 getInstallId ()
 
 setInstallUrl (string $a_val)
 
 getInstallUrl ()
 
 setSchemaVersion (string $a_val)
 
 getSchemaVersion ()
 
 setImportDirectory (string $a_val)
 
 getImportDirectory ()
 
 setSkipEntities (array $a_val)
 
 getSkipEntities ()
 
 exportedFromSameInstallation ()
 
 importXmlRepresentation (string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
 
 finalProcessing (ilImportMapping $a_mapping)
 
 afterContainerImportProcessing (ilImportMapping $mapping)
 

Protected Attributes

ILIAS Style Content DomainService $content_style_domain
 
- Protected Attributes inherited from ilXmlImporter
array $skip_entities = array()
 
ilImport $imp
 
string $install_id
 
string $install_url
 
string $schema_version
 
string $import_directory
 

Additional Inherited Members

- Data Fields inherited from ilForumObjectConstants
const OBJ_TYPE = 'frm'
 
const UI_TAB_ID_INFO = 'info_short'
 
const UI_TAB_ID_SETTINGS = 'settings'
 
const UI_TAB_ID_MODERATORS = 'frm_moderators'
 
const UI_TAB_ID_THREADS = 'forums_threads'
 
const UI_TAB_ID_STATS = 'frm_statistics'
 
const UI_TAB_ID_EXPORT = 'export'
 
const UI_TAB_ID_PERMISSIONS = 'perm_settings'
 
const UI_SUB_TAB_ID_BASIC_SETTINGS = 'general'
 
const UI_SUB_TAB_ID_NOTIFICATIONS = 'notifications'
 
const UI_SUB_TAB_ID_NEWS = 'cont_news_settings'
 
const UI_SUB_TAB_ID_STYLE = 'cont_style'
 
const UI_CMD_COPAGE_DOWNLOAD_FILE = 'downloadFile'
 
const UI_CMD_COPAGE_DISPLAY_FULLSCREEN = 'displayMediaFullscreen'
 
const UI_CMD_COPAGE_DOWNLOAD_PARAGRAPH = 'download_paragraph'
 

Detailed Description

Definition at line 21 of file class.ilForumImporter.php.

Member Function Documentation

◆ finalProcessing()

ilForumImporter::finalProcessing ( ilImportMapping  $a_mapping)

Definition at line 54 of file class.ilForumImporter.php.

References ilForumXMLParser\$style_map, ilPageObject\_writeParentId(), ilImportMapping\getMappingsOfEntity(), and ILIAS\Repository\int().

54  : void
55  {
56  parent::finalProcessing($a_mapping);
57 
58  $copaMap = $a_mapping->getMappingsOfEntity('components/ILIAS/COPage', 'pg');
59  foreach ($copaMap as $newCopaId) {
60  $newCopaId = (int) substr($newCopaId, strlen(self::OBJ_TYPE) + 1);
61 
62  ilForumPage::_writeParentId(self::OBJ_TYPE, $newCopaId, $newCopaId);
63  }
64 
65  $style_map = $a_mapping->getMappingsOfEntity('components/ILIAS/Style', 'sty');
66  foreach ($style_map as $old_style_id => $new_style_id) {
67  if (isset(ilForumXMLParser::$style_map[$old_style_id]) &&
68  is_array(ilForumXMLParser::$style_map[$old_style_id])) {
69  foreach (ilForumXMLParser::$style_map[$old_style_id] as $new_frm_id) {
70  $this->content_style_domain
71  ->styleForObjId($new_frm_id)
72  ->updateStyleId((int) $new_style_id);
73  }
74  }
75  }
76  }
static _writeParentId(string $a_parent_type, int $a_pg_id, int $a_par_id)
getMappingsOfEntity(string $a_comp, string $a_entity)
+ Here is the call graph for this function:

◆ init()

ilForumImporter::init ( )

Definition at line 25 of file class.ilForumImporter.php.

References $DIC, ilImportMapping\addMapping(), ilXmlImporter\getImportDirectory(), ilXmlImporter\getInstallId(), ilObjectFactory\getInstanceByObjId(), ilImportMapping\getMapping(), ilXmlImporter\getSchemaVersion(), and ilXmlImporter\importXmlRepresentation().

25  : void
26  {
27  global $DIC;
28 
29  $this->content_style_domain = $DIC
30  ->contentStyle()
31  ->domain();
32  }
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

Field Documentation

◆ $content_style_domain

ILIAS Style Content DomainService ilForumImporter::$content_style_domain
protected

Definition at line 23 of file class.ilForumImporter.php.


The documentation for this class was generated from the following file: