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

Package DE_EPAGES::Object::API::Table::DateTimeAttribute

interface for table DateTimeAttribute

@EXPORT_OK
InsertDateTimeAttribute
UpdateDateTimeAttribute
DeleteDateTimeAttribute
GetAllPKeyDateTimeAttributes
GetAllInfoDateTimeAttributes
GetInfoDateTimeAttribute
ExistsDateTimeAttribute
GetPKeyDateTimeAttributesByObjectID
GetInfoDateTimeAttributesByObjectID
GetPKeyDateTimeAttributesByAttributeID
GetInfoDateTimeAttributesByAttributeID

Functions

DeleteDateTimeAttribute
ExistsDateTimeAttribute
GetAllInfoDateTimeAttributes
GetAllPKeyDateTimeAttributes
GetInfoDateTimeAttribute
GetInfoDateTimeAttributesByAttributeID
GetInfoDateTimeAttributesByObjectID
GetPKeyDateTimeAttributesByAttributeID
GetPKeyDateTimeAttributesByObjectID
InsertDateTimeAttribute
OnDeleteAttribute
OnDeleteObject
UpdateDateTimeAttribute

DeleteDateTimeAttribute

Deletes a(n) DateTimeAttribute.

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

ExistsDateTimeAttribute

Returns true if the DateTimeAttribute exists.

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

GetAllInfoDateTimeAttributes

Returns all objects of DateTimeAttribute.

Syntax
$ahDateTimeAttributes = GetAllInfoDateTimeAttributes();
Return
$ahDateTimeAttributes (reference to array of hashes)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • Value - date+time value - datetime

GetAllPKeyDateTimeAttributes

Returns all DateTimeAttribute identifiers.

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

GetInfoDateTimeAttribute

Returns the DateTimeAttribute by identifier.

Syntax
$hDateTimeAttribute = GetInfoDateTimeAttribute($ObjectID, $AttributeID);
Input
$ObjectID (int)
object id (part of primary key)
$AttributeID (int)
attribute id (part of primary key)
Return
$hDateTimeAttribute (reference to hash)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • Value - date+time value - datetime

GetInfoDateTimeAttributesByAttributeID

Returns objects of DateTimeAttribute by alternate key AttributeID.

Syntax
$ahDateTimeAttributes = GetInfoDateTimeAttributesByAttributeID($AttributeID);
Input
$AttributeID (int)
attribute id
Return
$ahDateTimeAttributes (reference to array of hashes)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • Value - date+time value - datetime

GetInfoDateTimeAttributesByObjectID

Returns objects of DateTimeAttribute by primary key element ObjectID.

Syntax
$ahDateTimeAttributes = GetInfoDateTimeAttributesByObjectID($ObjectID);
Input
$ObjectID (int)
object id
Return
$ahDateTimeAttributes (reference to array of hashes)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • Value - date+time value - datetime

GetPKeyDateTimeAttributesByAttributeID

Returns primary keys of DateTimeAttribute by alternate key AttributeID.

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

GetPKeyDateTimeAttributesByObjectID

Returns primary keys of DateTimeAttribute by primary key element ObjectID.

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

InsertDateTimeAttribute

Creates an entry of DateTimeAttribute.

Syntax
InsertDateTimeAttribute($hDateTimeAttribute);
Input
$hDateTimeAttribute (reference to hash)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • Value - date+time value - datetime

OnDeleteAttribute

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

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

UpdateDateTimeAttribute

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

Syntax
UpdateDateTimeAttribute($ObjectID, $AttributeID, $hDateTimeAttribute);
UpdateDateTimeAttribute($hDateTimeAttribute); # if $hDateTimeAttribute includes ObjectID, AttributeID
Input
$ObjectID (int)
object id (part of primary key)
$AttributeID (int)
attribute id (part of primary key)
$hDateTimeAttribute (reference to hash)
with following keys:
  • Value - date+time value - datetime