ePages 6.11.0 - DE_EPAGES/Content/API/Table/ContentTagMap.pm

Package DE_EPAGES::Content::API::Table::ContentTagMap

interface for table ContentTagMap

@EXPORT_OK
InsertContentTagMap
DeleteContentTagMap
GetAllPKeyContentTagMaps
ExistsContentTagMap
GetPKeyContentTagMapsByObjectID
GetInfoContentTagMapsByObjectID
GetPKeyContentTagMapsByContentTagID
GetInfoContentTagMapsByContentTagID

Functions

DeleteContentTagMap
ExistsContentTagMap
GetAllPKeyContentTagMaps
GetInfoContentTagMapsByContentTagID
GetInfoContentTagMapsByObjectID
GetPKeyContentTagMapsByContentTagID
GetPKeyContentTagMapsByObjectID
InsertContentTagMap
OnDeleteObject

DeleteContentTagMap

Deletes a(n) ContentTagMap.

Syntax
DeleteContentTagMap($ObjectID, $ContentTagID);
DeleteContentTagMap($hContentTagMap); # if $hContentTagMap includes ObjectID, ContentTagID
Input
$ObjectID (int)
Object to which the tag is mapped (part of primary key)
$ContentTagID (int)
referenced ContentTag (part of primary key)

ExistsContentTagMap

Returns true if the ContentTagMap exists.

Syntax
$exists = ExistsContentTagMap($ObjectID, $ContentTagID);
Input
$ObjectID (int)
Object to which the tag is mapped
$ContentTagID (int)
referenced ContentTag
Return
$exists (boolean)
1/0 the ContentTagMap exists (yes/no)

GetAllPKeyContentTagMaps

Returns all ContentTagMap identifiers.

Syntax
$ahContentTagMapIDs = GetAllPKeyContentTagMaps();
Return
$ahContentTagMapIDs (reference to array of hashes)
with following keys:
  • ObjectID - Object to which the tag is mapped - int
  • ContentTagID - referenced ContentTag - int

GetInfoContentTagMapsByContentTagID

Returns objects of ContentTagMap by alternate key ContentTagID.

Syntax
$ahContentTagMaps = GetInfoContentTagMapsByContentTagID($ContentTagID);
Input
$ContentTagID (int)
referenced ContentTag
Return
$ahContentTagMaps (reference to array of hashes)
with following keys:
  • ObjectID - Object to which the tag is mapped (part of primary key)- int
  • ContentTagID - referenced ContentTag (part of primary key)- int

GetInfoContentTagMapsByObjectID

Returns objects of ContentTagMap by primary key element ObjectID.

Syntax
$ahContentTagMaps = GetInfoContentTagMapsByObjectID($ObjectID);
Input
$ObjectID (int)
Object to which the tag is mapped
Return
$ahContentTagMaps (reference to array of hashes)
with following keys:
  • ObjectID - Object to which the tag is mapped (part of primary key)- int
  • ContentTagID - referenced ContentTag (part of primary key)- int

GetPKeyContentTagMapsByContentTagID

Returns primary keys of ContentTagMap by alternate key ContentTagID.

Syntax
$ahKeys = GetPKeyContentTagMapsByContentTagID($ContentTagID);
Input
$ContentTagID (int)
referenced ContentTag
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ObjectID - Object to which the tag is mapped - int
  • ContentTagID - referenced ContentTag - int

GetPKeyContentTagMapsByObjectID

Returns primary keys of ContentTagMap by primary key element ObjectID.

Syntax
$ahKeys = GetPKeyContentTagMapsByObjectID($ObjectID);
Input
$ObjectID (int)
Object to which the tag is mapped
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ObjectID - Object to which the tag is mapped - int
  • ContentTagID - referenced ContentTag - int

InsertContentTagMap

Creates an entry of ContentTagMap.

Syntax
InsertContentTagMap($hContentTagMap);
Input
$hContentTagMap (reference to hash)
with following keys:
  • ObjectID - Object to which the tag is mapped (part of primary key)- int
  • ContentTagID - referenced ContentTag (part of primary key)- int

OnDeleteObject

Deletes ContentTagMap of this model when a(n) Object is deleted.

Syntax
OnDeleteObject($hParams);
Input
$hParams (ref.hash.*)
primary key of object Object, key is
  • ObjectID