OTRS 5.0 API Reference Perl

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

NAME

Kernel::System::Valid - valid lib

SYNOPSIS

All valid functions.

PUBLIC INTERFACE

new()

create an object. Do not use it directly, instead use:

    use Kernel::System::ObjectManager;
    local $Kernel::OM = Kernel::System::ObjectManager->new();
    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.