Kernel::System::DataValidation::Validator::CronScheduler

NAME

Kernel::System::DataValidation::Validator::CronScheduler – Validator that checks if cron string matches valid cron syntax.

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 cron string.

    my $True = $Validator->Check(
        Value => '0/1 * * * *',
    );

    my $False = $Validator->Check(
        Value => 'x * * * *',
    );
Scroll to Top