Ticket#
NAME#
Kernel::Output::HTML::LinkObject::Ticket - layout backend module
DESCRIPTION#
All layout functions of link object (ticket).
new()#
create an object
$BackendObject = Kernel::Output::HTML::LinkObject::Ticket->new(
UserLanguage => 'en',
UserID => 1,
);
TableCreateComplex()#
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,
);
TableCreateSimple()#
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,
);
ContentStringCreate()#
return a output string
my $String = $BackendObject->ContentStringCreate(
ContentData => $HashRef,
);
SelectableObjectList()#
return an array hash with select-able objects
Return
@SelectableObjectList = (
{
Key => 'Ticket',
Value => 'Ticket',
},
);
@SelectableObjectList = $BackendObject->SelectableObjectList(
Selected => $Identifier, # (optional)
);
SearchOptionList()#
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)
);