Package DE_EPAGES::GLS::API::ShippingLabel::TemplateRoot
The root template for all the variants of ShippingLabels templates All the templates have to derive from this in order to include the ShippingLabel generator engine. This class implements all the logical to parse the HTML/CSS templates used to render the ShippingLabels in a PDF file A good point to start is to take a look to the test Template/ShippingLabel: API/ShippingLabel/TemplateTest.pm The class derived from TemplateRoot which show how to expand the basic functionality. Public/BO/GLS/ShippingLabelTemplates/TestLabel Templates for the Test ShippingLabel. The main template is the 'Main.tmpl'
Functions
addCssList
Add or Merge CSS templates to the existing CssList of this Template ( see above for CssList details )
Syntax |
$Template->addCssList( $NewCssList, $Overwrite ) |
Input |
|
get
Accessor to the attributes of the object.
Syntax |
$Template->get( $AttributeName ) |
Input |
|
Return |
|
new
Contructor for the root template
Syntax |
$Handler = DE_EPAGES::GLS::API::ShippingLabel::TemplateRoot->new($Owner, $hData, $hOptions); |
Input |
|
Return |
|
render
This method is the entry point to the engine to generate the ShippingLabel in PDF format.
Syntax |
$Template->render |