public function extractThemeFilesHook($xml, $zipArchive, $themeId, $idMappingData)
	{
		$modules = \ModuleModel::findBy(
			array('tl_module.pid = ? AND tl_module.type LIKE \'rsce_%\''),
			$themeId
		);

		if (!$modules || !count($modules)) {
			return;
		}

		foreach ($modules as $module) {

			if (substr($module->type, 0, 5) !== 'rsce_') {
				continue;
			}

			$rsceDataConverted = $this->convertDataForImportExport(
				true,
				$module->type,
				$module->rsce_data,
				$idMappingData
			);

			if (
				!$rsceDataConverted
				|| strtolower($rsceDataConverted) === 'null'
				|| $rsceDataConverted === '{}'
				|| $rsceDataConverted === '[]'
				|| $rsceDataConverted === $module->rsce_data
			) {
				continue;
			}

			$module->rsce_data = $rsceDataConverted;

			$module->save();

		}
	}
public function extractThemeFilesHook($xml, $zipArchive, $themeId, $idMappingData)
	{
		$modules = \ModuleModel::findBy(
			array('tl_module.pid = ? AND tl_module.type LIKE \'rsce_%\''),
			$themeId
		);

		if (!$modules || !count($modules)) {
			return;
		}

		foreach ($modules as $module) {

			if (substr($module->type, 0, 5) !== 'rsce_') {
				continue;
			}

			$rsceDataConverted = $this->convertDataForImportExport(
				true,
				$module->type,
				$module->rsce_data,
				$idMappingData
			);

			if (
				!$rsceDataConverted
				|| strtolower($rsceDataConverted) === 'null'
				|| $rsceDataConverted === '{}'
				|| $rsceDataConverted === '[]'
				|| $rsceDataConverted === $module->rsce_data
			) {
				continue;
			}

			$module->rsce_data = $rsceDataConverted;

			$module->save();

		}
	}
public function extractThemeFilesHook ( $ xml , $ zipArchive , $ themeId , $ idMappingData ) { $ modules = \ ModuleModel :: findBy ( array ( 'tl_module.pid = ? AND tl_module.type LIKE \'rsce_%\'' ) , $ themeId ) ; if ( ! $ modules || ! count ( $ modules ) ) { return ; } foreach ( $ modules as $ module ) { if ( substr ( $ module -> type , 0 , 5 ) !== 'rsce_' ) { continue ; } $ rsceDataConverted = $ this -> convertDataForImportExport ( true , $ module -> type , $ module -> rsce_data , $ idMappingData ) ; if ( ! $ rsceDataConverted || strtolower ( $ rsceDataConverted ) === 'null' || $ rsceDataConverted === '{}' || $ rsceDataConverted === '[]' || $ rsceDataConverted === $ module -> rsce_data ) { continue ; } $ module -> rsce_data = $ rsceDataConverted ; $ module -> save ( ) ; } }
Convert IDs for theme import

@param  \DOMDocument $xml           theme.xml
@param  \ZipWriter   $zipArchive    CTO file
@param  int          $themeId
@param  array        $idMappingData ID mapping for imported database rows
@return void
Convert IDs for theme import