ePages 6.11.0 - DE_EPAGES/Trigger/API/TriggerInstaller.pm

Package DE_EPAGES::Trigger::API::TriggerInstaller

install/patch/uninstall of Database/XML/Hooks*.xml files. This installer joins the DatabaseInstaller and XMLInstaller to one, which includes both functionalities. After install or uninstall the data cache will be resetted.

Base
DE_EPAGES::Database::API::DatabaseInstaller

Functions

install
onPatchDeleteHooks
onPatchImportHooks
uninstall

install

Installs Database/XML/Hooks*.xml on installation process.

Syntax
$Installer->install;

onPatchDeleteHooks

Called by PatchImportHandler by Method onPatchDeleteHooks. Deletes the hooks at file $File.

Syntax
$Installer->onPatchDeleteHooks($File, $hParams);
Example
$Installer->onPatchDeleteHooks(
          'Database/XML/HooksShop.xml',
          {'CVS' => 'Removed',
          });
Input
$File (string)
cartridgefilename without cartridge directory
$hParams (ref.hash.*)
patch file parameters, keys are
  • CVS - could only be Removed - string

onPatchImportHooks

Called by PatchImportHandler by Method onPatchImportHooks Imports the hooks at file $File.

Syntax
$Installer->onPatchImportHooks($File, $hParams);
Example
$Installer->onPatchImportForms(
          'Database/XML/FormsShop.xml',
          {'CVS' => 'Changed',
          });
Input
$File (string)
cartridgefilename without cartridge directory
$hParams (ref.hash.*)
patch file parameters, keys are
  • CVS - could be New or Changed - string

uninstall

Uninstalls Database/XML/Hooks*.xml on uninstallation process.

Syntax
$Installer->uninstall;