Kernel::System::LinkObject::Dummy - LinkObject test module
create an object
use Kernel::System::LinkObject::Dummy; my $DummyObject = Kernel::System::LinkObject::Dummy->new();
fill up the link list with data
$Success = $LinkObjectBackend->LinkListWithData( LinkList => $HashRef, UserID => 1, );
return a hash of object descriptions
Return %Description = ( Normal => "Dummy# 1234455", Long => "Dummy# 1234455: The Dummy Title", );
%Description = $LinkObject->ObjectDescriptionGet( Key => 123, UserID => 1, );
return a hash list of the search results
Return $SearchList = { NOTLINKED => { Source => { 12 => $DataOfItem12, 212 => $DataOfItem212, 332 => $DataOfItem332, }, }, };
$SearchList = $LinkObjectBackend->ObjectSearch( SearchParams => $HashRef, # (optional) UserID => 1, );
link add pre event module
$True = $LinkObject->LinkAddPre( Key => 123, SourceObject => 'Dummy', SourceKey => 321, Type => 'Normal', UserID => 1, ); or $True = $LinkObject->LinkAddPre( Key => 123, TargetObject => 'Dummy', TargetKey => 321, Type => 'Normal', UserID => 1, );
link add pre event module
$True = $LinkObject->LinkAddPost( Key => 123, SourceObject => 'Dummy', SourceKey => 321, Type => 'Normal', UserID => 1, ); or $True = $LinkObject->LinkAddPost( Key => 123, TargetObject => 'Dummy', TargetKey => 321, Type => 'Normal', UserID => 1, );
link delete pre event module
$True = $LinkObject->LinkDeletePre( Key => 123, SourceObject => 'Dummy', SourceKey => 321, Type => 'Normal', UserID => 1, ); or $True = $LinkObject->LinkDeletePre( Key => 123, TargetObject => 'Dummy', TargetKey => 321, Type => 'Normal', UserID => 1, );
link delete post event module
$True = $LinkObject->LinkDeletePost( Key => 123, SourceObject => 'Dummy', SourceKey => 321, Type => 'Normal', UserID => 1, ); or $True = $LinkObject->LinkDeletePost( Key => 123, TargetObject => 'Dummy', TargetKey => 321, Type => 'Normal', UserID => 1, );
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.