Package DE_EPAGES::MultiStoreCommon::API::Synchronization
MultiStoreCommon - Synchronization module
Base |
Exporter |
@EXPORT_OK |
Functions
- CleanupTable
- GetCategoryObjXML
- GetCategoryObjXMLType
- GetDefaultValues
- GetLastUpdateID
- GetLastUpdates
- GetObjectPathToIdMap
- GetSyncPath
- RunClocked
- SetLastUpdateID
- SetPeriodicUpdateID
- TransformExportXML
CleanupTable
Deletes each record from table ObjectUpdate older than MS_UPDATE_DAYS.
Syntax |
CleanupTable($Shop) |
Input |
|
GetCategoryObjXML
Removes the CategoryProductMap from a category object data hash
Syntax |
GetCategoryObjXML($hXML); |
Input |
|
Return |
|
GetCategoryObjXMLType
Returns the type of a category given by a category object data hash
Syntax |
GetCategoryObjXMLType($hXML); |
Input |
|
Return |
|
GetDefaultValues
Triggers hook 'API_MS_GetDefaultValues' and returns the result.
Syntax |
my $hValues = GetDefaultValues(); |
Return |
|
GetLastUpdateID
Returns the value of shop attribute 'MS_LastUpdate' or '0' for default.
Syntax |
my $LastUpdateID = GetLastUpdateID($Shop, $ShopAlias); |
Input |
|
Return |
|
GetLastUpdates
Returns the info list of recently updated objects.
Syntax |
my $ahLastUpdates = GetLastUpdates($Shop, $LastUpdateID_LB, $LastUpdateID_UB); |
Input |
|
Return |
|
GetObjectPathToIdMap
Maps objects paths to a list of associate objects ids.
Syntax |
my %Map = GetObjectPathToIdMap($ahInfoObjects); |
Example |
my %Map = GetObjectPathToIdMap( LoadClassByAlias('ObjectUpdateID')->infoObjects ); |
Input |
|
Return |
|
GetSyncPath
returns the path to the sync folder for the shop.
Syntax |
my $SyncPath = GetSyncPath($StoreName,$ShopName); |
Input |
|
Return |
|
RunClocked
Runs the given code for this shop in a clocked mode. The process can be startet several times, but ensures that the current shop is processed only once at the same time.
Syntax |
RunClocked($Store,$Shop,$cSub); |
Input |
|
SetLastUpdateID
Sets a value for shop attribute 'MS_LastUpdate'.
Syntax |
SetLastUpdateID($Shop, $MS_LastUpdate, $ShopAlias); |
Input |
|
SetPeriodicUpdateID
Calls function 'SetLastUpdateID' depending on DE_EPAGES::MultiStoreCommon::API::Constants::MS_LASTUPDATE_SAVE_PERIOD.
Syntax |
SetPeriodicUpdateID($Shop, $ProcessedUpdatesCount, $ObjectUpdateID, %ScheduledUpdateIDs, $ShopAlias); |
Input |
|
TransformExportXML
Transformation of some attributes during export of an object.
Syntax |
TransformExportXML($TagName, $hAttributes) |
Input |
|