Kernel::System::CheckItem - check items
All item check functions.
Don't use the constructor directly, use the ObjectManager instead:
my $CheckItemObject = $Kernel::OM->Get('Kernel::System::CheckItem');
get the error of check item back
my $Error = $CheckItemObject->CheckError();
get the error's type of check item back
my $ErrorType = $CheckItemObject->CheckErrorType();
returns true if check was successful, if it's false, get the error message from CheckError()
my $Valid = $CheckItemObject->CheckEmail( Address => 'info@example.com', );
clean a given string
my $StringRef = $CheckItemObject->StringClean( StringRef => \'String', TrimLeft => 0, # (optional) default 1 TrimRight => 0, # (optional) default 1 RemoveAllNewlines => 1, # (optional) default 0 RemoveAllTabs => 1, # (optional) default 0 RemoveAllSpaces => 1, # (optional) default 0 );
clean a given string and remove credit card
my ($StringRef, $Found) = $CheckItemObject->CreditCardClean( StringRef => \'String', );
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.