Files
scripts/Perl OTRS/Kernel/Output/HTML/ImportExport/LayoutTT.pm
2024-10-14 00:08:40 +02:00

98 lines
1.7 KiB
Perl

# --
# Copyright (C) 2001-2019 OTRS AG, https://otrs.com/
# --
# 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.
# --
package Kernel::Output::HTML::ImportExport::LayoutTT;
use strict;
use warnings;
our @ObjectDependencies = (
'Kernel::System::Log',
);
=head1 NAME
Kernel::Output::HTML::ImportExport::LayoutTT - layout backend module
=head1 DESCRIPTION
All layout functions for display C<TT> code
=cut
=head2 new()
Create an object
$BackendObject = Kernel::Output::HTML::ImportExport::LayoutTT->new(
%Param,
);
=cut
sub new {
my ( $Type, %Param ) = @_;
# allocate new hash for object
my $Self = {};
bless( $Self, $Type );
return $Self;
}
=head2 FormInputCreate()
Create a input string
my $Value = $BackendObject->FormInputCreate(
Item => $ItemRef,
);
=cut
sub FormInputCreate {
my ( $Self, %Param ) = @_;
# check needed stuff
if ( !$Param{Item} ) {
$Kernel::OM->Get('Kernel::System::Log')->Log(
Priority => 'error',
Message => 'Need Item!'
);
return;
}
return $Param{Item}->{Input}->{Data};
}
=head2 FormDataGet()
Get form data
my $FormData = $BackendObject->FormDataGet();
=cut
sub FormDataGet {
my ( $Self, %Param ) = @_;
return;
}
1;
=head1 TERMS AND CONDITIONS
This software is part of the OTRS project (L<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 L<https://www.gnu.org/licenses/gpl-3.0.txt>.
=cut