ePages 6.11.0 - DE_EPAGES/Object/API/Table/SelectPreDefAttribute.pm

Package DE_EPAGES::Object::API::Table::SelectPreDefAttribute

interface for table SelectPreDefAttribute

@EXPORT_OK
InsertSelectPreDefAttribute
UpdateSelectPreDefAttribute
DeleteSelectPreDefAttribute
GetAllPKeySelectPreDefAttributes
GetAllInfoSelectPreDefAttributes
GetInfoSelectPreDefAttribute
ExistsSelectPreDefAttribute
GetPKeySelectPreDefAttributesByObjectID
GetInfoSelectPreDefAttributesByObjectID
GetPKeySelectPreDefAttributesByAttributeID
GetInfoSelectPreDefAttributesByAttributeID
GetPKeySelectPreDefAttributesByPreDefAttributeID
GetInfoSelectPreDefAttributesByPreDefAttributeID

Functions

DeleteSelectPreDefAttribute
ExistsSelectPreDefAttribute
GetAllInfoSelectPreDefAttributes
GetAllPKeySelectPreDefAttributes
GetInfoSelectPreDefAttribute
GetInfoSelectPreDefAttributesByAttributeID
GetInfoSelectPreDefAttributesByObjectID
GetInfoSelectPreDefAttributesByPreDefAttributeID
GetPKeySelectPreDefAttributesByAttributeID
GetPKeySelectPreDefAttributesByObjectID
GetPKeySelectPreDefAttributesByPreDefAttributeID
InsertSelectPreDefAttribute
OnDeleteAttribute
OnDeleteObject
UpdateSelectPreDefAttribute

DeleteSelectPreDefAttribute

Deletes a(n) SelectPreDefAttribute.

Syntax
DeleteSelectPreDefAttribute($ObjectID, $AttributeID);
DeleteSelectPreDefAttribute($hSelectPreDefAttribute); # if $hSelectPreDefAttribute includes ObjectID, AttributeID
Input
$ObjectID (int)
object id (part of primary key)
$AttributeID (int)
attribute id (part of primary key)

ExistsSelectPreDefAttribute

Returns true if the SelectPreDefAttribute exists.

Syntax
$exists = ExistsSelectPreDefAttribute($ObjectID, $AttributeID);
Input
$ObjectID (int)
object id
$AttributeID (int)
attribute id
Return
$exists (boolean)
1/0 the SelectPreDefAttribute exists (yes/no)

GetAllInfoSelectPreDefAttributes

Returns all objects of SelectPreDefAttribute.

Syntax
$ahSelectPreDefAttributes = GetAllInfoSelectPreDefAttributes();
Return
$ahSelectPreDefAttributes (reference to array of hashes)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • PreDefAttributeID - predefined attribute id - int

GetAllPKeySelectPreDefAttributes

Returns all SelectPreDefAttribute identifiers.

Syntax
$ahSelectPreDefAttributeIDs = GetAllPKeySelectPreDefAttributes();
Return
$ahSelectPreDefAttributeIDs (reference to array of hashes)
with following keys:
  • ObjectID - object id - int
  • AttributeID - attribute id - int

GetInfoSelectPreDefAttribute

Returns the SelectPreDefAttribute by identifier.

Syntax
$hSelectPreDefAttribute = GetInfoSelectPreDefAttribute($ObjectID, $AttributeID);
Input
$ObjectID (int)
object id (part of primary key)
$AttributeID (int)
attribute id (part of primary key)
Return
$hSelectPreDefAttribute (reference to hash)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • PreDefAttributeID - predefined attribute id - int

GetInfoSelectPreDefAttributesByAttributeID

Returns objects of SelectPreDefAttribute by alternate key AttributeID.

Syntax
$ahSelectPreDefAttributes = GetInfoSelectPreDefAttributesByAttributeID($AttributeID);
Input
$AttributeID (int)
attribute id
Return
$ahSelectPreDefAttributes (reference to array of hashes)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • PreDefAttributeID - predefined attribute id - int

GetInfoSelectPreDefAttributesByObjectID

Returns objects of SelectPreDefAttribute by primary key element ObjectID.

Syntax
$ahSelectPreDefAttributes = GetInfoSelectPreDefAttributesByObjectID($ObjectID);
Input
$ObjectID (int)
object id
Return
$ahSelectPreDefAttributes (reference to array of hashes)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • PreDefAttributeID - predefined attribute id - int

GetInfoSelectPreDefAttributesByPreDefAttributeID

Returns objects of SelectPreDefAttribute by alternate key PreDefAttributeID.

Syntax
$ahSelectPreDefAttributes = GetInfoSelectPreDefAttributesByPreDefAttributeID($PreDefAttributeID);
Input
$PreDefAttributeID (int)
predefined attribute id
Return
$ahSelectPreDefAttributes (reference to array of hashes)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • PreDefAttributeID - predefined attribute id - int

GetPKeySelectPreDefAttributesByAttributeID

Returns primary keys of SelectPreDefAttribute by alternate key AttributeID.

Syntax
$ahKeys = GetPKeySelectPreDefAttributesByAttributeID($AttributeID);
Input
$AttributeID (int)
attribute id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ObjectID - object id - int
  • AttributeID - attribute id - int

GetPKeySelectPreDefAttributesByObjectID

Returns primary keys of SelectPreDefAttribute by primary key element ObjectID.

Syntax
$ahKeys = GetPKeySelectPreDefAttributesByObjectID($ObjectID);
Input
$ObjectID (int)
object id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ObjectID - object id - int
  • AttributeID - attribute id - int

GetPKeySelectPreDefAttributesByPreDefAttributeID

Returns primary keys of SelectPreDefAttribute by alternate key PreDefAttributeID.

Syntax
$ahKeys = GetPKeySelectPreDefAttributesByPreDefAttributeID($PreDefAttributeID);
Input
$PreDefAttributeID (int)
predefined attribute id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ObjectID - object id - int
  • AttributeID - attribute id - int

InsertSelectPreDefAttribute

Creates an entry of SelectPreDefAttribute.

Syntax
InsertSelectPreDefAttribute($hSelectPreDefAttribute);
Input
$hSelectPreDefAttribute (reference to hash)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • PreDefAttributeID - predefined attribute id - int

OnDeleteAttribute

Deletes SelectPreDefAttribute of this model when a(n) Attribute is deleted.

Syntax
OnDeleteAttribute($hParams);
Input
$hParams (ref.hash.*)
primary key of object Attribute, key is
  • AttributeID

OnDeleteObject

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

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

UpdateSelectPreDefAttribute

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

Syntax
UpdateSelectPreDefAttribute($ObjectID, $AttributeID, $hSelectPreDefAttribute);
UpdateSelectPreDefAttribute($hSelectPreDefAttribute); # if $hSelectPreDefAttribute includes ObjectID, AttributeID
Input
$ObjectID (int)
object id (part of primary key)
$AttributeID (int)
attribute id (part of primary key)
$hSelectPreDefAttribute (reference to hash)
with following keys:
  • PreDefAttributeID - predefined attribute id - int
Return
1 (int)
1