ePages 6.11.0 - DE_EPAGES/ShopConfiguration/API/Table/StoreFeature.pm

Package DE_EPAGES::ShopConfiguration::API::Table::StoreFeature

interface for table StoreFeature

@EXPORT_OK
InsertStoreFeature
DeleteStoreFeature
GetAllPKeyStoreFeatures
ExistsStoreFeature
GetPKeyStoreFeaturesByStoreID
GetInfoStoreFeaturesByStoreID
GetPKeyStoreFeaturesByFeatureID
GetInfoStoreFeaturesByFeatureID

Functions

DeleteStoreFeature
ExistsStoreFeature
GetAllPKeyStoreFeatures
GetInfoStoreFeaturesByFeatureID
GetInfoStoreFeaturesByStoreID
GetPKeyStoreFeaturesByFeatureID
GetPKeyStoreFeaturesByStoreID
InsertStoreFeature
OnDeleteStore

DeleteStoreFeature

Deletes a(n) StoreFeature.

Syntax
DeleteStoreFeature($StoreID, $FeatureID);
DeleteStoreFeature($hStoreFeature); # if $hStoreFeature includes StoreID, FeatureID
Input
$StoreID (integer)
store identifier (part of primary key)
$FeatureID (int)
feature id (part of primary key)

ExistsStoreFeature

Returns true if the StoreFeature exists.

Syntax
$exists = ExistsStoreFeature($StoreID, $FeatureID);
Input
$StoreID (integer)
store identifier
$FeatureID (int)
feature id
Return
$exists (boolean)
1/0 the StoreFeature exists (yes/no)

GetAllPKeyStoreFeatures

Returns all StoreFeature identifiers.

Syntax
$ahStoreFeatureIDs = GetAllPKeyStoreFeatures();
Return
$ahStoreFeatureIDs (reference to array of hashes)
with following keys:
  • StoreID - store identifier - integer
  • FeatureID - feature id - int

GetInfoStoreFeaturesByFeatureID

Returns objects of StoreFeature by alternate key FeatureID.

Syntax
$ahStoreFeatures = GetInfoStoreFeaturesByFeatureID($FeatureID);
Input
$FeatureID (int)
feature id
Return
$ahStoreFeatures (reference to array of hashes)
with following keys:
  • StoreID - store identifier (part of primary key)- integer
  • FeatureID - feature id (part of primary key)- int

GetInfoStoreFeaturesByStoreID

Returns objects of StoreFeature by primary key element StoreID.

Syntax
$ahStoreFeatures = GetInfoStoreFeaturesByStoreID($StoreID);
Input
$StoreID (integer)
store identifier
Return
$ahStoreFeatures (reference to array of hashes)
with following keys:
  • StoreID - store identifier (part of primary key)- integer
  • FeatureID - feature id (part of primary key)- int

GetPKeyStoreFeaturesByFeatureID

Returns primary keys of StoreFeature by alternate key FeatureID.

Syntax
$ahKeys = GetPKeyStoreFeaturesByFeatureID($FeatureID);
Input
$FeatureID (int)
feature id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • StoreID - store identifier - integer
  • FeatureID - feature id - int

GetPKeyStoreFeaturesByStoreID

Returns primary keys of StoreFeature by primary key element StoreID.

Syntax
$ahKeys = GetPKeyStoreFeaturesByStoreID($StoreID);
Input
$StoreID (integer)
store identifier
Return
$ahKeys (reference to array of hashes)
with following keys:
  • StoreID - store identifier - integer
  • FeatureID - feature id - int

InsertStoreFeature

Creates an entry of StoreFeature.

Syntax
InsertStoreFeature($hStoreFeature);
Input
$hStoreFeature (reference to hash)
with following keys:
  • StoreID - store identifier (part of primary key)- integer
  • FeatureID - feature id (part of primary key)- int

OnDeleteStore

Deletes StoreFeature of this model when a(n) Store is deleted.

Syntax
OnDeleteStore($hParams);
Input
$hParams (ref.hash.*)
primary key of object Store, key is
  • StoreID