Package DE_EPAGES::Object::API::XML::AttributeImportHandler
This module implements a SAX2 handler to import attributes. It is used to import language-dependent descriptions of existing objects and does not create any new objects.
Base |
DE_EPAGES::XML::API::BaseImportHandler |
Example |
use DE_EPAGES::Object::API::XML::AttributeImportHandler qw( ImportAttributes ); ImportAttributes( 'PaymentTypes.de.xml' ); |
@EXPORT_OK |
Functions
ImportAttributes
Imports Attributes from an XML file. Unlike DE_EPAGES::Object::API::XML::ObjectImportHandler::ImportObjects this function does not create new objects. It is used to import localized attribute values for existing objects.
Syntax |
ImportAttributes( $FileName ); ImportAttributes( $FileName, $Path ); |
Example |
ImportAttributes( 'Translation.DemoShop.de.xml', '/Shops/DemoShop' ); |
Input |
|
ImportTranslation
Imports Attributes from XML files that match the file name pattern "$FilePrefix*$Code2.xml" where $Code2 is the ISO langauge code of any installed language (included in $System->get('Languages')). See also ImportAttributes.
Syntax |
ImportTranslation( $FilePrefix ); ImportTranslation( $FilePrefix, $Path ); |
Example |
ImportTranslation( "$XMLDir/Translation.Actions" ); |
Input |
|