ePages 6.11.0 - DE_EPAGES/Design/API/TLE/StyleHandler.pm

Package DE_EPAGES::Design::API::TLE::StyleHandler

Functions

STYLEGROUPBYID
STYLETEMPLATEBYID
register
tle

STYLEGROUPBYID

Returns the StyleGroup by the given ID.

Syntax
#FUNCTION("STYLEGROUPBYID", #StyleGroupID)
Input
#StyleGroupID (integer)
style group id
Return
#StyleGroup (object)
style group for the given id

STYLETEMPLATEBYID

Returns the StyleTemplate by the given ID.

Syntax
#FUNCTION("STYLETEMPLATEBYID", #StyleTemplateID)
Input
#StyleTemplateID (integer)
style template id
Return
#StyleTemplate (object)
style template for the given id

register

Registers this handle on the processor

Syntax
$Handler->register( $Processor );
Input
$Processor (object)
tle processor

tle

This function is called by tle processor to get the value of a tle variable. The value of 'Style' depedends on servlet variable 'PreviewStyle' if the preview not defined the default style of shop is used.

Syntax
$Value = $Handler->tle( $Processor, $TLEName);
Example
my $Value = $Handler->tle( $Processor, 'Name');
Input
$Processor (object)
tle processor
$TLEName (string)
tle name
Return
$Value (integer)
return value