ePages 6.11.0 - DE_EPAGES/ShopMailType/API/Object/ShopMailType.pm

Package DE_EPAGES::ShopMailType::API::Object::ShopMailType

object interface for ShopMailType.

Base
DE_EPAGES::MailType::API::Object::MailType

Functions

delete
deleteSelf
from
insert
set

delete

Deletes this object, therefore the hook 'OBJ_DeleteShopMailType' is triggered.

Syntax
$ShopMailType->delete;
Hook
OBJ_DeleteShopMailType
hook parameter keys :
  • Object - this object - object
  • ShopMailTypeID - Shop mail type id - int

deleteSelf

Deletes the object at database tables.

Syntax
$ShopMailType->deleteSelf;

from

returns FROM address string of the mail

Syntax
$FROM = $ShopMailType->from( $FROM );
Example
$FROM = $ShopMailType->from( $FROM);
Input
$FROM (string (optional))
FROM

insert

Insert this info as object, afterwards the hook 'OBJ_InsertShopMailType' is triggered.

Syntax
$ShopMailType = DE_EPAGES::ShopMailType::API::Object::ShopMailType->insert($hInfo);
Example
my $Class = LoadClassByAlias('ShopMailType');
my $ShopMailType = $Class->insertObject($hInfo);
Input
$Package (string)
class package
$hInfo (ref.hash)
attributes of new object
Return
$ShopMailType (object)
new object
Hook
OBJ_InsertShopMailType
hook parameter keys :
  • Object - this object - object
  • ShopMailTypeID - Shop mail type id - int

set

This function triggers hooks 'OBJ_BeforeUpdateShopMailType' and 'OBJ_AfterUpdateShopMailType'.

Syntax
$ShopMailType->set($hValues, $LanguageID);
Hook
OBJ_BeforeUpdateShopMailType
hook parameter keys :
  • Object - this object - object
  • ShopMailTypeID - Shop mail type id - int
  • Values - new values for object - ref.hash
  • LanguageID - values of this language will be updated - int
OBJ_AfterUpdateShopMailType
hook parameter keys :
  • Object - this object - object
  • ShopMailTypeID - Shop mail type id - int
  • Values - updated values - ref.hash
  • LanguageID - values updated of this language - int