ePages 6.14.0 - DE_EPAGES/MultiStore/API/Table/AffiliateProductMap.pm

Package DE_EPAGES::MultiStore::API::Table::AffiliateProductMap

interface for table AffiliateProductMap

@EXPORT_OK
InsertAffiliateProductMap
UpdateAffiliateProductMap
DeleteAffiliateProductMap
GetAllPKeyAffiliateProductMaps
GetAllInfoAffiliateProductMaps
GetInfoAffiliateProductMap
ExistsAffiliateProductMap
GetPKeyAffiliateProductMapsBySubShopID
GetInfoAffiliateProductMapsBySubShopID
GetPKeyAffiliateProductMapsBySubShopProductID
GetInfoAffiliateProductMapsBySubShopProductID
GetPKeyAffiliateProductMapsByAffiliateProductID
GetInfoAffiliateProductMapsByAffiliateProductID

Functions

DeleteAffiliateProductMap
ExistsAffiliateProductMap
GetAllInfoAffiliateProductMaps
GetAllPKeyAffiliateProductMaps
GetInfoAffiliateProductMap
GetInfoAffiliateProductMapsByAffiliateProductID
GetInfoAffiliateProductMapsBySubShopID
GetInfoAffiliateProductMapsBySubShopProductID
GetPKeyAffiliateProductMapsByAffiliateProductID
GetPKeyAffiliateProductMapsBySubShopID
GetPKeyAffiliateProductMapsBySubShopProductID
InsertAffiliateProductMap
OnDeleteAffiliateProduct
OnDeleteShop
OnDeleteSubShopProduct
UpdateAffiliateProductMap

DeleteAffiliateProductMap

Deletes a(n) AffiliateProductMap.

Syntax
DeleteAffiliateProductMap($AffiliateProductMapID);
DeleteAffiliateProductMap($hAffiliateProductMap); # if $hAffiliateProductMap includes AffiliateProductMapID
Input
$AffiliateProductMapID (int)
download product map identifier (primary key)

ExistsAffiliateProductMap

Returns true if the AffiliateProductMap exists.

Syntax
$exists = ExistsAffiliateProductMap($AffiliateProductMapID);
Input
$AffiliateProductMapID (int)
download product map identifier
Return
$exists (boolean)
1/0 the AffiliateProductMap exists (yes/no)

GetAllInfoAffiliateProductMaps

Returns all objects of AffiliateProductMap.

Syntax
$ahAffiliateProductMaps = GetAllInfoAffiliateProductMaps();
Return
$ahAffiliateProductMaps (reference to array of hashes)
with following keys:
  • AffiliateProductMapID - download product map identifier (primary key)- int
  • AffiliateProductID - product identifier - int
  • SubShopProductID - Slave object (optional)- int
  • SubShopID - shop id - int

GetAllPKeyAffiliateProductMaps

Returns all AffiliateProductMap identifiers.

Syntax
$aAffiliateProductMapIDs = GetAllPKeyAffiliateProductMaps();
Return
$aAffiliateProductMapIDs (reference to array of int)
download product map identifier

GetInfoAffiliateProductMap

Returns the AffiliateProductMap by identifier.

Syntax
$hAffiliateProductMap = GetInfoAffiliateProductMap($AffiliateProductMapID);
Input
$AffiliateProductMapID (int)
download product map identifier (primary key)
Return
$hAffiliateProductMap (reference to hash)
with following keys:
  • AffiliateProductMapID - download product map identifier (primary key)- int
  • AffiliateProductID - product identifier - int
  • SubShopProductID - Slave object (optional)- int
  • SubShopID - shop id - int

GetInfoAffiliateProductMapsByAffiliateProductID

Returns objects of AffiliateProductMap by alternate key AffiliateProductID.

Syntax
$ahAffiliateProductMaps = GetInfoAffiliateProductMapsByAffiliateProductID($AffiliateProductID);
Input
$AffiliateProductID (int)
product identifier
Return
$ahAffiliateProductMaps (reference to array of hashes)
with following keys:
  • AffiliateProductMapID - download product map identifier (primary key)- int
  • AffiliateProductID - product identifier - int
  • SubShopProductID - Slave object (optional)- int
  • SubShopID - shop id - int

GetInfoAffiliateProductMapsBySubShopID

Returns objects of AffiliateProductMap by alternate key SubShopID.

Syntax
$ahAffiliateProductMaps = GetInfoAffiliateProductMapsBySubShopID($SubShopID);
Input
$SubShopID (int)
shop id
Return
$ahAffiliateProductMaps (reference to array of hashes)
with following keys:
  • AffiliateProductMapID - download product map identifier (primary key)- int
  • AffiliateProductID - product identifier - int
  • SubShopProductID - Slave object (optional)- int
  • SubShopID - shop id - int

GetInfoAffiliateProductMapsBySubShopProductID

Returns objects of AffiliateProductMap by alternate key SubShopProductID.

Syntax
$ahAffiliateProductMaps = GetInfoAffiliateProductMapsBySubShopProductID($SubShopProductID);
Input
$SubShopProductID (int)
Slave object
Return
$ahAffiliateProductMaps (reference to array of hashes)
with following keys:
  • AffiliateProductMapID - download product map identifier (primary key)- int
  • AffiliateProductID - product identifier - int
  • SubShopProductID - Slave object (optional)- int
  • SubShopID - shop id - int

GetPKeyAffiliateProductMapsByAffiliateProductID

Returns primary keys of AffiliateProductMap by alternate key AffiliateProductID.

Syntax
$aKeys = GetPKeyAffiliateProductMapsByAffiliateProductID($AffiliateProductID);
Input
$AffiliateProductID (int)
product identifier
Return
$aKeys (reference to array of int)
download product map identifier (primary key)

GetPKeyAffiliateProductMapsBySubShopID

Returns primary keys of AffiliateProductMap by alternate key SubShopID.

Syntax
$aKeys = GetPKeyAffiliateProductMapsBySubShopID($SubShopID);
Input
$SubShopID (int)
shop id
Return
$aKeys (reference to array of int)
download product map identifier (primary key)

GetPKeyAffiliateProductMapsBySubShopProductID

Returns primary keys of AffiliateProductMap by alternate key SubShopProductID.

Syntax
$aKeys = GetPKeyAffiliateProductMapsBySubShopProductID($SubShopProductID);
Input
$SubShopProductID (int)
Slave object
Return
$aKeys (reference to array of int)
download product map identifier (primary key)

InsertAffiliateProductMap

Creates an entry of AffiliateProductMap.

Syntax
$AffiliateProductMapID = InsertAffiliateProductMap($hAffiliateProductMap);
Input
$hAffiliateProductMap (reference to hash)
with following keys:
  • AffiliateProductMapID - download product map identifier (primary key)(optional)- int
  • AffiliateProductID - product identifier - int
  • SubShopProductID - Slave object (optional)- int
  • SubShopID - shop id - int
Return
$AffiliateProductMapID (int)
download product map identifier (primary key)

OnDeleteAffiliateProduct

Deletes AffiliateProductMap of this model when an AffiliateProduct is deleted.

Syntax
OnDeleteAffiliateProduct($hParams);
Input
$hParams (ref.hash.*)
primary key of object ContentObject, key is
  • ContentObjectID

OnDeleteShop

Deletes AffiliateProductMap of this model when a(n) Shop is deleted.

Syntax
OnDeleteShop($hParams);
Input
$hParams (ref.hash.*)
primary key of object Shop, key is
  • ShopID

OnDeleteSubShopProduct

Deletes AffiliateProductMap of this model when an AffiliateProduct is deleted.

Syntax
OnDeleteSubShopProduct($hParams);
Input
$hParams (ref.hash.*)
primary key of object ContentObject, key is
  • ContentObjectID

UpdateAffiliateProductMap

Updates a(n) AffiliateProductMap if any element was changed.

Syntax
UpdateAffiliateProductMap($AffiliateProductMapID, $hAffiliateProductMap);
UpdateAffiliateProductMap($hAffiliateProductMap); # if $hAffiliateProductMap includes AffiliateProductMapID
Input
$AffiliateProductMapID (int)
download product map identifier (primary key)
$hAffiliateProductMap (reference to hash)
with following keys:
  • AffiliateProductID - product identifier - int
  • SubShopProductID - Slave object (optional)- int
  • SubShopID - shop id - int