ePages 6.17.35 - DE_EPAGES/CustomForm/API/Object/CustomForm.pm

Package DE_EPAGES::CustomForm::API::Object::CustomForm

object interface for CustomForm.

Base
DE_EPAGES::Content::API::Object::ContentObject

Functions

createEmailFormField
featureName
insert
saveFields
setDefaultTranslations

createEmailFormField

Creates a new email form field if it isn't existing yet

Syntax
$CustomForm->createEmailFormField();

featureName

Returns the feature name ('CustomForm').

Syntax
$FeatureName = $CustomForm->featureName;
Return
$FeatureName (String)
feature name

insert

Insert this info as object

Syntax
$CustomForm = DE_EPAGES::CustomForm::API::Object::CustomForm->insert($hInfo);
Example
my $Class = LoadClassByAlias('CustomForm');
my $CustomForm = $Class->insertObject($hInfo);
Input
$hInfo (ref.hash)
attributes of new object
Return
$CustomForm (object)
new object

saveFields

Saves attributes of all fields

Syntax
$CustomForm->saveFields($ahListPositions, $aSetMandatory, $ahListDeletings);
Input
$ahListPositions (ref.array.hash)
PositionObjectID and it's (new) Position
$aSetMandatory (ref.array)
field id's which have to be set to mandatory
$ahListDeletings (ref.array.hash)
field id's which have to be deleted

setDefaultTranslations

set MailSubject and ConfirmMessage in all languages

Syntax
$CustomForm->setDefaultTranslations();