NAME
Kernel::System::DataValidation::Validator::AvailableItems – Validator that verifies that selected items match their configuration.
PUBLIC INTERFACE
Provides a Check
method, that will be called by the Kernel::System::DataValidation backend.
Check()
Checks if the given value is a valid option. The available items hash needs to be passed as the Arguments
parameter.
my $True = $Validator->Check(
Arguments => {
CustomerID => '2',
OwnerID => '1',
ResponsibleID => '0',
},
Value => [
{
Name => 'CustomerID',
IsVisible => '1',
},
{
Name => 'OwnerID',
IsVisible => '1',
},
],
);
my $False = $Validator->Check(
Arguments => {
CustomerID => '2',
OwnerID => '1',
ResponsibleID => '0',
},
Value => [
{
Name => 'ResponsibleID',
IsVisible => '1',
},
],
);