otrs -> rel-6_0 API documentation

NAME

Kernel::System::Valid - valid lib

DESCRIPTION

All valid functions.

PUBLIC INTERFACE

new()

Don't use the constructor directly, use the ObjectManager instead:

my $ValidObject = $Kernel::OM->Get('Kernel::System::Valid');

ValidList()

return a valid list as hash

my %List = $ValidObject->ValidList();

ValidLookup()

returns the id or the name of a valid

my $ValidID = $ValidObject->ValidLookup(
    Valid => 'valid',
);

my $Valid = $ValidObject->ValidLookup(
    ValidID => 1,
);

ValidIDsGet()

return all valid ids as array

my @List = $ValidObject->ValidIDsGet();

TERMS AND CONDITIONS

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.