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

Package DE_EPAGES::Content::API::Table::ContentChildClass

interface for table ContentChildClass

@EXPORT_OK
InsertContentChildClass
DeleteContentChildClass
GetAllPKeyContentChildClasses
ExistsContentChildClass
GetPKeyContentChildClassesByParentClassID
GetInfoContentChildClassesByParentClassID
GetPKeyContentChildClassesByChildClassID
GetInfoContentChildClassesByChildClassID

Functions

DeleteContentChildClass
ExistsContentChildClass
GetAllPKeyContentChildClasses
GetInfoContentChildClassesByChildClassID
GetInfoContentChildClassesByParentClassID
GetPKeyContentChildClassesByChildClassID
GetPKeyContentChildClassesByParentClassID
InsertContentChildClass
OnDeleteClass

DeleteContentChildClass

Deletes a(n) ContentChildClass.

Syntax
DeleteContentChildClass($ParentClassID, $ChildClassID);
DeleteContentChildClass($hContentChildClass); # if $hContentChildClass includes ParentClassID, ChildClassID
Input
$ParentClassID (int)
parent class id (part of primary key)
$ChildClassID (int)
allowed child class id (part of primary key)

ExistsContentChildClass

Returns true if the ContentChildClass exists.

Syntax
$exists = ExistsContentChildClass($ParentClassID, $ChildClassID);
Input
$ParentClassID (int)
parent class id
$ChildClassID (int)
allowed child class id
Return
$exists (boolean)
1/0 the ContentChildClass exists (yes/no)

GetAllPKeyContentChildClasses

Returns all ContentChildClass identifiers.

Syntax
$ahContentChildClassIDs = GetAllPKeyContentChildClasses();
Return
$ahContentChildClassIDs (reference to array of hashes)
with following keys:
  • ParentClassID - parent class id - int
  • ChildClassID - allowed child class id - int

GetInfoContentChildClassesByChildClassID

Returns objects of ContentChildClass by alternate key ChildClassID.

Syntax
$ahContentChildClasses = GetInfoContentChildClassesByChildClassID($ChildClassID);
Input
$ChildClassID (int)
allowed child class id
Return
$ahContentChildClasses (reference to array of hashes)
with following keys:
  • ParentClassID - parent class id (part of primary key)- int
  • ChildClassID - allowed child class id (part of primary key)- int

GetInfoContentChildClassesByParentClassID

Returns objects of ContentChildClass by primary key element ParentClassID.

Syntax
$ahContentChildClasses = GetInfoContentChildClassesByParentClassID($ParentClassID);
Input
$ParentClassID (int)
parent class id
Return
$ahContentChildClasses (reference to array of hashes)
with following keys:
  • ParentClassID - parent class id (part of primary key)- int
  • ChildClassID - allowed child class id (part of primary key)- int

GetPKeyContentChildClassesByChildClassID

Returns primary keys of ContentChildClass by alternate key ChildClassID.

Syntax
$ahKeys = GetPKeyContentChildClassesByChildClassID($ChildClassID);
Input
$ChildClassID (int)
allowed child class id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ParentClassID - parent class id - int
  • ChildClassID - allowed child class id - int

GetPKeyContentChildClassesByParentClassID

Returns primary keys of ContentChildClass by primary key element ParentClassID.

Syntax
$ahKeys = GetPKeyContentChildClassesByParentClassID($ParentClassID);
Input
$ParentClassID (int)
parent class id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ParentClassID - parent class id - int
  • ChildClassID - allowed child class id - int

InsertContentChildClass

Creates an entry of ContentChildClass.

Syntax
InsertContentChildClass($hContentChildClass);
Input
$hContentChildClass (reference to hash)
with following keys:
  • ParentClassID - parent class id (part of primary key)- int
  • ChildClassID - allowed child class id (part of primary key)- int

OnDeleteClass

Deletes ContentChildClass of this model when a(n) Class is deleted.

Syntax
OnDeleteClass($hParams);
Input
$hParams (ref.hash.*)
primary key of object Class, key is
  • ClassID