ePages 6.12.0 - DE_EPAGES/MultiStore/API/Object.pm

Package DE_EPAGES::MultiStore::API::Object

Affiliate Object API

Base
Exporter
@EXPORT_OK
NewAffiliateObject
MapAttributeNames
GetRemoteAttributes
PathStringFromSite
PathStringFromSubShop

Functions

GetRemoteAttributes
MapAttributeNames
NewAffiliateObject
PathStringFromSite
PathStringFromSubShop

GetRemoteAttributes

Returns attributes coming from the remote object mapped into local objects.

Syntax
GetRemoteAttributes( $LocalObject, $aNames, $LanguageID );
Input
$LocalObject (object)
local object
$aNames (ref.array.string)
attribute names
$LanguageID (integer)
language id
Return
$hReturn (ref.hash)
return values

MapAttributeNames

Maps internal (SuperProductID) to external (SuperProduct) names

Syntax
MapAttributeNames( $Object, $aNames );
Input
$Object (object)
input object
$aNames (ref.array.string)
internal cache attribute names
Return
$aMappedNames (ref.array.string)
mapped attribute names

NewAffiliateObject

inserts an affiliate object.

Syntax
NewAffiliateObject( $Parent, $Class, $hAttributes );
Input
$Parent (object)
parent object
$Class (object)
affiliate class
$hAttributes (ref.hash)
initial attributes
Return
$AffiliateObject (object)
affiliate object

PathStringFromSite

Returns the relative path based from the object's site

Syntax
PathStringFromSite( $Object );
Input
$Object (object)
object
Return
$PathString (string)
path string

PathStringFromSubShop

Returns the relative path based from the object's site

Syntax
PathStringFromSubShop( $Object );
Input
$Object (object)
object
Return
$PathString (string)
path string