ePages 6.17.39 - DE_EPAGES/Product/API/Table/ProductTypeCustomFont.pm

Package DE_EPAGES::Product::API::Table::ProductTypeCustomFont

interface for table ProductTypeCustomFont

@EXPORT_OK
InsertProductTypeCustomFont
UpdateProductTypeCustomFont
DeleteProductTypeCustomFont
GetAllPKeyProductTypeCustomFonts
GetAllInfoProductTypeCustomFonts
GetInfoProductTypeCustomFont
ExistsProductTypeCustomFont
GetPKeyProductTypeCustomFontsByProductTypeID
GetInfoProductTypeCustomFontsByProductTypeID

Functions

DeleteProductTypeCustomFont
ExistsProductTypeCustomFont
GetAllInfoProductTypeCustomFonts
GetAllPKeyProductTypeCustomFonts
GetInfoProductTypeCustomFont
GetInfoProductTypeCustomFontsByProductTypeID
GetPKeyProductTypeCustomFontsByProductTypeID
InsertProductTypeCustomFont
UpdateProductTypeCustomFont

DeleteProductTypeCustomFont

Deletes a(n) ProductTypeCustomFont.

Syntax
DeleteProductTypeCustomFont($ProductTypeID, $Name);
DeleteProductTypeCustomFont($hProductTypeCustomFont); # if $hProductTypeCustomFont includes ProductTypeID, Name
Input
$ProductTypeID (int)
producttype id (part of primary key)
$Name (varchar(255))
Name of custom font (part of primary key)

ExistsProductTypeCustomFont

Returns true if the ProductTypeCustomFont exists.

Syntax
$exists = ExistsProductTypeCustomFont($ProductTypeID, $Name);
Input
$ProductTypeID (int)
producttype id (part of primary key)
$Name (varchar(255))
Name of custom font (part of primary key)
Return
$exists (boolean)
1/0 the ProductTypeCustomFont exists (yes/no)

GetAllInfoProductTypeCustomFonts

Returns all objects of ProductTypeCustomFont.

Syntax
$ahProductTypeCustomFonts = GetAllInfoProductTypeCustomFonts();
Return
$ahProductTypeCustomFonts (reference to array of hashes)
with following keys:
  • ProductTypeID - producttype id (part of primary key)- int
  • Name - Name of custom font (part of primary key)- varchar(255)
  • FileName - Filename of the custom font - varchar(255)
  • FontFamilyName - Name of the fontfamily - varchar(255)

GetAllPKeyProductTypeCustomFonts

Returns all ProductTypeCustomFont identifiers.

Syntax
$ahProductTypeCustomFontIDs = GetAllPKeyProductTypeCustomFonts();
Return
$ahProductTypeCustomFontIDs (reference to array of hashes)
with following keys:
  • ProductTypeID - producttype id (part of primary key)- int
  • Name - Name of custom font (part of primary key)- varchar(255)

GetInfoProductTypeCustomFont

Returns the ProductTypeCustomFont by identifier.

Syntax
$hProductTypeCustomFont = GetInfoProductTypeCustomFont($ProductTypeID, $Name);
Input
$ProductTypeID (int)
producttype id (part of primary key)
$Name (varchar(255))
Name of custom font (part of primary key)
Return
$hProductTypeCustomFont (reference to hash)
with following keys:
  • ProductTypeID - producttype id (part of primary key)- int
  • Name - Name of custom font (part of primary key)- varchar(255)
  • FileName - Filename of the custom font - varchar(255)
  • FontFamilyName - Name of the fontfamily - varchar(255)

GetInfoProductTypeCustomFontsByProductTypeID

Returns objects of ProductTypeCustomFont by primary key element ProductTypeID.

Syntax
$ahProductTypeCustomFonts = GetInfoProductTypeCustomFontsByProductTypeID($ProductTypeID);
Input
$ProductTypeID (int)
producttype id
Return
$ahProductTypeCustomFonts (reference to array of hashes)
with following keys:
  • ProductTypeID - producttype id (part of primary key)- int
  • Name - Name of custom font (part of primary key)- varchar(255)
  • FileName - Filename of the custom font - varchar(255)
  • FontFamilyName - Name of the fontfamily - varchar(255)

GetPKeyProductTypeCustomFontsByProductTypeID

Returns primary keys of ProductTypeCustomFont by primary key element ProductTypeID.

Syntax
$ahKeys = GetPKeyProductTypeCustomFontsByProductTypeID($ProductTypeID);
Input
$ProductTypeID (int)
producttype id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ProductTypeID - producttype id (part of primary key)- int
  • Name - Name of custom font (part of primary key)- varchar(255)

InsertProductTypeCustomFont

Creates an entry of ProductTypeCustomFont.

Syntax
InsertProductTypeCustomFont($hProductTypeCustomFont);
Input
$hProductTypeCustomFont (reference to hash)
with following keys:
  • ProductTypeID - producttype id (part of primary key)- int
  • Name - Name of custom font (part of primary key)- varchar(255)
  • FileName - Filename of the custom font - varchar(255)
  • FontFamilyName - Name of the fontfamily - varchar(255)

UpdateProductTypeCustomFont

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

Syntax
UpdateProductTypeCustomFont($ProductTypeID, $Name, $hProductTypeCustomFont);
UpdateProductTypeCustomFont($hProductTypeCustomFont); # if $hProductTypeCustomFont includes ProductTypeID, Name
Input
$ProductTypeID (int)
producttype id (part of primary key)
$Name (varchar(255))
Name of custom font (part of primary key)
$hProductTypeCustomFont (reference to hash)
with following keys:
  • FileName - Filename of the custom font - varchar(255)
  • FontFamilyName - Name of the fontfamily - varchar(255)