Appointment#

NAME#

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

DESCRIPTION#

All layout functions of link object (appointment).

new()#

create an object

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

TableCreateComplex()#

return an array with the block data

Return

%BlockData = (
    {
        ObjectName => 'SourceObjectID',
        ObjectID   => 1,
        Object     => 'Appointment',
        Blockname  => 'Appointment',
        Headline   => [
            {
                Content => 'Title',
            },
            {
                Content => 'Description',
                Width   => 200,
            },
            {
                Content => 'Start Time',
                Width   => 150,
            },
            {
                Content => 'End Time',
                Width   => 150,
            },
        ],
        ItemList => [
            [
                {
                    Type      => 'Link',
                    Key       => $AppointmentID,
                    Content   => 'Appointment title',
                    MaxLength => 70,
                },
                {
                    Type      => 'Text',
                    Content   => 'Appointment description',
                    MaxLength => 100,
                },
                {
                    Type    => 'TimeLong',
                    Content => '2016-01-01 12:00:00',
                },
                {
                    Type    => 'TimeLong',
                    Content => '2016-01-01 13:00:00',
                },
            ],
        ],
    },
);

@BlockData = $BackendObject->TableCreateComplex(
    ObjectLinkListWithData => $ObjectLinkListRef,
);

TableCreateSimple()#

return a hash with the link output data

Return

%LinkOutputData = (
    Normal::Source => {
        Appointment => [
            {
                Type    => 'Link',
                Content => 'A:1',
                Title   => 'Title of appointment',
            },
        ],
    },
);

%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.

Returns:

@SelectableObjectList = (
    {
        Key   => 'Appointment',
        Value => 'Appointment',
    },
);

@SelectableObjectList = $BackendObject->SelectableObjectList(
    Selected => $Identifier,  # (optional)
);

SearchOptionList()#

return an array hash with search options

Return

@SearchOptionList = (
    {
        Key       => 'AppointmentTitle',
        Name      => 'Title',
        InputStrg => $FormString,
        FormData  => '1234',
    },
    {
        Key       => 'AppointmentDescription',
        Name      => 'Description',
        InputStrg => $FormString,
        FormData  => 'BlaBla',
    },
    {
        Key       => 'AppointmentCalendarID',
        Name      => 'Calendar',
        InputStrg => $FormString,
        FormData  => 'Calendar1',
    },
);

@SearchOptionList = $BackendObject->SearchOptionList(
    SubObject => 'Bla',  # (optional)
);