ePages 6.10 - DE_EPAGES/ProductPortal/API/Table/PortalProductMap.pm

Package DE_EPAGES::ProductPortal::API::Table::PortalProductMap

interface for table PortalProductMap

@EXPORT_OK
InsertPortalProductMap
DeletePortalProductMap
GetAllPKeyPortalProductMaps
ExistsPortalProductMap
GetPKeyPortalProductMapsByPortalConfigID
GetInfoPortalProductMapsByPortalConfigID
GetPKeyPortalProductMapsByProductID
GetInfoPortalProductMapsByProductID

Functions

DeletePortalProductMap
ExistsPortalProductMap
GetAllPKeyPortalProductMaps
GetInfoPortalProductMapsByPortalConfigID
GetInfoPortalProductMapsByProductID
GetPKeyPortalProductMapsByPortalConfigID
GetPKeyPortalProductMapsByProductID
InsertPortalProductMap
OnDeleteProduct

DeletePortalProductMap

Deletes a(n) PortalProductMap.

Syntax
DeletePortalProductMap($PortalConfigID, $ProductID);
DeletePortalProductMap($hPortalProductMap); # if $hPortalProductMap includes PortalConfigID, ProductID
Input
$PortalConfigID (int)
portal config id (part of primary key)
$ProductID (int)
product identifier (part of primary key)

ExistsPortalProductMap

Returns true if the PortalProductMap exists.

Syntax
$exists = ExistsPortalProductMap($PortalConfigID, $ProductID);
Input
$PortalConfigID (int)
portal config id
$ProductID (int)
product identifier
Return
$exists (boolean)
1/0 the PortalProductMap exists (yes/no)

GetAllPKeyPortalProductMaps

Returns all PortalProductMap identifiers.

Syntax
$ahPortalProductMapIDs = GetAllPKeyPortalProductMaps();
Return
$ahPortalProductMapIDs (reference to array of hashes)
with following keys:
  • PortalConfigID - portal config id - int
  • ProductID - product identifier - int

GetInfoPortalProductMapsByPortalConfigID

Returns objects of PortalProductMap by primary key element PortalConfigID.

Syntax
$ahPortalProductMaps = GetInfoPortalProductMapsByPortalConfigID($PortalConfigID);
Input
$PortalConfigID (int)
portal config id
Return
$ahPortalProductMaps (reference to array of hashes)
with following keys:
  • PortalConfigID - portal config id (part of primary key)- int
  • ProductID - product identifier (part of primary key)- int

GetInfoPortalProductMapsByProductID

Returns objects of PortalProductMap by alternate key ProductID.

Syntax
$ahPortalProductMaps = GetInfoPortalProductMapsByProductID($ProductID);
Input
$ProductID (int)
product identifier
Return
$ahPortalProductMaps (reference to array of hashes)
with following keys:
  • PortalConfigID - portal config id (part of primary key)- int
  • ProductID - product identifier (part of primary key)- int

GetPKeyPortalProductMapsByPortalConfigID

Returns primary keys of PortalProductMap by primary key element PortalConfigID.

Syntax
$ahKeys = GetPKeyPortalProductMapsByPortalConfigID($PortalConfigID);
Input
$PortalConfigID (int)
portal config id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • PortalConfigID - portal config id - int
  • ProductID - product identifier - int

GetPKeyPortalProductMapsByProductID

Returns primary keys of PortalProductMap by alternate key ProductID.

Syntax
$ahKeys = GetPKeyPortalProductMapsByProductID($ProductID);
Input
$ProductID (int)
product identifier
Return
$ahKeys (reference to array of hashes)
with following keys:
  • PortalConfigID - portal config id - int
  • ProductID - product identifier - int

InsertPortalProductMap

Creates an entry of PortalProductMap.

Syntax
InsertPortalProductMap($hPortalProductMap);
Input
$hPortalProductMap (reference to hash)
with following keys:
  • PortalConfigID - portal config id (part of primary key)- int
  • ProductID - product identifier (part of primary key)- int

OnDeleteProduct

Deletes PortalProductMap of this model when a(n) Product is deleted.

Syntax
OnDeleteProduct($hParams);
Input
$hParams (ref.hash.*)
primary key of object Product, key is
  • ProductID