ePages 6.10 - DE_EPAGES/Object/API/Table/MultiSelectAttribute.pm

Package DE_EPAGES::Object::API::Table::MultiSelectAttribute

interface for table MultiSelectAttribute

@EXPORT_OK
InsertMultiSelectAttribute
UpdateMultiSelectAttribute
DeleteMultiSelectAttribute
GetAllPKeyMultiSelectAttributes
GetAllInfoMultiSelectAttributes
GetInfoMultiSelectAttribute
ExistsMultiSelectAttribute
GetPKeyMultiSelectAttributesByObjectID
GetInfoMultiSelectAttributesByObjectID
GetPKeyMultiSelectAttributesByAttributeID
GetInfoMultiSelectAttributesByAttributeID
GetPKeyMultiSelectAttributesByPreDefAttributeID
GetInfoMultiSelectAttributesByPreDefAttributeID

Functions

DeleteMultiSelectAttribute
ExistsMultiSelectAttribute
GetAllInfoMultiSelectAttributes
GetAllPKeyMultiSelectAttributes
GetInfoMultiSelectAttribute
GetInfoMultiSelectAttributesByAttributeID
GetInfoMultiSelectAttributesByObjectID
GetInfoMultiSelectAttributesByPreDefAttributeID
GetPKeyMultiSelectAttributesByAttributeID
GetPKeyMultiSelectAttributesByObjectID
GetPKeyMultiSelectAttributesByPreDefAttributeID
InsertMultiSelectAttribute
OnDeleteAttribute
OnDeleteObject
UpdateMultiSelectAttribute

DeleteMultiSelectAttribute

Deletes a(n) MultiSelectAttribute.

Syntax
DeleteMultiSelectAttribute($MultiSelectAttributeID);
DeleteMultiSelectAttribute($hMultiSelectAttribute); # if $hMultiSelectAttribute includes MultiSelectAttributeID
Input
$MultiSelectAttributeID (int)
MultiSelectAttribute identifier (primary key)

ExistsMultiSelectAttribute

Returns true if the MultiSelectAttribute exists.

Syntax
$exists = ExistsMultiSelectAttribute($MultiSelectAttributeID);
Input
$MultiSelectAttributeID (int)
MultiSelectAttribute identifier
Return
$exists (boolean)
1/0 the MultiSelectAttribute exists (yes/no)

GetAllInfoMultiSelectAttributes

Returns all objects of MultiSelectAttribute.

Syntax
$ahMultiSelectAttributes = GetAllInfoMultiSelectAttributes();
Return
$ahMultiSelectAttributes (reference to array of hashes)
with following keys:
  • MultiSelectAttributeID - MultiSelectAttribute identifier (primary key)- int
  • ObjectID - object id - int
  • AttributeID - attribute id - int
  • PreDefAttributeID - predefined attribute id - int

GetAllPKeyMultiSelectAttributes

Returns all MultiSelectAttribute identifiers.

Syntax
$aMultiSelectAttributeIDs = GetAllPKeyMultiSelectAttributes();
Return
$aMultiSelectAttributeIDs (reference to array of int)
MultiSelectAttribute identifier

GetInfoMultiSelectAttribute

Returns the MultiSelectAttribute by identifier.

Syntax
$hMultiSelectAttribute = GetInfoMultiSelectAttribute($MultiSelectAttributeID);
Input
$MultiSelectAttributeID (int)
MultiSelectAttribute identifier (primary key)
Return
$hMultiSelectAttribute (reference to hash)
with following keys:
  • MultiSelectAttributeID - MultiSelectAttribute identifier (primary key)- int
  • ObjectID - object id - int
  • AttributeID - attribute id - int
  • PreDefAttributeID - predefined attribute id - int

GetInfoMultiSelectAttributesByAttributeID

Returns objects of MultiSelectAttribute by alternate key AttributeID.

Syntax
$ahMultiSelectAttributes = GetInfoMultiSelectAttributesByAttributeID($AttributeID);
Input
$AttributeID (int)
attribute id
Return
$ahMultiSelectAttributes (reference to array of hashes)
with following keys:
  • MultiSelectAttributeID - MultiSelectAttribute identifier (primary key)- int
  • ObjectID - object id - int
  • AttributeID - attribute id - int
  • PreDefAttributeID - predefined attribute id - int

GetInfoMultiSelectAttributesByObjectID

Returns objects of MultiSelectAttribute by alternate keys ObjectID and AttributeID.

Syntax
$ahMultiSelectAttributes = GetInfoMultiSelectAttributesByObjectID($ObjectID, $AttributeID);
Input
$ObjectID (int)
object id
$AttributeID (int)
attribute id (optional)
Return
$ahMultiSelectAttributes (reference to array of hashes)
with following keys:
  • MultiSelectAttributeID - MultiSelectAttribute identifier (primary key)- int
  • ObjectID - object id - int
  • AttributeID - attribute id - int
  • PreDefAttributeID - predefined attribute id - int

GetInfoMultiSelectAttributesByPreDefAttributeID

Returns objects of MultiSelectAttribute by alternate key PreDefAttributeID.

Syntax
$ahMultiSelectAttributes = GetInfoMultiSelectAttributesByPreDefAttributeID($PreDefAttributeID);
Input
$PreDefAttributeID (int)
predefined attribute id
Return
$ahMultiSelectAttributes (reference to array of hashes)
with following keys:
  • MultiSelectAttributeID - MultiSelectAttribute identifier (primary key)- int
  • ObjectID - object id - int
  • AttributeID - attribute id - int
  • PreDefAttributeID - predefined attribute id - int

GetPKeyMultiSelectAttributesByAttributeID

Returns primary keys of MultiSelectAttribute by alternate key AttributeID.

Syntax
$aKeys = GetPKeyMultiSelectAttributesByAttributeID($AttributeID);
Input
$AttributeID (int)
attribute id
Return
$aKeys (reference to array of int)
MultiSelectAttribute identifier (primary key)

GetPKeyMultiSelectAttributesByObjectID

Returns primary keys of MultiSelectAttribute by alternate keys ObjectID and AttributeID.

Syntax
$aKeys = GetPKeyMultiSelectAttributesByObjectID($ObjectID, $AttributeID);
Input
$ObjectID (int)
object id
$AttributeID (int)
attribute id (optional)
Return
$aKeys (reference to array of int)
MultiSelectAttribute identifier (primary key)

GetPKeyMultiSelectAttributesByPreDefAttributeID

Returns primary keys of MultiSelectAttribute by alternate key PreDefAttributeID.

Syntax
$aKeys = GetPKeyMultiSelectAttributesByPreDefAttributeID($PreDefAttributeID);
Input
$PreDefAttributeID (int)
predefined attribute id
Return
$aKeys (reference to array of int)
MultiSelectAttribute identifier (primary key)

InsertMultiSelectAttribute

Creates an entry of MultiSelectAttribute.

Syntax
$MultiSelectAttributeID = InsertMultiSelectAttribute($hMultiSelectAttribute);
Input
$hMultiSelectAttribute (reference to hash)
with following keys:
  • MultiSelectAttributeID - MultiSelectAttribute identifier (primary key)(optional)- int
  • ObjectID - object id - int
  • AttributeID - attribute id - int
  • PreDefAttributeID - predefined attribute id - int
Return
$MultiSelectAttributeID (int)
MultiSelectAttribute identifier (primary key)

OnDeleteAttribute

Deletes MultiSelectAttribute 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 MultiSelectAttribute of this model when a(n) Object is deleted.

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

UpdateMultiSelectAttribute

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

Syntax
UpdateMultiSelectAttribute($MultiSelectAttributeID, $hMultiSelectAttribute);
UpdateMultiSelectAttribute($hMultiSelectAttribute); # if $hMultiSelectAttribute includes MultiSelectAttributeID
Input
$MultiSelectAttributeID (int)
MultiSelectAttribute identifier (primary key)
$hMultiSelectAttribute (reference to hash)
with following keys:
  • ObjectID - object id - int
  • AttributeID - attribute id - int
  • PreDefAttributeID - predefined attribute id - int