otrs -> rel-6_0 API documentation

NAME

Kernel::Output::Template::Provider - Template Toolkit custom provider

PUBLIC INTERFACE

OTRSInit()

performs some post-initialization and creates a bridge between Template::Toolkit and OTRS by adding the OTRS objects to the Provider object. This method must be called after instantiating the Provider object.

Please note that we only store a weak reference to the LayoutObject to avoid ring references.

store()

inherited from Template::Provider. This function override just makes sure that the original in-memory cache cannot be used.

MigrateDTLtoTT()

translates old DTL template content to Template::Toolkit syntax.

my $TTCode = $ProviderObject->MigrateDTLtoTT( Content => $DTLCode );

If an error was found, this method will die(), so please use eval around it.

TERMS AND CONDITIONS

This software is part of the OTRS project (https://otrs.org/).

This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.