OTRS 7.0 API Reference Perl

Description manuals and libraries
OTRS 7.0 API Reference Perl > Perl Modules > Kernel::System::Valid

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();

IsValidIDValid

verifies if the given ID corresponds to 'valid'.

    my IsValid = $ValidObject->IsValidIDValid(
        ValidID => '...',
    );