
####
Link
####


****
NAME
****


Kernel::System::Calendar::Plugin::Ticket::Link - Ticket::Link plugin


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


Ticket appointment plugin.


****************
PUBLIC INTERFACE
****************


new()
=====


create an object. Do not use it directly, instead use:


.. code-block:: perl

     use Kernel::System::ObjectManager;
     local $Kernel::OM = Kernel::System::ObjectManager->new();
     my $TicketLinkPluginObject = $Kernel::OM->Get('Kernel::System::Calendar::Plugin::Ticket::Link');



RenderOutput()
==============


renders the output as html.


.. code-block:: perl

     my $HTML = $TicketLinkPluginObject->RenderOutput(
         Param           => \%Param,
         GetParam        => \%GetParam,
         Appointment     => \%Appointment,
         Plugin          => \%Plugin,
         PermissionLevel => $PermissionLevel{$Permissions},
         UserID          => $Self->{UserID},
     );


Returns:


.. code-block:: perl

     my $HTML = 'HTML';



Update()
========


updated accordingly as needed.


.. code-block:: perl

     my $Success = $TicketLinkPluginObject->Update(
         UserID => 123,
     );


Returns:


.. code-block:: perl

     my $Success = 1;



Get()
=====


Get all plugin information.


.. code-block:: perl

     my $Data = $TicketLinkPluginObject->Get(
         GetParam    => \%GetParam,
         Appointment => \%Appointment,
         Plugin      => \%Plugin,
         UserID      => $Self->{UserID},
     );


Returns:


.. code-block:: perl

     my $Data = {};



LinkAdd()
=========


adds a link from an appointment to the ticket


.. code-block:: perl

     my $Success = $TicketLinkPluginObject->LinkAdd(
         TargetKey => 42,    # TicketID
         SourceKey => 1,     # AppointmentID
         UserID    => 1,
     );



LinkList()
==========


returns a hash of linked tickets to an appointment


.. code-block:: perl

     my $Success = $TicketLinkPluginObject->LinkList(
         AppointmentID => 123,
         UserID        => 1,
         URL           => 'http://znuny.local/index.pl?Action=AgentTicketZoom;TicketID=%s' # optional
     );



LinkDelete()
============


Deletes all linked tickets.


.. code-block:: perl

     my $Success = $TicketLinkPluginObject->LinkDelete(
         AppointmentID => 1,
         UserID        => 1,
     );


Returns:


.. code-block:: perl

     my $Success = 1;



Search()
========


search for ticket and return a hash of found tickets


.. code-block:: perl

     my $ResultList = $TicketLinkPluginObject->Search(
         Search   => '**',   # search by ticket number or title
                             # or
         ObjectID => 1,      # search by ticket ID (single result)
 
         UserID => 1,
     );




