ePages 6.10 - DE_EPAGES/Product/API/Table/ProductShippingMethod.pm

Package DE_EPAGES::Product::API::Table::ProductShippingMethod

interface for table ProductShippingMethod

@EXPORT_OK
InsertProductShippingMethod
DeleteProductShippingMethod
GetAllPKeyProductShippingMethods
ExistsProductShippingMethod
GetPKeyProductShippingMethodsByProductID
GetInfoProductShippingMethodsByProductID
GetPKeyProductShippingMethodsByShippingMethodID
GetInfoProductShippingMethodsByShippingMethodID

Functions

DeleteProductShippingMethod
ExistsProductShippingMethod
GetAllPKeyProductShippingMethods
GetInfoProductShippingMethodsByProductID
GetInfoProductShippingMethodsByShippingMethodID
GetPKeyProductShippingMethodsByProductID
GetPKeyProductShippingMethodsByShippingMethodID
InsertProductShippingMethod
OnDeleteShippingMethod

DeleteProductShippingMethod

Deletes a(n) ProductShippingMethod.

Syntax
DeleteProductShippingMethod($ProductID, $ShippingMethodID);
DeleteProductShippingMethod($hProductShippingMethod); # if $hProductShippingMethod includes ProductID, ShippingMethodID
Input
$ProductID (int)
product identifier (part of primary key)
$ShippingMethodID (int)
shipping method id (part of primary key)

ExistsProductShippingMethod

Returns true if the ProductShippingMethod exists.

Syntax
$exists = ExistsProductShippingMethod($ProductID, $ShippingMethodID);
Input
$ProductID (int)
product identifier
$ShippingMethodID (int)
shipping method id
Return
$exists (boolean)
1/0 the ProductShippingMethod exists (yes/no)

GetAllPKeyProductShippingMethods

Returns all ProductShippingMethod identifiers.

Syntax
$ahProductShippingMethodIDs = GetAllPKeyProductShippingMethods();
Return
$ahProductShippingMethodIDs (reference to array of hashes)
with following keys:
  • ProductID - product identifier - int
  • ShippingMethodID - shipping method id - int

GetInfoProductShippingMethodsByProductID

Returns objects of ProductShippingMethod by primary key element ProductID.

Syntax
$ahProductShippingMethods = GetInfoProductShippingMethodsByProductID($ProductID);
Input
$ProductID (int)
product identifier
Return
$ahProductShippingMethods (reference to array of hashes)
with following keys:
  • ProductID - product identifier (part of primary key)- int
  • ShippingMethodID - shipping method id (part of primary key)- int

GetInfoProductShippingMethodsByShippingMethodID

Returns objects of ProductShippingMethod by alternate key ShippingMethodID.

Syntax
$ahProductShippingMethods = GetInfoProductShippingMethodsByShippingMethodID($ShippingMethodID);
Input
$ShippingMethodID (int)
shipping method id
Return
$ahProductShippingMethods (reference to array of hashes)
with following keys:
  • ProductID - product identifier (part of primary key)- int
  • ShippingMethodID - shipping method id (part of primary key)- int

GetPKeyProductShippingMethodsByProductID

Returns primary keys of ProductShippingMethod by primary key element ProductID.

Syntax
$ahKeys = GetPKeyProductShippingMethodsByProductID($ProductID);
Input
$ProductID (int)
product identifier
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ProductID - product identifier - int
  • ShippingMethodID - shipping method id - int

GetPKeyProductShippingMethodsByShippingMethodID

Returns primary keys of ProductShippingMethod by alternate key ShippingMethodID.

Syntax
$ahKeys = GetPKeyProductShippingMethodsByShippingMethodID($ShippingMethodID);
Input
$ShippingMethodID (int)
shipping method id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ProductID - product identifier - int
  • ShippingMethodID - shipping method id - int

InsertProductShippingMethod

Creates an entry of ProductShippingMethod.

Syntax
InsertProductShippingMethod($hProductShippingMethod);
Input
$hProductShippingMethod (reference to hash)
with following keys:
  • ProductID - product identifier (part of primary key)- int
  • ShippingMethodID - shipping method id (part of primary key)- int

OnDeleteShippingMethod

Deletes ProductShippingMethod of this model when a(n) ShippingMethod is deleted.

Syntax
OnDeleteShippingMethod($hParams);
Input
$hParams (ref.hash.*)
primary key of object ShippingMethod, key is
  • ShippingMethodID