Package DE_EPAGES::MultiStore::API::Object
Affiliate Object API
Base |
Exporter |
@EXPORT_OK |
Functions
- DeserializeObject
- GetRemoteAttributes
- GetWithMaster
- MapAttributeNames
- NewAffiliateObject
- PathStringFromSite
- PathStringFromSubShop
- SerializeObject
- VisibleInSubShop
DeserializeObject
Checks if $Element is deserializable by calling ->can('doDeserialize'). If yes, it returns the result of that. If not, $Element is returned unchanged
Syntax |
DeserializeObject( $Element, $Site ); |
Input |
|
Return |
|
GetRemoteAttributes
Returns attributes coming from the remote object mapped into local objects.
Syntax |
GetRemoteAttributes( $LocalObject, $aNames, $LanguageID ); |
Input |
|
Return |
|
GetWithMaster
Used in TLE context to fetch affiliate object information with information from the master object. Some attributes are only used locally (Parent ObjectID etc) and some are overwritable, so that a combination of affiliate and master object values is return.
Syntax |
GetWithMaster( $Object, $aNames, $LanguageID, $aLOCAL_ATTRIBUTES, $aOVERWRITABLE_ATTRIUBTES, $cGetMasterObject ); |
Input |
|
Return |
|
MapAttributeNames
Maps internal (SuperProductID) to external (SuperProduct) names
Syntax |
MapAttributeNames( $Object, $aNames ); |
Input |
|
Return |
|
NewAffiliateObject
inserts an affiliate object.
Syntax |
NewAffiliateObject( $Parent, $Class, $hAttributes ); |
Input |
|
Return |
|
PathStringFromSite
Returns the relative path based from the object's site
Syntax |
PathStringFromSite( $Object ); |
Input |
|
Return |
|
PathStringFromSubShop
Returns the relative path based from the object's site
Syntax |
PathStringFromSubShop( $Object ); |
Input |
|
Return |
|
SerializeObject
Serializes an Object into a placeholder containing a the object path If no object is passed, $Element is returned unchanged.
Syntax |
SerializeObject( $Element ); |
Input |
|
Return |
|
VisibleInSubShop
Returns true if affiliate object is visible in subshop
Syntax |
VisibleInSubShop( $LocalObject, $SubShop ); |
Input |
|
Return |
|