Kernel::Output::HTML::LinkObject::Ticket - layout backend module
All layout functions of link object (ticket).
create an object
$BackendObject = Kernel::Output::HTML::LinkObject::Ticket->new( UserLanguage => 'en', UserID => 1, );
return an array with the block data
Return
%BlockData = ( { ObjectName => 'TicketID', ObjectID => '14785', Object => 'Ticket', Blockname => 'Ticket', Headline => [ { Content => 'Number#', Width => 130, }, { Content => 'Title', }, { Content => 'Created', Width => 110, }, ], ItemList => [ [ { Type => 'Link', Key => $TicketID, Content => '123123123', CssClass => 'StrikeThrough', }, { Type => 'Text', Content => 'The title', MaxLength => 50, }, { Type => 'TimeLong', Content => '2008-01-01 12:12:00', }, ], [ { Type => 'Link', Key => $TicketID, Content => '434234', }, { Type => 'Text', Content => 'The title of ticket 2', MaxLength => 50, }, { Type => 'TimeLong', Content => '2008-01-01 12:12:00', }, ], ], }, ); @BlockData = $BackendObject->TableCreateComplex( ObjectLinkListWithData => $ObjectLinkListRef, );
return a hash with the link output data
Return
%LinkOutputData = ( Normal::Source => { Ticket => [ { Type => 'Link', Content => 'T:55555', Title => 'Ticket#555555: The ticket title', CssClass => 'StrikeThrough', }, { Type => 'Link', Content => 'T:22222', Title => 'Ticket#22222: Title of ticket 22222', }, ], }, ParentChild::Target => { Ticket => [ { Type => 'Link', Content => 'T:77777', Title => 'Ticket#77777: Ticket title', }, ], }, ); %LinkOutputData = $BackendObject->TableCreateSimple( ObjectLinkListWithData => $ObjectLinkListRef, );
return a output string
my $String = $BackendObject->ContentStringCreate( ContentData => $HashRef, );
return an array hash with select-able objects
Return
@SelectableObjectList = ( { Key => 'Ticket', Value => 'Ticket', }, ); @SelectableObjectList = $BackendObject->SelectableObjectList( Selected => $Identifier, # (optional) );
return an array hash with search options
Return
@SearchOptionList = ( { Key => 'TicketNumber', Name => 'Ticket#', InputStrg => $FormString, FormData => '1234', }, { Key => 'Title', Name => 'Title', InputStrg => $FormString, FormData => 'BlaBla', }, ); @SearchOptionList = $BackendObject->SearchOptionList( SubObject => 'Bla', # (optional) );
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.