ePages 6.0 Patch 2 - DE_EPAGES/DemoContent/API/Table/DemoContentMap.pm

Package DE_EPAGES::DemoContent::API::Table::DemoContentMap

interface for table DemoContentMap

@EXPORT_OK
InsertDemoContentMap
UpdateDemoContentMap
DeleteDemoContentMap
GetAllPKeyDemoContentMaps
GetAllInfoDemoContentMaps
GetInfoDemoContentMap
ExistsDemoContentMap
GetPKeyDemoContentMapsByStyleGroupID
GetInfoDemoContentMapsByStyleGroupID
GetPKeyDemoContentMapsByDemoContentID
GetInfoDemoContentMapsByDemoContentID

Functions

DeleteDemoContentMap
ExistsDemoContentMap
GetAllInfoDemoContentMaps
GetAllPKeyDemoContentMaps
GetInfoDemoContentMap
GetInfoDemoContentMapsByDemoContentID
GetInfoDemoContentMapsByStyleGroupID
GetPKeyDemoContentMapsByDemoContentID
GetPKeyDemoContentMapsByStyleGroupID
InsertDemoContentMap
UpdateDemoContentMap

DeleteDemoContentMap

Deletes a(n) DemoContentMap.

Syntax
DeleteDemoContentMap($StyleGroupID, $DemoContentID);
DeleteDemoContentMap($hDemoContentMap); # if $hDemoContentMap includes StyleGroupID, DemoContentID
Input
$StyleGroupID (int)
style group id (part of primary key)
$DemoContentID (int)
democontent id (part of primary key)

ExistsDemoContentMap

Returns true if the DemoContentMap exists.

Syntax
$exists = ExistsDemoContentMap($StyleGroupID, $DemoContentID);
Input
$StyleGroupID (int)
style group id
$DemoContentID (int)
democontent id
Return
$exists (boolean)
1/0 the DemoContentMap exists (yes/no)

GetAllInfoDemoContentMaps

Returns all objects of DemoContentMap.

Syntax
$ahDemoContentMapIDs = GetAllInfoDemoContentMaps();
Return
$ahDemoContentMapIDs (reference to array of hashes)
with following keys:
  • StyleGroupID - style group id (part of primary key)- int
  • DemoContentID - democontent id (part of primary key)- int
  • IsMandatory - mandatory DemoContent for StyleGroup - bit

GetAllPKeyDemoContentMaps

Returns all DemoContentMap identifiers.

Syntax
$ahDemoContentMapIDs = GetAllPKeyDemoContentMaps();
Return
$ahDemoContentMapIDs (reference to array of hashes)
with following keys:
  • StyleGroupID - style group id - int
  • DemoContentID - democontent id - int

GetInfoDemoContentMap

Returns the DemoContentMap by identifier.

Syntax
$hDemoContentMap = GetInfoDemoContentMap($StyleGroupID, $DemoContentID);
Input
$StyleGroupID (int)
style group id (part of primary key)
$DemoContentID (int)
democontent id (part of primary key)
Return
$hDemoContentMap (reference to hash)
with following keys:
  • StyleGroupID - style group id (part of primary key)- int
  • DemoContentID - democontent id (part of primary key)- int
  • IsMandatory - mandatory DemoContent for StyleGroup - bit

GetInfoDemoContentMapsByDemoContentID

Returns objects of DemoContentMap by alternate key DemoContentID.

Syntax
$ahDemoContentMaps = GetInfoDemoContentMapsByDemoContentID($DemoContentID);
Input
$DemoContentID (int)
democontent id
Return
$ahDemoContentMaps (reference to array of hashes)
with following keys:
  • StyleGroupID - style group id (part of primary key)- int
  • DemoContentID - democontent id (part of primary key)- int
  • IsMandatory - mandatory DemoContent for StyleGroup - bit

GetInfoDemoContentMapsByStyleGroupID

Returns objects of DemoContentMap by primary key element StyleGroupID.

Syntax
$ahDemoContentMaps = GetInfoDemoContentMapsByStyleGroupID($StyleGroupID);
Input
$StyleGroupID (int)
style group id
Return
$ahDemoContentMaps (reference to array of hashes)
with following keys:
  • StyleGroupID - style group id (part of primary key)- int
  • DemoContentID - democontent id (part of primary key)- int
  • IsMandatory - mandatory DemoContent for StyleGroup - bit

GetPKeyDemoContentMapsByDemoContentID

Returns primary keys of DemoContentMap by alternate key DemoContentID.

Syntax
$ahKeys = GetPKeyDemoContentMapsByDemoContentID($DemoContentID);
Input
$DemoContentID (int)
democontent id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • StyleGroupID - style group id - int
  • DemoContentID - democontent id - int

GetPKeyDemoContentMapsByStyleGroupID

Returns primary keys of DemoContentMap by primary key element StyleGroupID.

Syntax
$ahKeys = GetPKeyDemoContentMapsByStyleGroupID($StyleGroupID);
Input
$StyleGroupID (int)
style group id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • StyleGroupID - style group id - int
  • DemoContentID - democontent id - int

InsertDemoContentMap

Creates an entry of DemoContentMap.

Syntax
InsertDemoContentMap($hDemoContentMap);
Input
$hDemoContentMap (reference to hash)
with following keys:
  • StyleGroupID - style group id (part of primary key)- int
  • DemoContentID - democontent id (part of primary key)- int
  • IsMandatory - mandatory DemoContent for StyleGroup - bit

UpdateDemoContentMap

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

Syntax
UpdateDemoContentMap($StyleGroupID, $DemoContentID, $hDemoContentMap);
UpdateDemoContentMap($hDemoContentMap); # if $hDemoContentMap includes StyleGroupID, DemoContentID
Input
$StyleGroupID (int)
style group id (part of primary key)
$DemoContentID (int)
democontent id (part of primary key)
$hDemoContentMap (reference to hash)
with following keys:
  • IsMandatory - mandatory DemoContent for StyleGroup - bit