
######
Ticket
######


****
NAME
****


Kernel::Output::HTML::LinkObject::Ticket - layout backend module


***********
DESCRIPTION
***********


All layout functions of link object (ticket).

new()
=====


create an object


.. code-block:: perl

     $BackendObject = Kernel::Output::HTML::LinkObject::Ticket->new(
         UserLanguage => 'en',
         UserID       => 1,
     );



TableCreateComplex()
====================


return an array with the block data

Return


.. code-block:: perl

     %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,
     );



TableCreateSimple()
===================


return a hash with the link output data

Return


.. code-block:: perl

     %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,
     );



ContentStringCreate()
=====================


return a output string


.. code-block:: perl

     my $String = $BackendObject->ContentStringCreate(
         ContentData => $HashRef,
     );



SelectableObjectList()
======================


return an array hash with select-able objects

Return


.. code-block:: perl

     @SelectableObjectList = (
         {
             Key   => 'Ticket',
             Value => 'Ticket',
         },
     );
 
     @SelectableObjectList = $BackendObject->SelectableObjectList(
         Selected => $Identifier,  # (optional)
     );



SearchOptionList()
==================


return an array hash with search options

Return


.. code-block:: perl

     @SearchOptionList = (
         {
             Key       => 'TicketNumber',
             Name      => 'Ticket#',
             InputStrg => $FormString,
             FormData  => '1234',
         },
         {
             Key       => 'Title',
             Name      => 'Title',
             InputStrg => $FormString,
             FormData  => 'BlaBla',
         },
     );
 
     @SearchOptionList = $BackendObject->SearchOptionList(
         SubObject => 'Bla',  # (optional)
     );





