ePages 6.10 - DE_EPAGES/XML/API/XML/PatchImportHandler.pm

Package DE_EPAGES::XML::API::XML::PatchImportHandler

This module implements a SAX2 handler to import patch.xml

Example
use DE_EPAGES::XML::API::XML::PatchImportHandler;
DE_EPAGES::Installer::API::XML::PatchImportHandler->importXML($Installer, $PatchFileName, $PatchSection);
@EXPORT_OK
ImportPatch

Functions

ImportPatch
importXML

ImportPatch

Parse patch.xml, starts functions for patchfiles, which are in the $PatchSection

Syntax
$NewVersion = ImportPatch( $Installer, $FileName, $PatchSection );
Input
$Installer (installer object)
Installer which calls ImportPatch
$FileName (string)
XML file name
$PatchSection (string)
PatchDBStructure or Patch
Return
$NewVersion (string)
new version of the cartridge after installing the patch

importXML

Parse patch.xml, starts functions for patchfiles, which are in the $PatchSection this function are called at installer $Installer->$Method($File, $hParams);

Syntax
$NewVersion = $Package->importXML($Installer, $FileName, $PatchSection );
Input
$Installer (installer object)
Installer which calls ImportPatch
$FileName (string)
XML file name
$PatchSection (string)
PatchDBStructure or Patch
Return
$NewVersion (string)
new version of the cartridge after installing the patch